Resource: Gateway
A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-Consumer specific actions based on an API Config such as authentication, policy enforcement, and backend selection.
| JSON representation |
|---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "displayName": string, "apiConfig": string, "state": enum ( |
| Fields | |
|---|---|
name |
Output only. Resource name of the Gateway. Format: projects/{project}/locations/{location}/gateways/{gateway} |
createTime |
Output only. Created time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Updated time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources An object containing a list of |
displayName |
Optional. Display name. |
apiConfig |
Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig} |
state |
Output only. The current state of the Gateway. |
defaultHostname |
Output only. The default hostname that serves traffic for this Gateway. |
streamingMode |
Optional. Immutable. Requests response streaming for a new gateway. An attempt to change it on update is rejected. If unset, the service selects the mode. This field records only what was requested and is never modified by the service; read |
effectiveStreamingMode |
Output only. The streaming mode this gateway is actually served with, which the service resolves at creation from |
State
All the possible Gateway states.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Gateway does not have a state yet. |
CREATING |
Gateway is being created. |
ACTIVE |
Gateway is running and ready for requests. |
FAILED |
Gateway creation failed. |
DELETING |
Gateway is being deleted. |
UPDATING |
Gateway is being updated. |
StreamingMode
Streaming mode for a Gateway. This enum is frozen. No values are expected to be added in the future.
| Enums | |
|---|---|
STREAMING_MODE_UNSPECIFIED |
The service selects the streaming mode. |
STREAMING_MODE_ENABLED |
Streaming is enabled. The gateway supports response streaming: server-sent events, HTTP chunked transfer, WebSockets, and gRPC/HTTP2 bidirectional streaming. |
EffectiveStreamingMode
The streaming mode a Gateway is served with. This enum is frozen. No values are expected to be added in the future.
| Enums | |
|---|---|
EFFECTIVE_STREAMING_MODE_UNSPECIFIED |
The service has not resolved a mode. Every gateway returned by gateways.get and gateways.list carries a resolved mode, so this value should not be returned under normal circumstances. |
EFFECTIVE_STREAMING_MODE_DISABLED |
The gateway does not support response streaming. |
EFFECTIVE_STREAMING_MODE_ENABLED |
The gateway supports response streaming. |
Methods |
|
|---|---|
|
Creates a new Gateway in a given project and location. |
|
Deletes a single Gateway. |
|
Gets details of a single Gateway. |
|
Gets the access control policy for a resource. |
|
Lists Gateways in a given project and location. |
|
Updates the parameters of a single Gateway. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |