DATASOURCE::DNS::Domains类型用于获取域名列表。
语法
{
  "Type": "DATASOURCE::DNS::Domains",
  "Properties": {
    "ResourceGroupId": String,
    "KeyWord": String,
    "Lang": String,
    "Starmark": Boolean,
    "SearchMode": String,
    "GroupId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 | 
| KeyWord | String | 否 | 是 | 关键字。 | 按照 | 
| Lang | String | 否 | 是 | 用户语言。 | 无 | 
| Starmark | Boolean | 否 | 是 | 是否查询域名星标。 | 取值: 
 | 
| SearchMode | String | 否 | 是 | 搜索模式。 | 取值: 
 | 
| GroupId | String | 否 | 是 | 域名分组ID。 | 如果不填写,则默认为全部分组。 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值: 
 | 
返回数据(Fn::GetAtt)
- DomainIds:域名ID列表。 
- Domains:域名详情列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| DomainIds | List | 域名ID列表。 | 无 | 
| Domains | List | 域名详情列表。 | 无 | 
| AliDomain | Boolean | 是否为阿里云万网域名。 | 取值: 
 | 
| DnsServers | List | 域名在解析系统中的DNS列表。 | 示例:  | 
| DomainName | String | 域名名称。 | 无 | 
| GroupId | String | 域名分组ID。 | 无 | 
| DomainId | String | 域名ID。 | 无 | 
| GroupName | String | 域名分组名称。 | 无 | 
| InstanceEndTime | String | 实例的到期时间。 | 无 | 
| InstanceExpired | Boolean | 实例是否过期。 | 取值: 
 | 
| InstanceId | String | 云解析产品ID。 | 无 | 
| PunyCode | String | 中文域名的 | 英文域名返回为空。 | 
| RecordCount | Number | 域名含有的解析记录条数。 | 无 | 
| RegistrantEmail | String | 注册人邮箱。 | 无 | 
| Remark | String | 备注。 | 无 | 
| Starmark | Boolean | 是否查询域名星标。 | 取值: 
 | 
| VersionCode | String | 云解析版本 | 无 | 
| VersionName | String | 云解析产品名称。 | 无 | 
示例
JSON格式
{
  "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"
        ]
      }
    }
  }
}YAML格式
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