forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
8.5 KiB
8.5 KiB
Querying a Virtual Interface
Function
This API is used to query a virtual interface.
URI
GET /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.
Response
Table 3 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.
- Example response
{ "virtual_interface" : { "id": "634c61d0-fd7b-4961-adb6-37a2e3c42d08", "name": "test-vif", "description": null, "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.
Parent topic: Virtual Interface