View API Gateway APIs in API hub
This page describes how to view your API Gateway APIs in API hub using the Google Cloud console or API. For more information, see List API resources .
View API Gateway APIs in API hub as described below.
Google Cloud console
To view your API Gateway APIs in API hub, do the following:
- In the Google Cloud console, go to the APIspage in API hub.
- Select Gateway: API Gatewayin the Filterdrop-down to display all API Gateway APIs.
The main API Catalog page opens showing all available APIs.
- Click an API to view more details.
paths
in OpenAPI Spec file- Path
- Specification file
- Method
- Deprecated flag
- Last modified timestamp
- Name
- Spec type
- Lint results
- Last modified timestamp
LOCATION
/ GATEWAY_ID
projects/ RUNTIME_PROJECT_ID
/locations/ LOCATION
/gateways/ GATEWAY_ID
https://console.cloud.google.com/api-gateway/gateway/ GATEWAY_ID
/location/ LOCATION
?project= RUNTIME_PROJECT_ID
REST
To list all API Gateway APIs in API hub, use the List APIs API. By adding the plugin instance filter, you can list only the API assets for the specified API Gateway plugin instance.
For example:
curl 'https://apihub.googleapis.com/v1/projects/ HUB_PROJECT_ID /locations/ HUB_LOCATION /apis?filter=source_metadata.plugin_instance_action_source.plugin_instance="projects/ HUB_PROJECT_ID /locations/ HUB_LOCATION /plugins/ PLUGIN_TYPE /instances/ PLUGIN_INSTANCE_ID "' \ -X GET \ -H "Authorization: Bearer $(gcloud auth print-access-token)"
Replace the following:
- HUB_PROJECT_ID : The name of your API hub host project. The host project was selected when API hub was provisioned.
- HUB_LOCATION : The location of the host project. The location was chosen when API hub was provisioned.
- PLUGIN_TYPE : Type of plugin. Set to system-api-gateway.
- PLUGIN_INSTANCE_ID : ID of the API Gateway plugin instance. Use the list plugin instances API to get the plugin instance ID.
The following provides an example of the response.
{
"apis": [
{
"name": "projects/myproject/locations/us-west1/apis/4fc95784-16b0-4b6e-8b7f-a08607febf78",
"displayName": "test-api-1",
"versions": [
"projects/myproject/locations/us-west1/apis/4fc95784-16b0-4b6e-8b7f-a08607febf78/versions/843a7e72-c5d2-4af8-95b0-162fa5d5ea10",
"projects/myproject/locations/us-west1/apis/4fc95784-16b0-4b6e-8b7f-a08607febf78/versions/b6af2674-4a0e-410e-990d-d90ccbe6867e"
],
"createTime": "2025-12-12T18:55:54.445487Z",
"updateTime": "2025-12-12T18:55:54.445487Z",
"apiStyle": {
"attribute": "projects/myproject/locations/us-west1/attributes/system-api-style",
"enumValues": {
"values": [
{
"id": "rest",
"displayName": "REST",
"description": "REST",
"immutable": true
}
]
}
},
"fingerprint": "test-api-1",
"sourceMetadata": [
{
"pluginInstanceActionSource": {
"pluginInstance": "projects/myproject/locations/us-west1/plugins/system-api-gateway/instances/90b21a65-38b4-4159-8e9d-07a8b6cecab0",
"actionId": "sync-metadata"
},
"sourceType": "PLUGIN",
"originalResourceId": "projects/runtimeproject/locations/global/apis/test-api-1",
"originalResourceCreateTime": "2025-12-11T01:57:54.841944920Z",
"originalResourceUpdateTime": "0001-01-01T00:00:00Z"
}
]
}
]
}
The following table describes the fields that are populated with API metadata from API Gateway in the response. See also Manage attributes in the API hub documentation for information about the other system and user-defined attributes.
name
projects/ HUB_PROJECT_ID
/locations/ HUB_LOCATION
/apis/ API_ID
Note:The API_ID is used in the resource name to ensure the value is unique.
displayName
createTime
updateTime
fingerprint
sourceMetadata
- Plugin instance ID in the following format:
projects/ HUB_PROJECT_ID /locations/ HUB_LOCATION /plugins/system-api-gateway/instances/ PLUGIN_INSTANCE_ID - Original API Gateway resource name in the following format:
projects/ RUNTIME_PROJECT_ID /locations/ LOCATION /apis/ API_ID

