1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dcdn
  5. getIpaDomains
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.dcdn.getIpaDomains

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

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

    NOTE: Available in 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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    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}
    

    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 name of the Domain.
    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
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
    DomainName string
    The name of the Domain.
    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
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
    domainName String
    The name of the Domain.
    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
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
    domainName string
    The name of the Domain.
    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
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
    domain_name str
    The name of the Domain.
    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
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the accelerated domain name. Valid values: check_failed, checking, configure_failed, configuring, offline, online.
    domainName String
    The name of the Domain.
    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
    File name where to save data source results (after running pulumi preview).
    status 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>
    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
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi