Removes a zone from an endpoint.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | RemoveZoneFromVpcEndpoint |
The operation that you want to perform. Set the value to RemoveZoneFromVpcEndpoint. |
EndpointId | String | Yes | ep-hp33b2e43fays7s8**** |
The ID of the endpoint from which you want to remove the zone. |
RegionId | String | Yes | eu-west-1 |
The region ID of the endpoint from which you want to remove the zone. You can call the DescribeRegions operation to query region IDs. |
ZoneId | String | Yes | eu-west-1a |
The ID of the zone that you want to remove. |
DryRun | Boolean | No | false |
Specifies whether to only check the API request. Valid values: true: only checks the API request. If you select this option, the specified zone is not
removed after the request passes the check. Check items include whether the AccessKey
pair is valid, whether the RAM user is authorized, and whether the required parameters
are specified. If the request fails to meet the requirements in the check items, an
error message is returned. If the request meets the requirements in the check items,
the false (default): checks the API request. After the request passes the check, the 2XX HTTP status code is returned, and the specified zone is removed. |
ClientToken | String | No | 0c593ea1-3bea-11e9-b96b-88e9fe637760 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate a value that is unique among different requests. ClientToken can contain only ASCII characters and cannot exceed 64 characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0c593ea1-3bea-11e9-b96b-88e9fe637760 |
The ID of the request. |
Examples
Sample requests
https://[Endpoint]/?Action=RemoveZoneFromVpcEndpoint
&EndpointId=ep-hp33b2e43fays7s8****
&RegionId=eu-west-1
&ZoneId=eu-west-1a
&<Common request parameters>
Sample success responses
XML
format
<RemoveZoneFromVpcEndpointResponse>
<RequestId>B40660B0-A67C-43B4-8C30-83BDBB541CFC</RequestId>
</RemoveZoneFromVpcEndpointResponse>
JSON
format
{
"RequestId": "B40660B0-A67C-43B4-8C30-83BDBB541CFC"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | EndpointNotFound | The specified Endpoint does not exist. | The error message returned because the specified endpoint is not found. |
400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | The error message returned because the operation is not allowed when the endpoint is being processed. |
400 | EndpointLocked | The specified Endpoint is locked. | The error message returned because the endpoint is locked. |
400 | EndpointConnectionOperationDenied | The endpoint is being connected. | The error message returned because the operation is not allowed when the endpoint connection is being processed. |
400 | EndpointZoneNotFound | The specified zone of Endpoint does not exist. | The error message returned because no zone is found for the endpoint. |
For a list of error codes, visit the API Error Center.