projects

GET /v1/projects/{projectsId}/locations/{locationsId}/generatedSpecApis/{generatedSpecApisId}

Changed on

Gets a single GeneratedSpecApi by resource name. Preview: this method is in Public Preview. Behavior and the API surface may change until the Spec Generation feature reaches General Availability.

Request

  • Base URL
    https://apihub.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/apihub.readonly
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/apihub.readonly
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/apihub.readwrite
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/apihub.readwrite
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
  • TypeScript

Path parameters

projectsIdstring required
locationsIdstring required
generatedSpecApisIdstring required

Response

Successful response

apistring

Output only. The full resource name of the associated catalog API. Format: projects/{project}/locations/{location}/apis/{api}

createTimestring google-datetime

Output only. The time at which the resource was created.

deploymentstring

Output only. The full resource name of the associated catalog Deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}

displayNamestring

Output only. Human-readable display name; server-derived.

lastSpecGeneratedTimestring google-datetime

Output only. The time at which the most recent spec was generated. Unset while state == SPEC_API_REGISTERED.

namestring

Identifier. The full resource name. The trailing segment is the pipeline-generated identifier. Format: projects/{project}/locations/{location}/generatedSpecApis/{generated_spec_api}

specstring

Output only. The full resource name of the associated catalog Spec; populated only when state == SPEC_ASSOCIATED. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

state'STATE_UNSPECIFIED' | 'SPEC_API_REGISTERED' | 'SPEC_GENERATED' | 'SPEC_ASSOCIATED'

Output only. The current lifecycle state.

updateTimestring google-datetime

Output only. The time at which the resource was last updated.

versionstring

Output only. The full resource name of the associated catalog Version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Changes