contexts
Creates, updates, deletes, gets or lists a contexts resource.
Overview
| Name | contexts |
| Type | Resource |
| Id | google.managedkafka.contexts |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. 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 ~. |
subjects | array | Optional. The subjects of the context. |
| Name | Datatype | Description |
|---|---|---|
contentType | string | The HTTP Content-Type header value specifying the content type of the body. |
data | string (byte) | The HTTP request/response body as raw binary. |
extensions | array | Application specific response metadata. Must be set in the first response for streaming APIs. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, schemaRegistriesId, contextsId | Get the context. | |
list | select | projectsId, locationsId, schemaRegistriesId | List 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.
| Name | Datatype | Description |
|---|---|---|
contextsId | string | |
locationsId | string | |
projectsId | string | |
schemaRegistriesId | string |
SELECT examples
- get
- list
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
;
List contexts for a schema registry.
SELECT
contentType,
data,
extensions
FROM google.managedkafka.contexts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' -- required
;