Updating a Virtual Interface¶
Function¶
This API is used to update a virtual interface.
URI¶
PUT /v2.0/dcaas/virtual-interfaces/{virtual_interface_id}
Parameter | Type | Mandatory | Description |
---|---|---|---|
virtual_interface_id | String | Yes | Specifies the virtual interface ID. |
Request¶
Table 2 lists the request parameter.
Parameter | Type | Mandatory | Description |
---|---|---|---|
virtual_interface | Dictionary | Yes | Specifies the virtual_interface object. |
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.
Parameter | Type | Description |
---|---|---|
virtual_interface | Dictionary | Specifies the virtual_interface object. |
For details about the virtual_interface field, see Table 1.
Examples¶
Example request
PUT /v2.0/dcaas/virtual-interfaces/{virtual_interface_id} { "virtual_interface" : { "name" : "virtual interface1", "description" : "New description" } }
Example response
{ "virtual_interface" : { "id": "634c61d0-fd7b-4961-adb6-37a2e3c42d08", "name": "virtual-interface1", "description": "New description", "tenant_id": "06057682ed80d5762f25c00b5deb794a", "direct_connect_id": "73707953-df69-4d03-8df5-b46a087c1424", "vgw_id": "9b5cab66-7634-4213-8d01-fa37cb908e12", "type": "private", "service_type": "vpc", "vlan": 687, "bandwidth": 2, "local_gateway_v4_ip": "11.11.11.1/30", "remote_gateway_v4_ip": "11.11.11.2/30", "route_mode": "static", "bgp_asn": null, "bgp_md5": null, "remote_ep_group_id": "a2b81f07-826f-40b0-9e8d-17d1af5230cf", "service_ep_group_id": null, "status": "ACTIVE", "create_time": "2021-12-15T08:31:27Z", "admin_state_up": true, "rate_limit": false, "enable_bfd": false, "health_check_source_ip": null, "route_limit": 50, "address_family": "ipv4", "local_gateway_v6_ip": null, "remote_gateway_v6_ip": null, "region_id": null, "enable_nqa": false, "enable_gre": false, "local_gre_tunnel_ip": null, "remote_gre_tunnel_ip": null, "lag_id": null } }
Status Codes¶
For details, see Common Status Codes.