This API is used to query the customer gateway list.
For details, see Calling APIs.
GET /v5/{project_id}/customer-gateways
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
limit |
Integer |
No |
|
marker |
String |
No |
|
Returned status code 200: successful query
Parameter |
Type |
Description |
|---|---|---|
customer_gateways |
Array of ResponseCustomerGateway objects |
Specifies the customer gateway object. |
total_count |
Long |
Specifies the total number of a tenant's customer gateways. |
page_info |
PageInfo object |
Specifies pagination information. |
request_id |
String |
Specifies a request ID. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
|
name |
String |
|
id_type |
String |
|
id_value |
String |
Specifies the identifier of a customer gateway. |
bgp_asn |
Long |
Specifies the BGP AS number of the customer gateway. This parameter is available only when id_type is set to ip. |
created_at |
String |
|
updated_at |
String |
|
tags |
Array of VpnResourceTag objects |
Specifies a tag list. |
route_mode |
String |
|
ip |
String |
Parameter |
Type |
Description |
|---|---|---|
key |
String |
|
value |
String |
|
Parameter |
Type |
Description |
|---|---|---|
next_marker |
String |
Specifies the marker of the next page. The value is the time when the last resource in the last query response was created. |
current_count |
Integer |
Specifies the number of resources in the list. If the value of current_count is less than the value of limit in the query request, the current page is the last page. |
{
"customer_gateways": [{
"id": "e67d6e27-demo-a8df-va86-be9a0f0168e9",
"name": "cgw-a45b",
"id_type": "ip",
"id_value": "100.***.***.81",
"bgp_asn": 65588,
"created_at": "2025-08-13T02:38:05.09035Z",
"updated_at": "2025-08-13T02:38:05.09035Z",
"tags": [],
"route_mode": "bgp",
"ip": "100.***.***.81"
}, {
"id": "312067bb-demo-a8df-va86-09dc941bbffc",
"name": "cgw-21a3",
"id_value": "123******456",
"created_at": "2025-08-13T02:48:56.995988Z",
"updated_at": "2025-08-13T02:48:56.995988Z",
"tags": []
}],
"total_count": 2,
"page_info": {
"next_marker": "2025-04-17T07:11:55.045Z",
"current_count": 2
},
"request_id": "82a108d9-0929-42e9-adb7-e146c04c587c"
}
For details, see Status Codes.