Skip to main content

contexts

Creates, updates, deletes, gets or lists a contexts resource.

Overview

Namecontexts
TypeResource
Idgoogle.managedkafka.contexts

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the context. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context} The context name {context} can contain the following: * Up to 255 characters. * Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: ., -, _, +, %, and ~.
subjectsarrayOptional. The subjects of the context.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, schemaRegistriesId, contextsIdGet the context.
listselectprojectsId, locationsId, schemaRegistriesIdList contexts for a schema registry.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
contextsIdstring
locationsIdstring
projectsIdstring
schemaRegistriesIdstring

SELECT examples

Get the context.

SELECT
name,
subjects
FROM google.managedkafka.contexts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' -- required
AND contextsId = '{{ contextsId }}' -- required;