APIGatewayAPI
The APIGatewayAPI resource allows you to manage an API within API Gateway. An API is a logical grouping of resources that provides a name for a set of functionality that is exposed through an API Gateway.
Property | Value |
---|---|
Google Cloud Service Name | API Gateway |
Google Cloud Service Documentation | /api-gateway/docs/ |
Google Cloud REST Resource Name | apigateway/v1/projects.locations.apis |
Google Cloud REST Resource Documentation | /api-gateway/docs/reference/rest/v1/projects.locations.apis |
Config Connector Resource Short Names | gcpapigatewayapi gcpapigatewayapis apigatewayapi |
Config Connector Service Name | apigateway.googleapis.com |
Config Connector Resource Fully Qualified Name | apigatewayapis.apigateway.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
displayName: string
labels:
string: string
managedService: string
projectRef:
external: string
kind: string
name: string
namespace: string
resourceID: string
Fields | |
---|---|
Optional |
Optional. Display name. |
Optional |
Optional. Resource labels to represent user-provided metadata. For more information, see the {{compute_name_short}} documentation: https://cloud.google.com/compute/docs/labeling-resources" |
Optional |
Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API. |
Optional |
Optional. The project that this resource belongs to. |
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
Optional |
The kind of the Project resource; optional but must be `Project` if provided. |
Optional |
The `name` field of a `Project` resource. |
Optional |
The `namespace` field of a `Project` resource. |
Optional |
The APIGatewayAPI name. If not given, the metadata.name will be used. |
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
externalRef: string
observedGeneration: integer
observedState:
createTime: string
name: string
state: string
updateTime: string
Fields | |
---|---|
conditions |
Conditions represent the latest available observations of the object's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
externalRef |
A unique specifier for the APIGatewayAPI resource in GCP. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
observedState |
ObservedState is the state of the resource as most recently observed in GCP. |
observedState.createTime |
Created time. |
observedState.name |
Resource name of the API. Format: projects/{project}/locations/global/apis/{api} |
observedState.state |
State of the API. |
observedState.updateTime |
Updated time. |
Sample YAML(s)
Typical Use Case
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apigateway.cnrm.cloud.google.com/v1beta1
kind: APIGatewayAPI
metadata:
name: apigatewayapi-sample
spec:
projectRef:
external: projects/${PROJECT_ID?}
labels:
name: "wrench"
displayName: "Initial displayName"