Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.dcdn.getDomains
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Change
End stringTime  - The end time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - Change
Start stringTime  - The start time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - Check
Domain boolShow  - Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: 
trueorfalse. - Domain
Search stringType  - 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 List<string>
 - A list ids of DCDN Domain.
 - Name
Regex string - A regex string to filter results by the DCDN Domain.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Resource
Group stringId  - The ID of the resource group.
 - Security
Token string - Status string
 - The status of DCDN Domain.
 
- Change
End stringTime  - The end time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - Change
Start stringTime  - The start time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - Check
Domain boolShow  - Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: 
trueorfalse. - Domain
Search stringType  - 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 []string
 - A list ids of DCDN Domain.
 - Name
Regex string - A regex string to filter results by the DCDN Domain.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Resource
Group stringId  - The ID of the resource group.
 - Security
Token string - Status string
 - The status of DCDN Domain.
 
- change
End StringTime  - The end time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - change
Start StringTime  - The start time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - check
Domain BooleanShow  - Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: 
trueorfalse. - domain
Search StringType  - The search method. Default value: 
fuzzy_match. Valid values:fuzzy_match,pre_match,suf_match,full_match. - enable
Details Boolean - Default to 
false. Set it to true can output more details. - ids List<String>
 - A list ids of DCDN Domain.
 - name
Regex String - A regex string to filter results by the DCDN Domain.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - resource
Group StringId  - The ID of the resource group.
 - security
Token String - status String
 - The status of DCDN Domain.
 
- change
End stringTime  - The end time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - change
Start stringTime  - The start time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - check
Domain booleanShow  - Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: 
trueorfalse. - domain
Search stringType  - The search method. Default value: 
fuzzy_match. Valid values:fuzzy_match,pre_match,suf_match,full_match. - enable
Details boolean - Default to 
false. Set it to true can output more details. - ids string[]
 - A list ids of DCDN Domain.
 - name
Regex string - A regex string to filter results by the DCDN Domain.
 - output
File string - File name where to save data source results (after running 
pulumi preview). - resource
Group stringId  - The ID of the resource group.
 - security
Token string - status string
 - The status of DCDN Domain.
 
- change_
end_ strtime  - The end time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - change_
start_ strtime  - The start time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - check_
domain_ boolshow  - Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: 
trueorfalse. - domain_
search_ strtype  - 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_ strid  - The ID of the resource group.
 - security_
token str - status str
 - The status of DCDN Domain.
 
- change
End StringTime  - The end time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - change
Start StringTime  - The start time of the update. Specify the time in the ISO 8601 standard in the 
yyyy-MM-ddTHH:mm:ssZformat. The time must be in UTC. - check
Domain BooleanShow  - Specifies whether to display the domains in the checking, check_failed, or configure_failed status. Valid values: 
trueorfalse. - domain
Search StringType  - The search method. Default value: 
fuzzy_match. Valid values:fuzzy_match,pre_match,suf_match,full_match. - enable
Details Boolean - Default to 
false. Set it to true can output more details. - ids List<String>
 - A list ids of DCDN Domain.
 - name
Regex String - A regex string to filter results by the DCDN Domain.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - resource
Group StringId  - The ID of the resource group.
 - security
Token String - status String
 - The status of DCDN Domain.
 
getDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. Dcdn. Outputs. Get Domains Domain>  - 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.
 - Change
End stringTime  - Change
Start stringTime  - Check
Domain boolShow  - Domain
Search stringType  - Enable
Details bool - Name
Regex string - Output
File string - Resource
Group stringId  - The ID of the resource group.
 - Security
Token string - Status string
 - The status of DCDN Domain. Valid values: 
online,offline,check_failed,checking,configure_failed,configuring. 
- Domains
[]Get
Domains Domain  - 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.
 - Change
End stringTime  - Change
Start stringTime  - Check
Domain boolShow  - Domain
Search stringType  - Enable
Details bool - Name
Regex string - Output
File string - Resource
Group stringId  - The ID of the resource group.
 - Security
Token string - Status string
 - The status of DCDN Domain. Valid values: 
online,offline,check_failed,checking,configure_failed,configuring. 
- domains
List<Get
Domains Domain>  - 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.
 - change
