Creates a custom domain name for an instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xxxxxx |
| ModuleName |
string |
Yes |
The custom module name. |
Registry |
| Domain |
string |
Yes |
The custom domain name. |
test.com |
| CertId |
string |
Yes |
The ID of the custom domain name certificate. |
21428921 |
| CertRegionId |
string |
No |
The region to which the certificate belongs. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
True |
| RequestId |
string |
The request ID. |
1FA54F8C-8849-57F9-8069-F5F15EE82BE2 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "1FA54F8C-8849-57F9-8069-F5F15EE82BE2"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.