create_site_ns_record
Generate NS DNS records for websites using site ID, record name, and name server details. Supports TTL customization and optional comments for record management.
Instructions
Creates a DNS record for a specific website. Only NS records are supported.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
annotations | No | ||
comment | No | The comment of the record. The maximum length is 100 characters. | |
data | No | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html | |
recordName | No | The record name. | |
required | No | ||
siteId | No | The website ID, which can be obtained by calling the [ListSites] operation. | |
ttl | No | The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1. |
Input Schema (JSON Schema)
{
"properties": {
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false,
"readOnlyHint": false
},
"comment": {
"description": "The comment of the record. The maximum length is 100 characters.",
"type": "string"
},
"data": {
"description": "The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html",
"properties": {
"value": {
"description": "The name servers for the domain name. Required.",
"example": [
"ns.example.com"
],
"type": "string"
}
},
"type": "object"
},
"recordName": {
"description": "The record name.",
"examples": [
"www.example.com"
],
"type": "string"
},
"required": [
"siteId",
"recordName",
"type",
"data"
],
"siteId": {
"description": "The website ID, which can be obtained by calling the [ListSites] operation.",
"type": "number"
},
"ttl": {
"description": "The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1.",
"examples": [
1
],
"type": "number"
}
},
"type": "object"
}