Method: projects.schemas.list

Lists schemas in a project.

HTTP request


Path parameters

Parameters
parent

string

Required. The name of the project in which to list schemas. Format is projects/{project-id}.

Query parameters

Parameters
view

enum (SchemaView)

The set of Schema fields to return in the response. If not set, returns Schemas with name and type, but not definition. Set to FULL to retrieve all fields.

pageSize

integer

Maximum number of schemas to return.

pageToken

string

The value returned by the last ListSchemasResponse; indicates that this is a continuation of a prior schemas.list call, and that the system should return the next page of data.

Request body

The request body must be empty.

Response body

Response for the schemas.list method.

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

JSON representation
{
  "schemas": [
    {
      object (Schema)
    }
  ],
  "nextPageToken": string
}
Fields
schemas[]

object (Schema)

The resulting schemas.

nextPageToken

string

If not empty, indicates that there may be more schemas that match the request; this value should be passed in a new ListSchemasRequest.

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.