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

Yes

Specifies the virtual_gateway object.

Parameter

Type

Mandatory

Description

description

String

No

Provides supplementary information about the virtual gateway.

Angle brackets (<>) are not allowed.

name

String

No

Specifies the virtual gateway name.

Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

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

Specifies the virtual_gateway object.

For details about the virtual_gateway field, see Table 1.

Examples

Status Codes

For details, see Common Status Codes.