Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

getIpaDomains

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

NOTE: Available in v1.158.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Dcdn.GetIpaDomains.InvokeAsync(new AliCloud.Dcdn.GetIpaDomainsArgs
        {
            DomainName = "example_value",
            Ids = 
            {
                "example_value-1",
                "example_value-2",
            },
        }));
        this.DcdnIpaDomainId1 = ids.Apply(ids => ids.Domains?[0]?.Id);
        var status = Output.Create(AliCloud.Dcdn.GetIpaDomains.InvokeAsync(new AliCloud.Dcdn.GetIpaDomainsArgs
        {
            Status = "online",
        }));
        this.DcdnIpaDomainId2 = status.Apply(status => status.Domains?[0]?.Id);
    }

    [Output("dcdnIpaDomainId1")]
    public Output<string> DcdnIpaDomainId1 { get; set; }
    [Output("dcdnIpaDomainId2")]
    public Output<string> DcdnIpaDomainId2 { get; set; }
}
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
	})
}

Coming soon!

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)
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);

Coming soon!

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>
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]
func GetIpaDomains(ctx *Context, args *GetIpaDomainsArgs, opts ...InvokeOption) (*GetIpaDomainsResult, error)
func GetIpaDomainsOutput(ctx *Context, args *GetIpaDomainsOutputArgs, opts ...InvokeOption) GetIpaDomainsResultOutput

