All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DNS::Domain

Last Updated:Apr 25, 2025

ALIYUN::DNS::Domain is used to add a domain name.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

GroupId

String

No

Yes

The ID of the domain name group.

None.

DomainName

String

Yes

No

The domain name.

None.

ResourceGroupId

String

No

Yes

The ID of the resource group to which the domain name belongs.

None.

Tags

List

No

Yes

The tags.

You can add up to 20 tags.

For more information, see Tags properties.

Tags syntax

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

Tags properties

Property

Type

Required

Editable

Description

Constraint

Key

String

Yes

No

The key of the tag.

The key must be 1 to 128 characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:.

Value

String

No

No

The value of the tag.

The value can be up to 128 characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:.

Return values

Fn::GetAtt

  • DomainId: the ID of the domain name.

  • DomainName: the domain name.

  • GroupId: the ID of the domain name group.

  • GroupName: the name of the domain name group.

  • PunyCode: the Punycode that is returned only for a Chinese domain name.

  • DnsServers: the Domain Name System (DNS) servers that are used to resolve the domain name.

  • Arn: the Alibaba Cloud Resource Name (ARN).

Examples

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": {
  }
}

For more examples, visit domain.yml. In the example, the ALIYUN::DNS::Domain and ALIYUN::DNS::DomainGroup resource types are used.