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

Get a versioned schema (schema with subject/version) of a subject.

HTTP request

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

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 body contains an instance of SchemaVersion.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.