Querying VPN Services¶
Function¶
This interface is used to query VPN services.
URI¶
GET /v2.0/vpn/vpnservices
Request Message¶
Table 1 describes the request parameters.
Parameter | Type | Mandatory | Description |
---|---|---|---|
fields | String | No | Controls which parameters are returned. If this parameter is not specified, all parameters will be returned. |
Note
The project_id parameter is not supported.
Response Message¶
Table 2 describes the response parameters.
Parameter | Type | Mandatory | Description |
---|---|---|---|
vpnservices | List<Object> | Yes | Specifies the VPN service object. |
status | String | Yes | Specifies whether the VPN service is currently operational. The value can be ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE. |
router_id | String | Yes | Specifies the router ID. |
name | String | Yes | Specifies the VPN service name. |
external_v6_ip | String | Yes | Specifies the IPv6 address of the VPN service external gateway. |
admin_state_up | Boolean | Yes | Specifies the administrative status. The value can be true or false. |
subnet_id | String | No | Specifies the subnet ID. |
tenant_id | String | Yes | Specifies the project ID. |
external_v4_ip | String | Yes | Specifies the IPv4 address of the VPN service external gateway. |
id | String | No | Specifies the VPN service ID. |
description | String | Yes | Provides supplementary information about the VPN service. |
Example¶
Request Example
GET /v2.0/vpn/vpnservices
Example Response
{ "vpnservices": [ { "router_id": "66e3b16c-8ce5-40fb-bb49-ab6d8dc3f2aa", "status": "PENDING_CREATE", "name": "myservice", "external_v6_ip": "2001:db8::1", "admin_state_up": true, "subnet_id": null, "project_id": "10039663455a446d8ba2cbb058b0f578", "tenant_id": "10039663455a446d8ba2cbb058b0f578", "external_v4_ip": "172.32.1.11", "id": "5c561d9d-eaea-45f6-ae3e-08d1a7080828", "description": "", } ] }
Returned Values¶
For details, see section Common Returned Values.