Method: projects.locations.schemaRegistries.contexts.schemas.getSchema

Get the schema string for the given schema id. The response will be the schema string.

HTTP request

GET https://managedkafka.googleapis.com/v1/{name=projects/*/locations/*/schemaRegistries/*/contexts/*/schemas/**}/schema

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the schema to return. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/schemas/ids/{schema}

Query parameters

Parameters
subject

string

Optional. Used to limit the search for the schema ID to a specific subject, otherwise the schema ID will be searched for in all subjects in the given specified context.

Request body

The request body must be empty.

Response body

If successful, the response is a generic HTTP response whose format is defined by the method.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.