Method: projects.locations.apiHubInstances.lookup

Looks up an Api Hub instance in a given Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.

HTTP request

GET https://apihub.googleapis.com/v1/{parent=projects/*/locations/*}/apiHubInstances:lookup

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. There will always be only one Api Hub instance for a Google Cloud project across all locations. For preview, the location can be 'us-central1' or 'eu-west1' in the request. The parent resource for the Api Hub instance resource. Format: projects/{project}/locations/{location}

Request body

The request body must be empty.

Response body

The apiHubInstances.lookup method's response.`

If successful, the response body contains data with the following structure:

JSON representation
{
  "apiHubInstance": {
    object (ApiHubInstance)
  }
}
Fields
apiHubInstance

object (ApiHubInstance)

API Hub instance for a project if it exists, empty otherwise.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apiHubInstances.list

For more information, see the IAM documentation.