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 name and type, but not definition. Set to FULL to retrieve all fields.

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.