forked from docs/doc-exports
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
12 KiB
12 KiB
Disassociating a VPC from a Private Zone
Function
Disassociate a VPC from a private zone.
When a private zone is associated with only one VPC, you cannot disassociate it.
URI
POST /v2/zones/{zone_id}/disassociaterouter
For details, see Table 1.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
zone_id |
Yes |
String |
Zone ID You can obtain the value by calling the API in Querying Private Zones. |
Request
- Parameter description
Table 2 Parameter in the request Parameter
Mandatory
Type
Description
router
Yes
Object
Router information (VPC associated with the zone)
For details, see Table 3.
- Example request
Response
- Parameter description
Table 4 Parameters in the response Parameter
Type
Description
router_id
String
Router ID (VPC ID)
router_region
String
Region of the router (VPC)
status
String
Resource status
For details, see Resource Status.
- Example response
{ "status": "PENDING_DELETE", "router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b", "router_region": "xx" }
Returned Value
If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.
For details, see Status Code.
Parent topic: Private Zone Management