DATASOURCE::DNS::Domains is used to query domain names.
Syntax
{
"Type": "DATASOURCE::DNS::Domains",
"Properties": {
"ResourceGroupId": String,
"KeyWord": String,
"Lang": String,
"Starmark": Boolean,
"SearchMode": String,
"GroupId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
ResourceGroupId | String | No | Yes | The ID of the resource group. | None |
KeyWord | String | No | Yes | The keyword. | The keyword for searches in %KeyWord% mode. The value is not case-sensitive.
|
Lang | String | No | Yes | The language type. | None |
Starmark | Boolean | No | Yes | Specifies whether to query the starmark of the domain name. | Valid values:
|
SearchMode | String | No | Yes | The search mode. | Valid values:
|
GroupId | String | No | Yes | The ID of the domain name group. | If you leave this property empty, all domain name groups are returned. |
Return values (Fn::GetAtt)
- DomainIds: the IDs of the domain names.
- Domains: the details of the domain names.
Property | Type | Description | Constraint |
---|---|---|---|
DomainIds | List | The IDs of the domain names. | None. |
Domains | List | The details of the domain names. | None. |
AliDomain | Boolean | Indicates whether the domain name is an Alibaba Cloud DNS (DNS) domain name. | Valid values:
|
DnsServers | List | The DNS servers that are used to resolve the domain name. | Example:
|
DomainName | String | The domain name. | None. |
GroupId | String | The ID of the domain name group. | None. |
DomainId | String | The ID of the domain name. | None. |
GroupName | String | The name of the domain name group. | None. |
InstanceEndTime | String | The time when the DNS instance expires. | None. |
InstanceExpired | Boolean | Indicates whether the DNS instance has expired. | Valid values:
|
InstanceId | String | The ID of the DNS instance. | None. |
PunyCode | String | The Punycode that is returned for Chinese domain names.
|
For English domain names, the return value is empty. |
RecordCount | Number | The number of DNS records of the domain name. | None. |
RegistrantEmail | String | The email address of the registrant. | None. |
Remark | String | The remark. | None. |
Starmark | Boolean | Indicates whether the starmark of the domain name is queried. | Valid values:
|
VersionCode | String | The version code of the DNS instance. | None. |
VersionName | String | The version name of the DNS instance. | None. |
Examples
-
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "KeyWord": { "Type": "String", "Description": "The keyword for searches in \"%KeyWord%\" mode. The value is not case-sensitive." } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::DNS::Domains", "Properties": { "KeyWord": { "Ref": "KeyWord" } } } }, "Outputs": { "Domains": { "Description": "The information about DNS domains.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Domains" ] } }, "DomainIds": { "Description": "The list of The DNS domain ids.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DomainIds" ] } } } }