schema_registries
Creates, updates, deletes, gets or lists a schema_registries
resource.
Overview
Name | schema_registries |
Type | Resource |
Id | google.managedkafka.schema_registries |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The name of the schema registry instance. Structured like: projects/{project}/locations/{location}/schemaRegistries/{schema_registry} The instance name {schema_registry} can contain the following: * Up to 255 characters. * Letters (uppercase or lowercase), numbers, and underscores. |
contexts | array | Output only. The contexts of the schema registry instance. |
Successful response
Name | Datatype | Description |
---|---|---|
schemaRegistries | array | The schema registry instances. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , schemaRegistriesId | Get the schema registry instance. | |
list | select | projectsId , locationsId | view | List schema registries. |
create | insert | projectsId , locationsId | Create a schema registry instance. | |
delete | delete | projectsId , locationsId , schemaRegistriesId | Delete a schema registry instance. |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
schemaRegistriesId | string | |
view | string |
SELECT
examples
- get
- list
Get the schema registry instance.
SELECT
name,
contexts
FROM google.managedkafka.schema_registries
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' -- required;
List schema registries.
SELECT
schemaRegistries
FROM google.managedkafka.schema_registries
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND view = '{{ view }}';
INSERT
examples
- create
- Manifest
Create a schema registry instance.
INSERT INTO google.managedkafka.schema_registries (
data__schemaRegistryId,
data__schemaRegistry,
projectsId,
locationsId
)
SELECT
'{{ schemaRegistryId }}',
'{{ schemaRegistry }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
contexts
;
# Description fields are for documentation purposes
- name: schema_registries
props:
- name: projectsId
value: string
description: Required parameter for the schema_registries resource.
- name: locationsId
value: string
description: Required parameter for the schema_registries resource.
- name: schemaRegistryId
value: string
description: >
Required. The schema registry instance ID to use for this schema registry. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number.
- name: schemaRegistry
value: object
description: >
SchemaRegistry is a schema registry instance.
DELETE
examples
- delete
Delete a schema registry instance.
DELETE FROM google.managedkafka.schema_registries
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND schemaRegistriesId = '{{ schemaRegistriesId }}' --required;