End StringTime  - change
Start StringTime  - check
Domain BooleanShow  - domain
Search StringType  - enable
Details Boolean - name
Regex String - output
File String - resource
Group StringId  - The ID of the resource group.
 - security
Token String - status String
 - The status of DCDN Domain. Valid values: 
online,offline,check_failed,checking,configure_failed,configuring. 
- domains
Get
Domains Domain[]  - 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.
 - change
End stringTime  - change
Start stringTime  - check
Domain booleanShow  - domain
Search stringType  - enable
Details boolean - name
Regex string - output
File string - resource
Group stringId  - The ID of the resource group.
 - security
Token string - status string
 - The status of DCDN Domain. Valid values: 
online,offline,check_failed,checking,configure_failed,configuring. 
- domains
Sequence[Get
Domains Domain]  - 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_ strtime  - change_
start_ strtime  - check_
domain_ boolshow  - domain_
search_ strtype  - enable_
details bool - name_
regex str - output_
file str - resource_
group_ strid  - 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.
 - change
End StringTime  - change
Start StringTime  - check
Domain BooleanShow  - domain
Search StringType  - enable
Details Boolean - name
Regex String - output
File String - resource
Group StringId  - The ID of the resource group.
 - security
Token String - status String
 - The status of DCDN Domain. Valid values: 
online,offline,check_failed,checking,configure_failed,configuring. 
Supporting Types
GetDomainsDomain  
- Cert
Name 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.
 - Domain
Name string - The name of the DCDN Domain.
 - Gmt
Modified string - The time when the accelerated domain was last modified.
 - Id string
 - The ID of the DCDN Domain.
 - Resource
Group stringId  - The ID of the resource group.
 - Scope string
 - The acceleration region.
 - Sources
List<Pulumi.
Ali Cloud. Dcdn. Inputs. Get Domains Domain Source>  - The origin information.
 - Ssl
Protocol string - Indicates whether the SSL certificate is enabled.
 - Ssl
Pub string - Indicates the public key of the certificate.
 - Status string
 - The status of DCDN Domain.
 
- Cert
Name 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.
 - Domain
Name string - The name of the DCDN Domain.
 - Gmt
Modified string - The time when the accelerated domain was last modified.
 - Id string
 - The ID of the DCDN Domain.
 - Resource
Group stringId  - The ID of the resource group.
 - Scope string
 - The acceleration region.
 - Sources
[]Get
Domains Domain Source  - The origin information.
 - Ssl
Protocol string - Indicates whether the SSL certificate is enabled.
 - Ssl
Pub string - Indicates the public key of the certificate.
 - Status string
 - The status of DCDN Domain.
 
- cert
Name 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.
 - domain
Name String - The name of the DCDN Domain.
 - gmt
Modified String - The time when the accelerated domain was last modified.
 - id String
 - The ID of the DCDN Domain.
 - resource
Group StringId  - The ID of the resource group.
 - scope String
 - The acceleration region.
 - sources
List<Get
Domains Domain Source>  - The origin information.
 - ssl
Protocol String - Indicates whether the SSL certificate is enabled.
 - ssl
Pub String - Indicates the public key of the certificate.
 - status String
 - The status of DCDN Domain.
 
- cert
Name 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.
 - domain
Name string - The name of the DCDN Domain.
 - gmt
Modified string - The time when the accelerated domain was last modified.
 - id string
 - The ID of the DCDN Domain.
 - resource
Group stringId  - The ID of the resource group.
 - scope string
 - The acceleration region.
 - sources
Get
Domains Domain Source[]  - The origin information.
 - ssl
Protocol string - Indicates whether the SSL certificate is enabled.
 - ssl
Pub 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_ strid  - The ID of the resource group.
 - scope str
 - The acceleration region.
 - sources
Sequence[Get
Domains Domain Source]  - 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.
 
- cert
Name 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.
 - domain
Name String - The name of the DCDN Domain.
 - gmt
Modified String - The time when the accelerated domain was last modified.
 - id String
 - The ID of the DCDN Domain.
 - resource
Group StringId  - The ID of the resource group.
 - scope String
 - The acceleration region.
 - sources List<Property Map>
 - The origin information.
 - ssl
Protocol String - Indicates whether the SSL certificate is enabled.
 - ssl
Pub String - Indicates the public key of the certificate.
 - status String
 - The status of DCDN Domain.
 
GetDomainsDomainSource   
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.