Method: projects.locations.schemaRegistries.subjects.versions.getSchema

Get the schema string only for a version of a subject. The response will be the schema string.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the subject to return versions. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/subjects/{subject}/versions/{version} or projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/contexts/{context}/subjects/{subject}/versions/{version}

Query parameters

Parameters
deleted

boolean

Optional. If true, no matter if the subject/version is soft-deleted or not, it returns the version details. If false, it returns NOT_FOUND error if the subject/version is soft-deleted. The default is false.

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.