1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dcdn
  5. getIpaDomains
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.dcdn.getIpaDomains

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the Dcdn Ipa Domains of the current Alibaba Cloud user.

NOTE: Available since v1.158.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.dcdn.getIpaDomains({
    domainName: "example_value",
    ids: [
        "example_value-1",
        "example_value-2",
    ],
});
export const dcdnIpaDomainId1 = ids.then(ids => ids.domains?.[0]?.id);
const status = alicloud.dcdn.getIpaDomains({
    status: "online",
});
export const dcdnIpaDomainId2 = status.then(status => status.domains?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.dcdn.get_ipa_domains(domain_name="example_value",
    ids=[
        "example_value-1",
        "example_value-2",
    ])
pulumi.export("dcdnIpaDomainId1", ids.domains[0].id)
status = alicloud.dcdn.get_ipa_domains(status="online")
pulumi.export("dcdnIpaDomainId2", status.domains[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dcdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := dcdn.GetIpaDomains(ctx, &dcdn.GetIpaDomainsArgs{
			DomainName: pulumi.StringRef("example_value"),
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dcdnIpaDomainId1", ids.Domains[0].Id)
		status, err := dcdn.GetIpaDomains(ctx, &dcdn.GetIpaDomainsArgs{
			Status: pulumi.StringRef("online"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dcdnIpaDomainId2", status.Domains[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Dcdn.GetIpaDomains.Invoke(new()
    {
        DomainName = "example_value",
        Ids = new[]
        {
            "example_value-1",
            "example_value-2",
        },
    });

    var status = AliCloud.Dcdn.GetIpaDomains.Invoke(new()
    {
        Status = "online",
    });

    return new Dictionary<string, object?>
    {
        ["dcdnIpaDomainId1"] = ids.Apply(getIpaDomainsResult => getIpaDomainsResult.Domains[0]?.Id),
        ["dcdnIpaDomainId2"] = status.Apply(getIpaDomainsResult => getIpaDomainsResult.Domains[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dcdn.DcdnFunctions;
import com.pulumi.alicloud.dcdn.inputs.GetIpaDomainsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var ids = DcdnFunctions.getIpaDomains(GetIpaDomainsArgs.builder()
            .domainName("example_value")
            .ids(            
                "example_value-1",
                "example_value-2")
            .build());

        ctx.export("dcdnIpaDomainId1", ids.applyValue(getIpaDomainsResult -> getIpaDomainsResult.domains()[0].id()));
        final var status = DcdnFunctions.getIpaDomains(GetIpaDomainsArgs.builder()
            .status("online")
            .build());

        ctx.export("dcdnIpaDomainId2", status.applyValue(getIpaDomainsResult -> getIpaDomainsResult.domains()[0].id()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:dcdn:getIpaDomains
      arguments:
        domainName: example_value
        ids:
          - example_value-1
          - example_value-2
  status:
    fn::invoke:
      function: alicloud:dcdn:getIpaDomains
      arguments:
        status: online
outputs:
  dcdnIpaDomainId1: ${ids.domains[0].id}
  dcdnIpaDomainId2: ${status.domains[0].id}
Copy

Using getIpaDomains

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIpaDomains(args: GetIpaDomainsArgs, opts?: InvokeOptions): Promise<GetIpaDomainsResult>
function getIpaDomainsOutput(args: GetIpaDomainsOutputArgs, opts?: InvokeOptions): Output<GetIpaDomainsResult>
Copy
def get_ipa_domains(domain_name: Optional[str] = None,
                    enable_details: Optional[bool] = None,
                    ids: Optional[Sequence[str]] = None,
                    output_file: Optional[str] = None,
                    status: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetIpaDomainsResult
def get_ipa_domains_output(domain_name: Optional[pulumi.Input[str]] = None,
                    enable_details: Optional[pulumi.Input[bool]] = None,
                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    status: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetIpaDomainsResult]
Copy
func GetIpaDomains(ctx *Context, args *GetIpaDomainsArgs, opts ...InvokeOption) (*GetIpaDomainsResult, error)
func GetIpaDomainsOutput(ctx *Context, args *GetIpaDomainsOutputArgs, opts ...InvokeOption) GetIpaDomainsResultOutput
Copy

> Note: This function is named GetIpaDomains in the Go SDK.

public static class GetIpaDomains 
{
    public static Task<GetIpaDomainsResult> InvokeAsync(GetIpaDomainsArgs args, InvokeOptions? opts = null)
    public static Output<GetIpaDomainsResult> Invoke(GetIpaDomainsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIpaDomainsResult> getIpaDomains(GetIpaDomainsArgs args, InvokeOptions options)
public static Output<GetIpaDomainsResult> getIpaDomains(GetIpaDomainsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:dcdn/getIpaDomains:getIpaDomains
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DomainName Changes to this property will trigger replacement. string
The name of the Domain.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of Ipa Domain IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
DomainName Changes to this property will trigger replacement. string
The name of the Domain.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of Ipa Domain IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
domainName Changes to this property will trigger replacement. String
The name of the Domain.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Ipa Domain IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
domainName Changes to this property will trigger replacement. string
The name of the Domain.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of Ipa Domain IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
domain_name Changes to this property will trigger replacement. str
The name of the Domain.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Ipa Domain IDs.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
domainName Changes to this property will trigger replacement. String
The name of the Domain.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Ipa Domain IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.

getIpaDomains Result

The following output properties are available:

Domains List<Pulumi.AliCloud.Dcdn.Outputs.GetIpaDomainsDomain>
A list of Dcdn Ipa Domains. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
A list of Dcdn Ipa Domain names.
DomainName string
The accelerated domain names.
EnableDetails bool
OutputFile string
Status string
The status of the accelerated domain name.
Domains []GetIpaDomainsDomain
A list of Dcdn Ipa Domains. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
A list of Dcdn Ipa Domain names.
DomainName string
The accelerated domain names.
EnableDetails bool
OutputFile string
Status string
The status of the accelerated domain name.
domains List<GetIpaDomainsDomain>
A list of Dcdn Ipa Domains. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Dcdn Ipa Domain names.
domainName String
The accelerated domain names.
enableDetails Boolean
outputFile String
status String
The status of the accelerated domain name.
domains GetIpaDomainsDomain[]
A list of Dcdn Ipa Domains. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
A list of Dcdn Ipa Domain names.
domainName string
The accelerated domain names.
enableDetails boolean
outputFile string
status string
The status of the accelerated domain name.
domains Sequence[GetIpaDomainsDomain]
A list of Dcdn Ipa Domains. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
A list of Dcdn Ipa Domain names.
domain_name str
The accelerated domain names.
enable_details bool
output_file str
status str
The status of the accelerated domain name.
domains List<Property Map>
A list of Dcdn Ipa Domains. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Dcdn Ipa Domain names.
domainName String
The accelerated domain names.
enableDetails Boolean
outputFile String
status String
The status of the accelerated domain name.

Supporting Types

GetIpaDomainsDomain

CertName This property is required. string
CertName.
Cname This property is required. string
The CNAME assigned to the domain name.
CreateTime This property is required. string
The time when the accelerated domain name was created.
Description This property is required. string
The description.
DomainName This property is required. string
The name of the Domain.
Id This property is required. string
The ID of the Ipa Domain.
ResourceGroupId This property is required. string
The ID of the resource group.
Scope This property is required. string
The accelerated region.
Sources This property is required. List<Pulumi.AliCloud.Dcdn.Inputs.GetIpaDomainsDomainSource>
The information about the origin server.
SslProtocol This property is required. string
Indicates whether the Security Socket Layer (SSL) certificate is enabled.
SslPub This property is required. string
Indicates the public key of the certificate if the HTTPS protocol is enabled.
Status This property is required. string
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
CertName This property is required. string
CertName.
Cname This property is required. string
The CNAME assigned to the domain name.
CreateTime This property is required. string
The time when the accelerated domain name was created.
Description This property is required. string
The description.
DomainName This property is required. string
The name of the Domain.
Id This property is required. string
The ID of the Ipa Domain.
ResourceGroupId This property is required. string
The ID of the resource group.
Scope This property is required. string
The accelerated region.
Sources This property is required. []GetIpaDomainsDomainSource
The information about the origin server.
SslProtocol This property is required. string
Indicates whether the Security Socket Layer (SSL) certificate is enabled.
SslPub This property is required. string
Indicates the public key of the certificate if the HTTPS protocol is enabled.
Status This property is required. string
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
certName This property is required. String
CertName.
cname This property is required. String
The CNAME assigned to the domain name.
createTime This property is required. String
The time when the accelerated domain name was created.
description This property is required. String
The description.
domainName This property is required. String
The name of the Domain.
id This property is required. String
The ID of the Ipa Domain.
resourceGroupId This property is required. String
The ID of the resource group.
scope This property is required. String
The accelerated region.
sources This property is required. List<GetIpaDomainsDomainSource>
The information about the origin server.
sslProtocol This property is required. String
Indicates whether the Security Socket Layer (SSL) certificate is enabled.
sslPub This property is required. String
Indicates the public key of the certificate if the HTTPS protocol is enabled.
status This property is required. String
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
certName This property is required. string
CertName.
cname This property is required. string
The CNAME assigned to the domain name.
createTime This property is required. string
The time when the accelerated domain name was created.
description This property is required. string
The description.
domainName This property is required. string
The name of the Domain.
id This property is required. string
The ID of the Ipa Domain.
resourceGroupId This property is required. string
The ID of the resource group.
scope This property is required. string
The accelerated region.
sources This property is required. GetIpaDomainsDomainSource[]
The information about the origin server.
sslProtocol This property is required. string
Indicates whether the Security Socket Layer (SSL) certificate is enabled.
sslPub This property is required. string
Indicates the public key of the certificate if the HTTPS protocol is enabled.
status This property is required. string
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
cert_name This property is required. str
CertName.
cname This property is required. str
The CNAME assigned to the domain name.
create_time This property is required. str
The time when the accelerated domain name was created.
description This property is required. str
The description.
domain_name This property is required. str
The name of the Domain.
id This property is required. str
The ID of the Ipa Domain.
resource_group_id This property is required. str
The ID of the resource group.
scope This property is required. str
The accelerated region.
sources This property is required. Sequence[GetIpaDomainsDomainSource]
The information about the origin server.
ssl_protocol This property is required. str
Indicates whether the Security Socket Layer (SSL) certificate is enabled.
ssl_pub This property is required. str
Indicates the public key of the certificate if the HTTPS protocol is enabled.
status This property is required. str
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
certName This property is required. String
CertName.
cname This property is required. String
The CNAME assigned to the domain name.
createTime This property is required. String
The time when the accelerated domain name was created.
description This property is required. String
The description.
domainName This property is required. String
The name of the Domain.
id This property is required. String
The ID of the Ipa Domain.
resourceGroupId This property is required. String
The ID of the resource group.
scope This property is required. String
The accelerated region.
sources This property is required. List<Property Map>
The information about the origin server.
sslProtocol This property is required. String
Indicates whether the Security Socket Layer (SSL) certificate is enabled.
sslPub This property is required. String
Indicates the public key of the certificate if the HTTPS protocol is enabled.
status This property is required. String
The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.

GetIpaDomainsDomainSource

Content This property is required. string
The address of the origin server.
Port This property is required. int
The custom port.
Priority This property is required. string
The priority of the origin server if multiple origin servers are specified.
Type This property is required. string
The type of the origin server.
Weight This property is required. int
The weight of the origin server if multiple origin servers are specified.
Content This property is required. string
The address of the origin server.
Port This property is required. int
The custom port.
Priority This property is required. string
The priority of the origin server if multiple origin servers are specified.
Type This property is required. string
The type of the origin server.
Weight This property is required. int
The weight of the origin server if multiple origin servers are specified.
content This property is required. String
The address of the origin server.
port This property is required. Integer
The custom port.
priority This property is required. String
The priority of the origin server if multiple origin servers are specified.
type This property is required. String
The type of the origin server.
weight This property is required. Integer
The weight of the origin server if multiple origin servers are specified.
content This property is required. string
The address of the origin server.
port This property is required. number
The custom port.
priority This property is required. string
The priority of the origin server if multiple origin servers are specified.
type This property is required. string
The type of the origin server.
weight This property is required. number
The weight of the origin server if multiple origin servers are specified.
content This property is required. str
The address of the origin server.
port This property is required. int
The custom port.
priority This property is required. str
The priority of the origin server if multiple origin servers are specified.
type This property is required. str
The type of the origin server.
weight This property is required. int
The weight of the origin server if multiple origin servers are specified.
content This property is required. String
The address of the origin server.
port This property is required. Number
The custom port.
priority This property is required. String
The priority of the origin server if multiple origin servers are specified.
type This property is required. String
The type of the origin server.
weight This property is required. Number
The weight of the origin server if multiple origin servers are specified.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi