create_site_mx_record
Generate and configure MX DNS records for a website using the ESA MCP Server. Specify site ID, record name, mail server domain, priority, and TTL for accurate mail routing.
Instructions
Creates a DNS record for a specific website. Only MX records are supported.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bizName | No | The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: - image_video - api - web | |
comment | No | The comment of the record. The maximum length is 100 characters. | |
data | Yes | 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 | Yes | The record name. | |
siteId | Yes | 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)
{
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false,
"readOnlyHint": false
},
"properties": {
"bizName": {
"description": "The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:\n- image_video\n- api\n- web",
"type": "string"
},
"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": {
"priority": {
"description": "The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. Required.",
"type": "number"
},
"value": {
"description": "A valid domain name of the target mail server. Required.",
"example": [
"mx.example.com"
],
"type": "string"
}
},
"type": "object"
},
"recordName": {
"description": "The record name.",
"examples": [
"www.example.com"
],
"type": "string"
},
"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"
}
},
"required": [
"siteId",
"recordName",
"type",
"data"
],
"type": "object"
}