---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/securityGateways"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/securityGateways"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/securityGateways

`GET /v1/projects/{projectsId}/locations/{locationsId}/securityGateways`

## Request

- Base URL: `https://beyondcorp.googleapis.com`
- URL: `https://beyondcorp.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/securityGateways`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists SecurityGateways in a given project and location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse: Message for response to listing SecurityGateways.
  - `nextPageToken` string: A token to retrieve the next page of results, or empty if there are no more results in the list.
  - `securityGateways` GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway[]: A list of BeyondCorp SecurityGateway in the project.
    - `createTime` string, google-datetime: Output only. Timestamp when the resource was created.
    - `delegatingServiceAccount` string: Output only. Service account used for operations that involve resources in consumer projects.
    - `displayName` string: Optional. An arbitrary user-provided name for the SecurityGateway. Cannot exceed 64 characters.
    - `externalIps` string[]: Output only. IP addresses that will be used for establishing connection to the endpoints.
    - `hubs` object: Optional. Map of Hubs that represents regional data path deployment with GCP region as a key.
    - `logging` GoogleCloudBeyondcorpSecuritygatewaysV1LoggingConfig: Configuration for Cloud Logging.
    - `name` string: Identifier. Name of the resource.
    - `proxyProtocolConfig` GoogleCloudBeyondcorpSecuritygatewaysV1ProxyProtocolConfig: The configuration for the proxy.
      - `allowedClientHeaders` string[]: Optional. List of the allowed client header names.
      - `clientIp` boolean: Optional. Client IP configuration. The client IP address is included if true.
      - `contextualHeaders` GoogleCloudBeyondcorpSecuritygatewaysV1ContextualHeaders: Contextual headers configuration.
        - `deviceInfo` GoogleCloudBeyondcorpSecuritygatewaysV1ContextualHeadersDelegatedDeviceInfo: The delegated device information configuration.
          - `outputType` 'OUTPUT_TYPE_UNSPECIFIED' | 'PROTOBUF' | 'JSON' | 'NONE': Optional. The output type details for the delegated device.
        - `dispatchInfo` GoogleCloudBeyondcorpSecuritygatewaysV1ContextualHeadersDelegatedDispatchInfo: The delegated dispatch information configuration.
          - `outputType` 'OUTPUT_TYPE_UNSPECIFIED' | 'PROTOBUF' | 'JSON' | 'NONE': Optional. The output type details for the delegated dispatch information.
        - `groupInfo` GoogleCloudBeyondcorpSecuritygatewaysV1ContextualHeadersDelegatedGroupInfo: The delegated group configuration details.
          - `outputType` 'OUTPUT_TYPE_UNSPECIFIED' | 'PROTOBUF' | 'JSON' | 'NONE': Optional. The output type of the delegated group information.
        - `outputType` 'OUTPUT_TYPE_UNSPECIFIED' | 'PROTOBUF' | 'JSON' | 'NONE': Optional. Default output type for all enabled headers.
        - `userInfo` GoogleCloudBeyondcorpSecuritygatewaysV1ContextualHeadersDelegatedUserInfo: The configuration information for the delegated user.
          - `outputType` 'OUTPUT_TYPE_UNSPECIFIED' | 'PROTOBUF' | 'JSON' | 'NONE': Optional. The delegated user's information.
      - `gatewayIdentity` 'GATEWAY_IDENTITY_UNSPECIFIED' | 'RESOURCE_NAME': Optional. The security gateway identity configuration.
      - `metadataHeaders` object: Optional. Custom resource specific headers along with the values. The names should conform to RFC 9110: >Field names can contain alphanumeric characters, hyphens, and periods, can contain only ASCII-printable characters and tabs, and must start with a letter.
    - `serviceDiscovery` GoogleCloudBeyondcorpSecuritygatewaysV1ServiceDiscovery: Settings related to the Service Discovery.
      - `apiGateway` GoogleCloudBeyondcorpSecuritygatewaysV1ServiceDiscoveryApiGateway: If Service Discovery is done through API, defines its settings.
        - `resourceOverride` GoogleCloudBeyondcorpSecuritygatewaysV1ServiceDiscoveryApiGatewayOperationDescriptor: API operation descriptor.
          - `path` string: Optional. Contains the URI path fragment where HTTP request is sent.
    - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'UPDATING' | 'DELETING' | 'RUNNING' | 'DOWN' | 'ERROR': Output only. The operational state of the SecurityGateway.
    - `updateTime` string, google-datetime: Output only. Timestamp when the resource was last modified.
  - `unreachable` string[]: A list of locations that could not be reached.

---

[API](https://skmtc.dev/google/apis/beyondcorp.md) - [All operations](https://skmtc.dev/google/apis/beyondcorp/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/beyondcorp/revisions/87fad84c62fc?raw)
