Method: projects.schemas.get

Gets a schema.

HTTP request

GET https://pubsub.googleapis.com/v1/{name}

Path parameters

Parameters
name

string

Required. The name of the schema to get. Format is projects/{project}/schemas/{schema}.

Query parameters

Parameters
view

enum (SchemaView)

The set of fields to return in the response. If not set, returns a Schema with all fields filled out. Set to BASIC to omit the definition.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Schema.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.