DomainCreate【新建加速域名】¶
新建加速域名:可使用域名,回源IP,加速区域和ICP备案号来新建域名信息。 如果不指定必要新建条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
domainName | String | 域名 | Yes |
originIps | Array | 回源 IP | Yes |
areas | Array | 加速区域 | Yes |
icp_record | String | ICP 备案号 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "DomainCreate",
"domainName": "b.com",
"originIps": [
"192.168.172.172"
],
"areas": [
"hk",
"ov"
],
"icp_record": "abcd123456"
}
Example Response:
{
"message": "Create domain Successfully",
"code": 200
}