create_site
Add a website to the ESA MCP Server by specifying site details, coverage location, DNS setup, and instance ID. Ensure compliance with ICP filing for Chinese mainland domains.
Instructions
Adds a website. Make sure that you have an available plan before you add a website. Make sure that your website domain name has an ICP filing if the location you want to specify covers the Chinese mainland.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accessType | Yes | The DNS setup. Valid values: - NS; - CNAME | |
coverage | Yes | The service location. Valid values: - domestic: the Chinese mainland - global: global - overseas: outside the Chinese mainland | |
instanceId | Yes | The instance ID, which can be obtained by calling the [ListUserRatePlanInstances] operation. Specify at least one of the instance ID and website ID. If you specify both of them, the instance ID is used. | |
resourceGroupId | No | The ID of the resource group. If you leave this parameter empty, the system uses the default resource group ID. | |
siteName | Yes | The website name. |
Input Schema (JSON Schema)
{
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false,
"readOnlyHint": false
},
"properties": {
"accessType": {
"description": "The DNS setup. Valid values:\n- NS;\n- CNAME",
"enum": [
"NS",
"CNAME"
],
"examples": [
"NS"
],
"type": "string"
},
"coverage": {
"description": "The service location. Valid values:\n- domestic: the Chinese mainland\n- global: global\n- overseas: outside the Chinese mainland",
"enum": [
"global",
"domestic",
"overseas"
],
"examples": [
"domestic"
],
"type": "string"
},
"instanceId": {
"description": "The instance ID, which can be obtained by calling the [ListUserRatePlanInstances] operation. Specify at least one of the instance ID and website ID. If you specify both of them, the instance ID is used.",
"examples": [
"dbaudit-cn-nwy349jdb03"
],
"type": "string"
},
"resourceGroupId": {
"description": "The ID of the resource group. If you leave this parameter empty, the system uses the default resource group ID.",
"examples": [
"rg-acfmw4znnok****"
],
"type": "string"
},
"siteName": {
"description": "The website name.",
"examples": [
"example.com"
],
"type": "string"
}
},
"required": [
"siteName",
"coverage",
"accessType",
"instanceId"
],
"type": "object"
}