DATASOURCE::DNS::Domains类型用于获取域名列表。

语法

{
  "Type": "DATASOURCE::DNS::Domains",
  "Properties": {
    "ResourceGroupId": String,
    "KeyWord": String,
    "Lang": String,
    "Starmark": Boolean,
    "SearchMode": String,
    "GroupId": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
ResourceGroupId String 资源组ID。
KeyWord String 关键字。 按照%KeyWord%模式搜索,不区分大小写。
Lang String 用户语言。
Starmark Boolean 是否查询域名星标。 取值:
  • true:查询域名星标。
  • false:不查询域名星标。
SearchMode String 搜索模式。 取值:
  • LIKE:模糊搜索。
  • EXACT:精确搜索。
GroupId String 域名分组ID。 如果不填写,则默认为全部分组。

返回数据(Fn::GetAtt)

  • DomainIds:域名ID列表。
  • Domains:域名详情列表。
属性名称 类型 描述 约束
DomainIds List 域名ID列表。
Domains List 域名详情列表。
AliDomain Boolean 是否为阿里云万网域名。 取值:
  • true:为阿里云万网域名。
  • false:不为阿里云万网域名。
DnsServers List 域名在解析系统中的DNS列表。 示例:
["ns1.alidns.com","ns2.alidns.com"]
DomainName String 域名名称。
GroupId String 域名分组ID。
DomainId String 域名ID。
GroupName String 域名分组名称。
InstanceEndTime String 实例的到期时间。
InstanceExpired Boolean 实例是否过期。 取值:
  • true:已过期。
  • false:未过期。
InstanceId String 云解析产品ID。
PunyCode String 中文域名的punycode码。 英文域名返回为空。
RecordCount Number 域名含有的解析记录条数。
RegistrantEmail String 注册人邮箱。
Remark String 备注。
Starmark Boolean 是否查询域名星标。 取值:
  • true:查询域名星标。
  • false:不查询域名星标。
VersionCode String 云解析版本Code
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