Updating a Virtual Gateway

Function

This API is used to update a virtual gateway.

URI

PUT /v2.0/dcaas/virtual-gateways/{virtual_gateway_id}

Table 1 Parameter description

Parameter

Type

Mandatory

Description

virtual_gateway_id

String

Yes

Specifies the virtual gateway ID.

Request

Table 2 lists the request parameter.

Table 2 Request parameter

Parameter

Type

Mandatory

Description

virtual_gateway

Dictionary data structure

Yes

Specifies the virtual_gateway object.

Parameter

Type

Mandatory

Description

description

String

No

Provides supplementary information about the virtual gateway.

name

String

No

Specifies the virtual gateway name.

local_ep_group_id

String

No

Specifies the ID of the local endpoint group that records CIDR blocks of the VPC subnets.

Response

Table 3 lists the response parameter.

Table 3 Response parameter

Parameter

Type

Description

virtual_gateway

Dictionary data structure

Specifies the virtual_gateway object.

Description of field virtual_gateway

Parameter

Type

Description

id

String

Specifies the virtual gateway ID.

tenant_id

String

Specifies the project ID.

name

String

Specifies the virtual gateway name.

description

String

Provides supplementary information about the virtual gateway.

vpc_id

String

Specifies the ID of the VPC to be accessed.

local_ep_group_id

String

Specifies the ID of the local endpoint group that records CIDR blocks of the VPC subnets.

device_id

String

Specifies the ID of the physical device used by the virtual gateway.

redundant_device_id

String

Specifies the ID of the redundant physical device used by the virtual gateway.

type

String

Specifies the virtual gateway type. The value can be default or double ipsec.

ipsec_bandwidth

Integer

Specifies the bandwidth provided for IPsec VPN in Mbit/s.

bgp_asn

Integer

Specifies the BGP ASN of the virtual gateway.

status

String

Specifies the virtual gateway status.

The value can be ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.

admin_state_up

Boolean

Specifies the administrative status of the virtual gateway.

The value can be true or false.

Examples

Returned Value

For details, see section Common Returned Values.