Updated on 2025-07-11 GMT+08:00

Upgrading a P2C VPN Gateway

Function

This API is used to upgrade a P2C VPN gateway.

Calling Method

For details, see Calling APIs.

URI

POST /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/upgrade

Table 1 Parameters in a request

Parameter

Type

Description

project_id

String

Specifies a project ID.

p2c_vgw_id

String

Specifies the ID of a P2C VPN gateway instance.

Request

  • Request parameters
    Table 2 UpgradeRequestBody

    Parameter

    Type

    Mandatory

    Description

    action

    String

    Yes

    • Specifies an upgrade operation.
    • Value range:
      • start
      • finish
      • rollback
  • Example request
    POST https://{Endpoint}/v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/upgrade
    
    {
        "action": "start"
    }

Response

  • Response parameters

    Returned status code 202: successful operation

    Table 3 Parameters in the response body

    Parameter

    Type

    Description

    job_id

    String

    Specifies a task ID.

    request_id

    String

    Specifies a request ID.

  • Example response
    {
        "job_id": "c7f1d3e3-0476-4a71-95a7-3ce8cbb969de",
        "request_id": "73f072d8-demo-a8df-va86-2a755d95636f"
    }

Status Codes

For details, see Status Codes.