GetDomains
This data source provides a list of DNS Domains in an Alibaba Cloud account according to the specified filters.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var domainsDs = Output.Create(AliCloud.Dns.GetDomains.InvokeAsync(new AliCloud.Dns.GetDomainsArgs
{
DomainNameRegex = "^hegu",
OutputFile = "domains.txt",
}));
this.FirstDomainId = domainsDs.Apply(domainsDs => domainsDs.Domains[0].DomainId);
}
[Output("firstDomainId")]
public Output<string> FirstDomainId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
domains_ds = alicloud.dns.get_domains(domain_name_regex="^hegu",
output_file="domains.txt")
pulumi.export("firstDomainId", domains_ds.domains[0]["domain_id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const domainsDs = pulumi.output(alicloud.dns.getDomains({
domainNameRegex: "^hegu",
outputFile: "domains.txt",
}, { async: true }));
export const firstDomainId = domainsDs.domains[0].domainId;Using GetDomains
function getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>function get_domains(ali_domain=None, domain_name_regex=None, group_id=None, group_name_regex=None, ids=None, instance_id=None, key_word=None, lang=None, output_file=None, resource_group_id=None, search_mode=None, starmark=None, tags=None, version_code=None, opts=None)func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)public static class GetDomains {
public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ali
Domain bool Specifies whether the domain is from Alibaba Cloud or not.
- Domain
Name stringRegex A regex string to filter results by the domain name.
- Group
Id string Domain group ID, if not filled, the default is all groups.
- Group
Name stringRegex A regex string to filter results by the group name.
- Ids List<string>
- A list of domain IDs.
- Instance
Id string Cloud analysis product ID.
- Key
Word string The keywords are searched according to the
%KeyWord%mode, which is not case sensitive.- Lang string
User language.
- Output
File string - Resource
Group stringId The Id of resource group which the dns belongs.
- Search
Mode string Search mode,
LIKEfuzzy search,EXACTexact search.- Starmark bool
Whether to query the domain name star.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Version
Code string Cloud analysis version code.
- Ali
Domain bool Specifies whether the domain is from Alibaba Cloud or not.
- Domain
Name stringRegex A regex string to filter results by the domain name.
- Group
Id string Domain group ID, if not filled, the default is all groups.
- Group
Name stringRegex A regex string to filter results by the group name.
- Ids []string
- A list of domain IDs.
- Instance
Id string Cloud analysis product ID.
- Key
Word string The keywords are searched according to the
%KeyWord%mode, which is not case sensitive.- Lang string
User language.
- Output
File string - Resource
Group stringId The Id of resource group which the dns belongs.
- Search
Mode string Search mode,
LIKEfuzzy search,EXACTexact search.- Starmark bool
Whether to query the domain name star.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Version
Code string Cloud analysis version code.
- ali
Domain boolean Specifies whether the domain is from Alibaba Cloud or not.
- domain
Name stringRegex A regex string to filter results by the domain name.
- group
Id string Domain group ID, if not filled, the default is all groups.
- group
Name stringRegex A regex string to filter results by the group name.
- ids string[]
- A list of domain IDs.
- instance
Id string Cloud analysis product ID.
- key
Word string The keywords are searched according to the
%KeyWord%mode, which is not case sensitive.- lang string
User language.
- output
File string - resource
Group stringId The Id of resource group which the dns belongs.
- search
Mode string Search mode,
LIKEfuzzy search,EXACTexact search.- starmark boolean
Whether to query the domain name star.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- version
Code string Cloud analysis version code.
- ali_
domain bool Specifies whether the domain is from Alibaba Cloud or not.
- domain_
name_ strregex A regex string to filter results by the domain name.
- group_
id str Domain group ID, if not filled, the default is all groups.
- group_
name_ strregex A regex string to filter results by the group name.
- ids List[str]
- A list of domain IDs.
- instance_
id str Cloud analysis product ID.
- key_
word str The keywords are searched according to the
%KeyWord%mode, which is not case sensitive.- lang str
User language.
- output_
file str - resource_
group_ strid The Id of resource group which the dns belongs.
- search_
mode str Search mode,
LIKEfuzzy search,EXACTexact search.- starmark bool
Whether to query the domain name star.
- Dict[str, Any]
A mapping of tags to assign to the resource.
- version_
code str Cloud analysis version code.
GetDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. Dns. 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 of domain IDs.
- Names List<string>
A list of domain names.
- Ali
Domain bool Indicates whether the domain is an Alibaba Cloud domain.
- Domain
Name stringRegex - Group
Id string Id of group that contains the domain.
- Group
Name stringRegex - Instance
Id string Cloud analysis product ID of the domain.
- Key
Word string - Lang string
- Output
File string - Resource
Group stringId The Id of resource group which the dns belongs.
- Search
Mode string - Starmark bool
- Dictionary<string, object>
- Version
Code string Cloud resolution version ID.
- 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 of domain IDs.
- Names []string
A list of domain names.
- Ali
Domain bool Indicates whether the domain is an Alibaba Cloud domain.
- Domain
Name stringRegex - Group
Id string Id of group that contains the domain.
- Group
Name stringRegex - Instance
Id string Cloud analysis product ID of the domain.
- Key
Word string - Lang string
- Output
File string - Resource
Group stringId The Id of resource group which the dns belongs.
- Search
Mode string - Starmark bool
- map[string]interface{}
- Version
Code string Cloud resolution version ID.
- 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 of domain IDs.
- names string[]
A list of domain names.
- ali
Domain boolean Indicates whether the domain is an Alibaba Cloud domain.
- domain
Name stringRegex - group
Id string Id of group that contains the domain.
- group
Name stringRegex - instance
Id string Cloud analysis product ID of the domain.
- key
Word string - lang string
- output
File string - resource
Group stringId The Id of resource group which the dns belongs.
- search
Mode string - starmark boolean
- {[key: string]: any}
- version
Code string Cloud resolution version ID.
- domains
List[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 List[str]
A list of domain IDs.
- names List[str]
A list of domain names.
- ali_
domain bool Indicates whether the domain is an Alibaba Cloud domain.
- domain_
name_ strregex - group_
id str Id of group that contains the domain.
- group_
name_ strregex - instance_
id str Cloud analysis product ID of the domain.
- key_
word str - lang str
- output_
file str - resource_
group_ strid The Id of resource group which the dns belongs.
- search_
mode str - starmark bool
- Dict[str, Any]
- version_
code str Cloud resolution version ID.
Supporting Types
GetDomainsDomain
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Ali
Domain bool Specifies whether the domain is from Alibaba Cloud or not.
- Dns
Servers List<string> DNS list of domain names in the resolution system.
- Domain
Id string ID of the domain.
- Domain
Name string Name of the domain.
- Group
Id string Domain group ID, if not filled, the default is all groups.
- Group
Name string Name of group that contains the domain.
- Id string
The Id of resource.
- In
Black boolHole Whether it is in black hole.
- In
Clean bool Whether it is cleaning.
- Instance
Id string Cloud analysis product ID.
- Line
Type string - Min
Ttl int Minimum TTL.
- Puny
Code string Punycode of the Chinese domain.
- Record
Line stringTree Json Tree-like analytical line list.
- Region
Lines bool Whether it is a regional route.
- Remark string
The Id of resource group which the dns belongs.
- Slave
Dns bool Whether to allow auxiliary dns.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Version
Code string Cloud analysis version code.
- Version
Name string
- Ali
Domain bool Specifies whether the domain is from Alibaba Cloud or not.
- Dns
Servers []string DNS list of domain names in the resolution system.
- Domain
Id string ID of the domain.
- Domain
Name string Name of the domain.
- Group
Id string Domain group ID, if not filled, the default is all groups.
- Group
Name string Name of group that contains the domain.
- Id string
The Id of resource.
- In
Black boolHole Whether it is in black hole.
- In
Clean bool Whether it is cleaning.
- Instance
Id string Cloud analysis product ID.
- Line
Type string - Min
Ttl int Minimum TTL.
- Puny
Code string Punycode of the Chinese domain.
- Record
Line stringTree Json Tree-like analytical line list.
- Region
Lines bool Whether it is a regional route.
- Remark string
The Id of resource group which the dns belongs.
- Slave
Dns bool Whether to allow auxiliary dns.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Version
Code string Cloud analysis version code.
- Version
Name string
- ali
Domain boolean Specifies whether the domain is from Alibaba Cloud or not.
- dns
Servers string[] DNS list of domain names in the resolution system.
- domain
Id string ID of the domain.
- domain
Name string Name of the domain.
- group
Id string Domain group ID, if not filled, the default is all groups.
- group
Name string Name of group that contains the domain.
- id string
The Id of resource.
- in
Black booleanHole Whether it is in black hole.
- in
Clean boolean Whether it is cleaning.
- instance
Id string Cloud analysis product ID.
- line
Type string - min
Ttl number Minimum TTL.
- puny
Code string Punycode of the Chinese domain.
- record
Line stringTree Json Tree-like analytical line list.
- region
Lines boolean Whether it is a regional route.
- remark string
The Id of resource group which the dns belongs.
- slave
Dns boolean Whether to allow auxiliary dns.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- version
Code string Cloud analysis version code.
- version
Name string
- ali
Domain bool Specifies whether the domain is from Alibaba Cloud or not.
- dns_
servers List[str] DNS list of domain names in the resolution system.
- domain_
id str ID of the domain.
- domain_
name str Name of the domain.
- group_
id str Domain group ID, if not filled, the default is all groups.
- group_
name str Name of group that contains the domain.
- id str
The Id of resource.
- in
Black boolHole Whether it is in black hole.
- in
Clean bool Whether it is cleaning.
- instance_
id str Cloud analysis product ID.
- line
Type str - min
Ttl float Minimum TTL.
- puny
Code str Punycode of the Chinese domain.
- record
Line strTree Json Tree-like analytical line list.
- region
Lines bool Whether it is a regional route.
- remark str
The Id of resource group which the dns belongs.
- slave
Dns bool Whether to allow auxiliary dns.
- Dict[str, Any]
A mapping of tags to assign to the resource.
- version_
code str Cloud analysis version code.
- version_
name str
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.