• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. API Reference
  4. API Description
  5. Private Zone Management
  6. Disassociating a VPC from a Private Zone

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.
Table 1 Parameter in the URI

Parameter

Mandatory

Type

Description

zone_id

Yes

string

Zone ID

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.

    Table 3 Description of the router field

    Parameter

    Mandatory

    Type

    Description

    router_id

    Yes

    string

    Router ID (VPC ID)

    router_region

    No

    string

    Region of the router (VPC)

    If it is left blank, the region of the project in the token takes effect by default.

  • Example request
    {
        "router": {
            "router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b",
            "router_region": "xx"
        }
    }

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

    enum

    Task status

    The value can be PENDING_CREATEPENDING_DELETEACTIVE, or ERROR.

  • Example response
    {
        "status": "PENDING_DELETE",
        "router_id": "f0791650-db8c-4a20-8a44-a06c6e24b15b",
        "router_region": "xx"
    }
    

Returned Value

See General Request Return Code.