Changes the name of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:UpdateInstanceName |
update |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/instanceName HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
hgpostcn-cn-zpr30pupt004 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| instanceName |
string |
No |
The new name of the instance. The name must be 2 to 64 characters in length. A letter is counted as one character. |
new_name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response details. |
||
| RequestId |
string |
The ID of the request. |
C6B55032-D41A-5FE0-9C07-8BD81C88422E |
| Data |
boolean |
The result of the operation. This indicates whether the operation was successful. Valid values:
|
true |
| Success |
boolean |
The result of the request. This indicates whether an exception occurred. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
null |
| ErrorMessage |
string |
The error message. |
null |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "C6B55032-D41A-5FE0-9C07-8BD81C88422E",
"Data": true,
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.