全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::DNS::Domain

更新時間:Mar 25, 2025

ALIYUN::DNS::Domain類型用於添加網域名稱。

文法

{
  "Type": "ALIYUN::DNS::Domain",
  "Properties": {
    "GroupId": String,
    "DomainName": String,
    "Tags": List,
    "ResourceGroupId": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

GroupId

String

網域名稱分組ID。

DomainName

String

網域名稱名稱。

ResourceGroupId

String

網域名稱所屬的資源群組ID。

Tags

List

標籤。

最多支援添加20個標籤。

更多資訊,請參見Tags屬性

Tags文法

"Tags": [
  {
    "Key": String,
    "Value": String
  }
]  

Tags屬性

屬性名稱

類型

必須

允許更新

描述

約束

Key

String

標籤鍵。

長度為1~128個字元,不能以aliyunacs:開頭,不能包含http://或者https://

Value

String

標籤值。

長度為0~128個字元,不能以aliyunacs:開頭,不能包含http://或者https://

傳回值

Fn::GetAtt

  • DomainId:網域名稱ID。

  • DomainName:網域名稱名稱。

  • GroupId:網域名稱分組ID。

  • GroupName:網域名稱分組名稱。

  • PunyCode:只針對中文網域名稱返回punycode碼。

  • DnsServers:網域名稱在解析系統中的DNS列表。

  • Arn:阿里雲資源名稱。

樣本

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  GroupId:
    Type: String
    Description: Domain name grouping, the default is the "default grouping" GroupId
Resources:
  Domain:
    Type: ALIYUN::DNS::Domain
    Properties:
      GroupId:
        Ref: GroupId
      DomainName: DemoDomain
Outputs: {}
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "GroupId": {
      "Type": "String",
      "Description": "Domain name grouping, the default is the \"default grouping\" GroupId"
    }
  },
  "Resources": {
    "Domain": {
      "Type": "ALIYUN::DNS::Domain",
      "Properties": {
        "GroupId": {
          "Ref": "GroupId"
        },
        "DomainName": "DemoDomain"
      }
    }
  },
  "Outputs": {
  }
}

更多樣本,請參見添加網域名稱和添加網域名稱分組的組合樣本:YAML樣本