subjects_referenced_by
Creates, updates, deletes, gets or lists a subjects_referenced_by resource.
Overview
| Name | subjects_referenced_by |
| Type | Resource |
| Id | confluent.schema_registry.subjects_referenced_by |
Fields
The following fields are returned by SELECT queries:
- get_referenced_by
List of IDs for schemas that reference the specified schema.
| Name | Datatype | Description |
|---|---|---|
referenced_by | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_referenced_by | select | subject, version | offset, limit | Retrieves the IDs of schemas that reference the specified schema. |
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 |
|---|---|---|
subject | string | Name of the subject |
version | string | Version of the schema to be returned. Valid values for versionId are between [1,2^31-1] or the string "latest". "latest" returns the last registered schema under the specified subject. Note that there may be a new latest schema that gets registered right after this request is served. |
limit | integer (int32) | Pagination size for results. Ignored if negative |
offset | integer (int32) | Pagination offset for results |
SELECT examples
- get_referenced_by
Retrieves the IDs of schemas that reference the specified schema.
SELECT
referenced_by
FROM confluent.schema_registry.subjects_referenced_by
WHERE subject = '{{ subject }}' -- required
AND version = '{{ version }}' -- required
AND offset = '{{ offset }}'
AND limit = '{{ limit }}'
;