Call the ModifyHostInfo operation to modify the display information for a host that is not hosted on Alibaba Cloud.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ModifyHostInfo |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. This operation supports only hosts that are not on Alibaba Cloud. |
host-R_NSWNV**** |
| HostName |
string |
No |
The hostname. |
portalHost |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. Note
A status code of 200 indicates a successful request. |
200 |
| Message |
string |
The error message. |
The specified resource is not found. |
| RequestId |
string |
The request ID. |
EBB5215C-44AB-4000-A2D7-48634FDC4F04 |
| Success |
boolean |
Indicates whether the operation was successful. A value of true indicates success. A value of false indicates failure. |
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "EBB5215C-44AB-4000-A2D7-48634FDC4F04",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.