Adds a website.
Operation description
- 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.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
esa:CreateSite | create | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SiteName | string | Yes | The website name. | CreateSite |
Coverage | string | Yes | The service location. Valid values:
| domestic |
AccessType | string | Yes | The DNS setup. Valid values:
| NS |
InstanceId | string | 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. | dbaudit-cn-nwy349jdb03 |
ResourceGroupId | string | No | The ID of the resource group. If you leave this parameter empty, the system uses the default resource group ID. | rg-acfmw4znnok**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE",
"SiteId": 1234567890123,
"NameServerList": "ns1.example.com,ns2.example.com",
"VerifyCode": "verify_aah9dioasmov****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ServiceInvokeFailed | The call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details. | Failed to call the service. Please try again later or contact customer service for details. |
400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | Your plan is unavailable due to an overdue payment. Complete the payment first. |
400 | InvalidParameter.SiteName | Invalid website name. Specify a valid name that contains letters and digits and does not contain special characters. | Invalid website name. Specify a valid name that contains letters and digits and does not contain special characters. |
400 | QuotaExceed.SiteCount | The maximum number of websites associated with your plan has been reached. | The maximum number of websites associated with your plan has been reached. |
400 | Site.Conflict | Duplicate website names exist across multiple accounts. Rename or delete one and try again. | Duplicate website names exist across multiple accounts. Rename or delete one and try again. |
400 | Site.AlreadyExist | The website name you specified already exists. Try with another name. | The website name you specified already exists. Try with another name. |
400 | SubSiteUnavailable | Subdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA. | Subdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA. |
400 | Site.InvalidCoverage | The selected location is unavailable in your plan. Change the location to one that is covered by the plan and try again. | The selected location is unavailable in your plan. Change the location to one that is covered by the plan and try again. |
400 | InvalidSiteICP | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. |
400 | InvalidSiteName | Invalid website name. Check and try again. | Invalid website name. Check and try again. |
400 | Site.InBlacklist | The site name is in the blacklist. | The site name is in the blacklist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-10 | The Error code has changed | View Change Details |
2024-10-08 | The Error code has changed | View Change Details |