Virtual Private Cloud API, REST: Gateway.List
Retrieves the list of Gateway resources in the specified folder.
HTTP request
GET https://vpc.api.cloud.yandex.net/vpc/v1/gateways
Query parameters
Field |
Description |
folderId |
string Required field. ID of the folder to list gateways in. To get the folder ID use a yandex.cloud.resourcemanager.v1.FolderService.List request. |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters Gateway listed in the response. The expression must specify:
|
Response
HTTP Code: 200 - OK
{
"gateways": [
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "string",
// Includes only one of the fields `sharedEgressGateway`
"sharedEgressGateway": "object"
// end of the list of possible fields
}
],
"nextPageToken": "string"
}
Field |
Description |
gateways[] |
List of gateways. |
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
Gateway
A Gateway resource. For more information, see Gateway.
Field |
Description |
id |
string ID of the gateway. Generated at creation time. |
folderId |
string ID of the folder that the gateway belongs to. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the gateway. |
description |
string Description of the gateway. 0-256 characters long. |
labels |
string Gateway labels as |
sharedEgressGateway |
object Includes only one of the fields Gateway specification |