UpdateInstancePort
Modifies the port number.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:UpdateInstancePort |
update |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/updatePort HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
hgprecn-cn-i7m2v08uxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| port |
integer |
No |
The port number. |
443 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
D1303CD4-AA70-5998-8025-F55B22C50840 |
| data |
boolean |
Indicates whether the operation is successful. Valid values: true: Successful. false: Failed. |
true |
| Success |
string |
Indicates whether an exception occurred during the request, which is independent of the business result. |
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": "D1303CD4-AA70-5998-8025-F55B22C50840",
"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.