Virtual Private Cloud API, gRPC: GatewayService.List
Retrieves the list of Gateway resources in the specified folder.
gRPC request
rpc List (ListGatewaysRequest) returns (ListGatewaysResponse)
ListGatewaysRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
folder_id |
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. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
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:
|
ListGatewaysResponse
{
"gateways": [
{
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
// Includes only one of the fields `shared_egress_gateway`
"shared_egress_gateway": "SharedEgressGateway"
// end of the list of possible fields
}
],
"next_page_token": "string"
}
Field |
Description |
gateways[] |
List of gateways. |
next_page_token |
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. |
folder_id |
string ID of the folder that the gateway belongs to. |
created_at |
Creation timestamp. |
name |
string Name of the gateway. |
description |
string Description of the gateway. 0-256 characters long. |
labels |
object (map<string, string>) Gateway labels as |
shared_egress_gateway |
Includes only one of the fields Gateway specification |
SharedEgressGateway
Shared Egress Gateway configuration
Field |
Description |
Empty |