Updates the status of an instance endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:UpdateInstanceEndpointStatus |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
| EndpointType |
string |
Yes |
The type of the endpoint. Set the value to Internet. |
internet |
| Enable |
boolean |
Yes |
Whether to enable the instance endpoint. Valid values:
|
false |
| ModuleName |
string |
No |
The module to access. Valid values:
|
Chart |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Whether the request is successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
2FC14396-A16A-42BA-AAE4-BB94D956DF09 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "2FC14396-A16A-42BA-AAE4-BB94D956DF09"
}
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.