rpk registry schema get
Get a schema by version, ID, or by an existing schema.
This returns a lookup of an existing schema or schemas in one of a few potential (mutually exclusive) ways:
-
By version, returning a schema for a required subject and version
-
By ID, returning all subjects using the schema, or filtering for one subject
-
By schema, checking if the schema has been created in the subject
To print the schema, use the --print-schema flag.
To print schema metadata properties, use the --print-metadata flag.
Flags
| Value | Type | Description |
|---|---|---|
|
bool |
If true, also return deleted schemas. |
|
int |
ID to lookup schemas usages of; subject optional. |
|
bool |
Print the schema metadata properties. |
|
bool |
Prints the schema in JSON format. |
|
string |
Schema file to check existence of. Must be |
|
string |
Schema version to lookup ( |
|
string |
Schema type of the file used to lookup ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |