Updating a Virtual Interface

Function

This API is used to update a virtual interface.

The bandwidth specified for a virtual interface associated with a standard connection can be increased or decreased, but the bandwidth specified for a virtual interface associated with a hosted connection cannot be changed.

URI

PUT /v2.0/dcaas/virtual-interfaces/{virtual_interface_id}

Table 1 Parameter description

Parameter

Type

Mandatory

Description

virtual_interface_id

String

Yes

Specifies the virtual interface ID.

Request

Table 2 lists the request parameter.

Table 2 Request parameter

Parameter

Type

Mandatory

Description

virtual_interface

Dictionary

Yes

Specifies the virtual_interface object.

Table 3 Description of field virtual_interface

Parameter

Type

Mandatory

Description

virtual_interface_id

String

Yes

Specifies the virtual interface ID.

description

String

No

Provides supplementary information about the virtual interface.

Angle brackets (<>) are not allowed.

name

String

No

Specifies the virtual interface name.

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

bandwidth

Integer

No

Specifies the virtual interface bandwidth.

remote_ep_group_id

String

No

Specifies the ID of the remote endpoint group that records the CIDR blocks used by the on-premises network.

Response

Table 4 lists the response parameter.

Table 4 Response parameter

Parameter

Type

Description

virtual_interface

Dictionary

Specifies the virtual_interface object.

For details about the virtual_interface field, see Table 1.

Examples

Status Codes

For details, see Common Status Codes.