> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

- [Resource: Context](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.schemaRegistries.contexts.md.txt#Context)
  - [JSON representation](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.schemaRegistries.contexts.md.txt#Context.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.schemaRegistries.contexts.md.txt#METHODS_SUMMARY)

## Resource: Context

Context represents an independent schema grouping in a schema registry instance.

| JSON representation |
|---|
| ``` { "name": string, "subjects": [ string ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The name of the context. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/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[]` | `string` Optional. The subjects of the context. |

| ## Methods ||
|---|---|
| ### `get` | Get the context. |
| ### `list` | List contexts for a schema registry. |