Modifies the information about a host not on Alibaba Cloud.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyHostInfo |
The operation that you want to perform. Set the value to ModifyHostInfo. |
InstanceId | String | Yes | host-R_NSWNV**** |
The ID of the instance. Only hosts not on Alibaba Cloud are supported. |
HostName | String | No | portalHost |
The name of the host. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | The specified resource is not found. |
The error message. |
RequestId | String | EBB5215C-44AB-4000-A2D7-48634FDC4F04 |
The ID of the request. |
Success | Boolean | True |
Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. |
Examples
Sample request
http(s)://[Endpoint]/? Action=ModifyHostInfo
&InstanceId=host-R_NSWNV****
&<Common request parameters>
Sample success responses
XML
format
<ModifyHostInfo>
<RequestId>EBB5215C-44AB-4000-A2D7-48634FDC4F04</RequestId>
<Success>true</Success>
<Code>200</Code>
</ModifyHostInfo>
JSON
format
{
"RequestId": "EBB5215C-44AB-4000-A2D7-48634FDC4F04",
"Success": "true",
"Code": "200"
}
Error codes
For a list of error codes, visit the API Error Center.