> 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)
}
public static CompletableFuture<GetIpaDomainsResult> getIpaDomains(GetIpaDomainsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:dcdn/getIpaDomains:getIpaDomains
  Arguments:
    # Arguments dictionary

The following arguments are supported:

DomainName string

The accelerated domain names.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of Ipa Domain IDs.

OutputFile string
Status string

The status of the accelerated domain name.

DomainName string

The accelerated domain names.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of Ipa Domain IDs.

OutputFile string
Status string

The status of the accelerated domain name.

domainName String

The accelerated domain names.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Ipa Domain IDs.

outputFile String
status String

The status of the accelerated domain name.

domainName string

The accelerated domain names.

enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of Ipa Domain IDs.

outputFile string
status string

The status of the accelerated domain name.

domain_name str

The accelerated domain names.

enable_details bool

Default to false. Set it to true can output more details about resource attributes.

ids Sequence[str]

A list of Ipa Domain IDs.

output_file str
status str

The status of the accelerated domain name.

domainName String

The accelerated domain names.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Ipa Domain IDs.

outputFile String
status String

The status of the accelerated domain name.

getIpaDomains Result

The following output properties are available:

Domains List<Pulumi.AliCloud.Dcdn.Outputs.GetIpaDomainsDomain>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
DomainName string
EnableDetails bool
OutputFile string
Status string
Domains []GetIpaDomainsDomain
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
DomainName string
EnableDetails bool
OutputFile string
Status string
domains List<GetIpaDomainsDomain>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
domainName String
enableDetails Boolean
outputFile String
status String
domains GetIpaDomainsDomain[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
domainName string
enableDetails boolean
outputFile string
status string
domains Sequence[GetIpaDomainsDomain]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
domain_name str
enable_details bool
output_file str
status str
domains List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
domainName String
enableDetails Boolean
outputFile String
status String

Supporting Types

GetIpaDomainsDomain

CertName string

CertName.

Cname string

The CNAME assigned to the domain name.

CreateTime string

The time when the accelerated domain name was created.

Description string

The description.

DomainName string

The accelerated domain names.

Id string

The ID of the Ipa Domain.

ResourceGroupId string

The ID of the resource group.

Scope string

The accelerated region.

Sources List<Pulumi.AliCloud.Dcdn.Inputs.GetIpaDomainsDomainSource>

The information about the origin server.

SslProtocol string

Indicates whether the Security Socket Layer (SSL) certificate is enabled.

SslPub string

Indicates the public key of the certificate if the HTTPS protocol is enabled.

Status string

The status of the accelerated domain name.

CertName string

CertName.

Cname string

The CNAME assigned to the domain name.

CreateTime string

The time when the accelerated domain name was created.

Description string

The description.

DomainName string

The accelerated domain names.

Id string

The ID of the Ipa Domain.

ResourceGroupId string

The ID of the resource group.

Scope string

The accelerated region.

Sources []GetIpaDomainsDomainSource

The information about the origin server.

SslProtocol string

Indicates whether the Security Socket Layer (SSL) certificate is enabled.

SslPub string

Indicates the public key of the certificate if the HTTPS protocol is enabled.

Status string

The status of the accelerated domain name.

certName String

CertName.

cname String

The CNAME assigned to the domain name.

createTime String

The time when the accelerated domain name was created.

description String

The description.

domainName String

The accelerated domain names.

id String

The ID of the Ipa Domain.

resourceGroupId String

The ID of the resource group.

scope String

The accelerated region.

sources List<GetIpaDomainsDomainSource>

The information about the origin server.

sslProtocol String

Indicates whether the Security Socket Layer (SSL) certificate is enabled.

sslPub String

Indicates the public key of the certificate if the HTTPS protocol is enabled.

status String

The status of the accelerated domain name.

certName string

CertName.

cname string

The CNAME assigned to the domain name.

createTime string

The time when the accelerated domain name was created.

description string

The description.

domainName string

The accelerated domain names.

id string

The ID of the Ipa Domain.

resourceGroupId string

The ID of the resource group.

scope string

The accelerated region.

sources GetIpaDomainsDomainSource[]

The information about the origin server.

sslProtocol string

Indicates whether the Security Socket Layer (SSL) certificate is enabled.

sslPub string

Indicates the public key of the certificate if the HTTPS protocol is enabled.

status string

The status of the accelerated domain name.

cert_name str

CertName.

cname str

The CNAME assigned to the domain name.

create_time str

The time when the accelerated domain name was created.

description str

The description.

domain_name str

The accelerated domain names.

id str

The ID of the Ipa Domain.

resource_group_id str

The ID of the resource group.

scope str

The accelerated region.

sources Sequence[GetIpaDomainsDomainSource]

The information about the origin server.

ssl_protocol str

Indicates whether the Security Socket Layer (SSL) certificate is enabled.

ssl_pub str

Indicates the public key of the certificate if the HTTPS protocol is enabled.

status str

The status of the accelerated domain name.

certName String

CertName.

cname String

The CNAME assigned to the domain name.

createTime String

The time when the accelerated domain name was created.

description String

The description.

domainName String

The accelerated domain names.

id String

The ID of the Ipa Domain.

resourceGroupId String

The ID of the resource group.

scope String

The accelerated region.

sources List<Property Map>

The information about the origin server.

sslProtocol String

Indicates whether the Security Socket Layer (SSL) certificate is enabled.

sslPub String

Indicates the public key of the certificate if the HTTPS protocol is enabled.

status String

The status of the accelerated domain name.

GetIpaDomainsDomainSource

Content string

The address of the origin server.

Port int

The custom port.

Priority string

The priority of the origin server if multiple origin servers are specified.

Type string

The type of the origin server.

Weight int

The weight of the origin server if multiple origin servers are specified.

Content string

The address of the origin server.

Port int

The custom port.

Priority string

The priority of the origin server if multiple origin servers are specified.

Type string

The type of the origin server.

Weight int

The weight of the origin server if multiple origin servers are specified.

content String

The address of the origin server.

port Integer

The custom port.

priority String

The priority of the origin server if multiple origin servers are specified.

type String

The type of the origin server.

weight Integer

The weight of the origin server if multiple origin servers are specified.

content string

The address of the origin server.

port number

The custom port.

priority string

The priority of the origin server if multiple origin servers are specified.

type string

The type of the origin server.

weight number

The weight of the origin server if multiple origin servers are specified.

content str

The address of the origin server.

port int

The custom port.

priority str

The priority of the origin server if multiple origin servers are specified.

type str

The type of the origin server.

weight int

The weight of the origin server if multiple origin servers are specified.

content String

The address of the origin server.

port Number

The custom port.

priority String

The priority of the origin server if multiple origin servers are specified.

type String

The type of the origin server.

weight Number

The weight of the origin server if multiple origin servers are specified.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.