1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dcdn
  5. getDomains
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.dcdn.getDomains

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a collection of DCDN Domains to the specified filters.

    NOTE: Available in 1.94.0+.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.dcdn.getDomains({
        ids: ["example.com"],
    });
    export const domainId = example.then(example => example.domains?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.dcdn.get_domains(ids=["example.com"])
    pulumi.export("domainId", example.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 {
    		example, err := dcdn.GetDomains(ctx, &dcdn.GetDomainsArgs{
    			Ids: []string{
    				"example.com",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("domainId", example.Domains[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Dcdn.GetDomains.Invoke(new()
        {
            Ids = new[]
            {
                "example.com",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["domainId"] = example.Apply(getDomainsResult => getDomainsResult.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.GetDomainsArgs;
    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 example = DcdnFunctions.getDomains(GetDomainsArgs.builder()
                .ids("example.com")
                .build());
    
            ctx.export("domainId", example.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:dcdn:getDomains
          Arguments:
            ids:
              - example.com
    outputs:
      domainId: ${example.domains[0].id}
    

    Using getDomains

    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 getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
    function getDomainsOutput(args: GetDomainsOutputArgs, opts?: InvokeOptions): Output<GetDomainsResult>
    def get_domains(change_end_time: Optional[str] = None,
                    change_start_time: Optional[str] = None,
                    check_domain_show: Optional[bool] = None,
                    domain_search_type: Optional[str] = None,
                    enable_details: Optional[bool] = None,
                    ids: Optional[Sequence[str]] = None,
                    name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    resource_group_id: Optional[str] = None,
                    security_token: Optional[str] = None,
                    status: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDomainsResult
    def get_domains_output(change_end_time: Optional[pulumi.Input[str]] = None,
                    change_start_time: Optional[pulumi.Input[str]] = None,
                    check_domain_show: Optional[pulumi.Input[bool]] = None,
                    domain_search_type: Optional[pulumi.Input[str]] = None,
                    enable_details: Optional[pulumi.Input[bool]] = None,
                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    resource_group_id: Optional[pulumi.Input[str]] = None,
                    security_token: Optional[pulumi.Input[str]] = None,
                    status: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDomainsResult]
    func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
    func GetDomainsOutput(ctx *Context, args *GetDomainsOutputArgs, opts ...InvokeOption) GetDomainsResultOutput

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

    public static class GetDomains 
    {
        public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
        public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:dcdn/getDomains:getDomains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ChangeEndTime string
    The end time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    ChangeStartTime string
    The start time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    CheckDomainShow bool
    Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: true or false.
    DomainSearchType string
    The search method. Default value: fuzzy_match. Valid values: fuzzy_match, pre_match, suf_match, full_match.
    EnableDetails bool
    Default to false. Set it to true can output more details.
    Ids List<string>
    A list ids of DCDN Domain.
    NameRegex string
    A regex string to filter results by the DCDN Domain.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group.
    SecurityToken string
    Status string
    The status of DCDN Domain.
    ChangeEndTime string
    The end time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    ChangeStartTime string
    The start time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    CheckDomainShow bool
    Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: true or false.
    DomainSearchType string
    The search method. Default value: fuzzy_match. Valid values: fuzzy_match, pre_match, suf_match, full_match.
    EnableDetails bool
    Default to false. Set it to true can output more details.
    Ids []string
    A list ids of DCDN Domain.
    NameRegex string
    A regex string to filter results by the DCDN Domain.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group.
    SecurityToken string
    Status string
    The status of DCDN Domain.
    changeEndTime String
    The end time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    changeStartTime String
    The start time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    checkDomainShow Boolean
    Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: true or false.
    domainSearchType String
    The search method. Default value: fuzzy_match. Valid values: fuzzy_match, pre_match, suf_match, full_match.
    enableDetails Boolean
    Default to false. Set it to true can output more details.
    ids List<String>
    A list ids of DCDN Domain.
    nameRegex String
    A regex string to filter results by the DCDN Domain.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group.
    securityToken String
    status String
    The status of DCDN Domain.
    changeEndTime string
    The end time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    changeStartTime string
    The start time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    checkDomainShow boolean
    Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: true or false.
    domainSearchType string
    The search method. Default value: fuzzy_match. Valid values: fuzzy_match, pre_match, suf_match, full_match.
    enableDetails boolean
    Default to false. Set it to true can output more details.
    ids string[]
    A list ids of DCDN Domain.
    nameRegex string
    A regex string to filter results by the DCDN Domain.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    resourceGroupId string
    The ID of the resource group.
    securityToken string
    status string
    The status of DCDN Domain.
    change_end_time str
    The end time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    change_start_time str
    The start time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    check_domain_show bool
    Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: true or false.
    domain_search_type str
    The search method. Default value: fuzzy_match. Valid values: fuzzy_match, pre_match, suf_match, full_match.
    enable_details bool
    Default to false. Set it to true can output more details.
    ids Sequence[str]
    A list ids of DCDN Domain.
    name_regex str
    A regex string to filter results by the DCDN Domain.
    output_file str
    File name where to save data source results (after running pulumi preview).
    resource_group_id str
    The ID of the resource group.
    security_token str
    status str
    The status of DCDN Domain.
    changeEndTime String
    The end time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    changeStartTime String
    The start time of the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
    checkDomainShow Boolean
    Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: true or false.
    domainSearchType String
    The search method. Default value: fuzzy_match. Valid values: fuzzy_match, pre_match, suf_match, full_match.
    enableDetails Boolean
    Default to false. Set it to true can output more details.
    ids List<String>
    A list ids of DCDN Domain.
    nameRegex String
    A regex string to filter results by the DCDN Domain.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group.
    securityToken String
    status String
    The status of DCDN Domain.

    getDomains Result

    The following output properties are available:

    Domains List<Pulumi.AliCloud.Dcdn.Outputs.GetDomainsDomain>
    A list of domains. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list ids of DCDN Domain.
    Names List<string>
    A list of DCDN Domain names.
    ChangeEndTime string
    ChangeStartTime string
    CheckDomainShow bool
    DomainSearchType string
    EnableDetails bool
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    SecurityToken string
    Status string
    The status of DCDN Domain. Valid values: online, offline, check_failed, checking, configure_failed, configuring.
    Domains []GetDomainsDomain
    A list of domains. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list ids of DCDN Domain.
    Names []string
    A list of DCDN Domain names.
    ChangeEndTime string
    ChangeStartTime string
    CheckDomainShow bool
    DomainSearchType string
    EnableDetails bool
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    SecurityToken string
    Status string
    The status of DCDN Domain. Valid values: online, offline, check_failed, checking, configure_failed, configuring.
    domains List<GetDomainsDomain>
    A list of domains. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list ids of DCDN Domain.
    names List<String>
    A list of DCDN Domain names.
    changeEndTime String
    changeStartTime String
    checkDomainShow Boolean
    domainSearchType String
    enableDetails Boolean
    nameRegex String
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    securityToken String
    status String
    The status of DCDN Domain. Valid values: online, offline, check_failed, checking, configure_failed, configuring.
    domains GetDomainsDomain[]
    A list of domains. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list ids of DCDN Domain.
    names string[]
    A list of DCDN Domain names.
    changeEndTime string
    changeStartTime string
    checkDomainShow boolean
    domainSearchType string
    enableDetails boolean
    nameRegex string
    outputFile string
    resourceGroupId string
    The ID of the resource group.
    securityToken string
    status string
    The status of DCDN Domain. Valid values: online, offline, check_failed, checking, configure_failed, configuring.
    domains Sequence[GetDomainsDomain]
    A list of domains. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list ids of DCDN Domain.
    names Sequence[str]
    A list of DCDN Domain names.
    change_end_time str
    change_start_time str
    check_domain_show bool
    domain_search_type str
    enable_details bool
    name_regex str
    output_file str
    resource_group_id str
    The ID of the resource group.
    security_token str
    status str
    The status of DCDN Domain. Valid values: online, offline, check_failed, checking, configure_failed, configuring.
    domains List<Property Map>
    A list of domains. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list ids of DCDN Domain.
    names List<String>
    A list of DCDN Domain names.
    changeEndTime String
    changeStartTime String
    checkDomainShow Boolean
    domainSearchType String
    enableDetails Boolean
    nameRegex String
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    securityToken String
    status String
    The status of DCDN Domain. Valid values: online, offline, check_failed, checking, configure_failed, configuring.

    Supporting Types

    GetDomainsDomain

    CertName string
    Indicates the name of the certificate.
    Cname string
    The canonical name (CNAME) of the accelerated domain.
    Description string
    The reason that causes the review failure.
    DomainName string
    The name of the DCDN Domain.
    GmtModified string
    The time when the accelerated domain was last modified.
    Id string
    The ID of the DCDN Domain.
    ResourceGroupId string
    The ID of the resource group.
    Scope string
    The acceleration region.
    Sources List<Pulumi.AliCloud.Dcdn.Inputs.GetDomainsDomainSource>
    The origin information.
    SslProtocol string
    Indicates whether the SSL certificate is enabled.
    SslPub string
    Indicates the public key of the certificate.
    Status string
    The status of DCDN Domain.
    CertName string
    Indicates the name of the certificate.
    Cname string
    The canonical name (CNAME) of the accelerated domain.
    Description string
    The reason that causes the review failure.
    DomainName string
    The name of the DCDN Domain.
    GmtModified string
    The time when the accelerated domain was last modified.
    Id string
    The ID of the DCDN Domain.
    ResourceGroupId string
    The ID of the resource group.
    Scope string
    The acceleration region.
    Sources []GetDomainsDomainSource
    The origin information.
    SslProtocol string
    Indicates whether the SSL certificate is enabled.
    SslPub string
    Indicates the public key of the certificate.
    Status string
    The status of DCDN Domain.
    certName String
    Indicates the name of the certificate.
    cname String
    The canonical name (CNAME) of the accelerated domain.
    description String
    The reason that causes the review failure.
    domainName String
    The name of the DCDN Domain.
    gmtModified String
    The time when the accelerated domain was last modified.
    id String
    The ID of the DCDN Domain.
    resourceGroupId String
    The ID of the resource group.
    scope String
    The acceleration region.
    sources List<GetDomainsDomainSource>
    The origin information.
    sslProtocol String
    Indicates whether the SSL certificate is enabled.
    sslPub String
    Indicates the public key of the certificate.
    status String
    The status of DCDN Domain.
    certName string
    Indicates the name of the certificate.
    cname string
    The canonical name (CNAME) of the accelerated domain.
    description string
    The reason that causes the review failure.
    domainName string
    The name of the DCDN Domain.
    gmtModified string
    The time when the accelerated domain was last modified.
    id string
    The ID of the DCDN Domain.
    resourceGroupId string
    The ID of the resource group.
    scope string
    The acceleration region.
    sources GetDomainsDomainSource[]
    The origin information.
    sslProtocol string
    Indicates whether the SSL certificate is enabled.
    sslPub string
    Indicates the public key of the certificate.
    status string
    The status of DCDN Domain.
    cert_name str
    Indicates the name of the certificate.
    cname str
    The canonical name (CNAME) of the accelerated domain.
    description str
    The reason that causes the review failure.
    domain_name str
    The name of the DCDN Domain.
    gmt_modified str
    The time when the accelerated domain was last modified.
    id str
    The ID of the DCDN Domain.
    resource_group_id str
    The ID of the resource group.
    scope str
    The acceleration region.
    sources Sequence[GetDomainsDomainSource]
    The origin information.
    ssl_protocol str
    Indicates whether the SSL certificate is enabled.
    ssl_pub str
    Indicates the public key of the certificate.
    status str
    The status of DCDN Domain.
    certName String
    Indicates the name of the certificate.
    cname String
    The canonical name (CNAME) of the accelerated domain.
    description String
    The reason that causes the review failure.
    domainName String
    The name of the DCDN Domain.
    gmtModified String
    The time when the accelerated domain was last modified.
    id String
    The ID of the DCDN Domain.
    resourceGroupId String
    The ID of the resource group.
    scope String
    The acceleration region.
    sources List<Property Map>
    The origin information.
    sslProtocol String
    Indicates whether the SSL certificate is enabled.
    sslPub String
    Indicates the public key of the certificate.
    status String
    The status of DCDN Domain.

    GetDomainsDomainSource

    Content string
    The origin address.
    Enabled string
    The status of the origin.
    Port int
    The port number.
    Priority string
    The priority of the origin if multiple origins are specified.
    Type string
    The type of the origin. Valid values:
    Weight string
    The weight of the origin if multiple origins are specified.
    Content string
    The origin address.
    Enabled string
    The status of the origin.
    Port int
    The port number.
    Priority string
    The priority of the origin if multiple origins are specified.
    Type string
    The type of the origin. Valid values:
    Weight string
    The weight of the origin if multiple origins are specified.
    content String
    The origin address.
    enabled String
    The status of the origin.
    port Integer
    The port number.
    priority String
    The priority of the origin if multiple origins are specified.
    type String
    The type of the origin. Valid values:
    weight String
    The weight of the origin if multiple origins are specified.
    content string
    The origin address.
    enabled string
    The status of the origin.
    port number
    The port number.
    priority string
    The priority of the origin if multiple origins are specified.
    type string
    The type of the origin. Valid values:
    weight string
    The weight of the origin if multiple origins are specified.
    content str
    The origin address.
    enabled str
    The status of the origin.
    port int
    The port number.
    priority str
    The priority of the origin if multiple origins are specified.
    type str
    The type of the origin. Valid values:
    weight str
    The weight of the origin if multiple origins are specified.
    content String
    The origin address.
    enabled String
    The status of the origin.
    port Number
    The port number.
    priority String
    The priority of the origin if multiple origins are specified.
    type String
    The type of the origin. Valid values:
    weight String
    The weight of the origin if multiple origins 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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi