Updates the status of an endpoint.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateInstanceEndpointStatus |
The operation that you want to perform. Set the value to UpdateInstanceEndpointStatus. |
Enable | Boolean | Yes | false |
Specifies whether the endpoint is enabled. |
EndpointType | String | Yes | internet |
The type of the endpoint. Only Internet is supported. |
InstanceId | String | Yes | cri-kmsiwlxxdcva**** |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The region ID of the instance. |
ModuleName | String | No | Chart |
Specifies the module that you want to access. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | success |
The return value. |
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
RequestId | String | 2FC14396-A16A-42BA-AAE4-BB94D956DF09 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateInstanceEndpointStatus
&Enable=false
&EndpointType=internet
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>2FC14396-A16A-42BA-AAE4-BB94D956DF09</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess":true,
"RequestId":"2FC14396-A16A-42BA-AAE4-BB94D956DF09",
"Code":"success"
}
Error codes
For a list of error codes, visit the API Error Center.