Associate a private zone with a VPC.
POST /v2/zones/{zone_id}/associaterouter
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
zone_id |
Yes |
String |
Zone ID You can obtain the value by calling the API in Querying Private Zones. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
router |
Yes |
Object |
Router information (VPC associated with the zone) For details, see Table 3. |
POST https://{DNS_Endpoint}/v2/zones/ff8080825b8fc86c015b94bc6f8712c3/associaterouter
{ "router": { "router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b", "router_region": "xx" } }
Parameter |
Type |
Description |
---|---|---|
router_id |
String |
Router ID (VPC ID) |
router_region |
String |
Region of the VPC |
status |
String |
Resource status For details, see Resource Status. |
{ "status": "PENDING_CREATE", "router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b", "router_region": "xx" }
If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.
For details, see Status Code.