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 the following mutually exclusive ways:
-
By version, returning a schema for a required subject and version.
-
By ID, returning all subjects using the schema, or filtered by the provided subject.
-
By schema, checking if the schema has been created in the subject.
To print the schema, use the --print-schema
flag.
Flags
Value | Type | Description |
---|---|---|
|
- |
If |
|
- |
Help for get. |
|
int |
Schema ID to look up usage; subject optional. |
|
- |
Prints the schema in JSON format. |
|
string |
Schema filepath to upload, must be |
|
string |
Schema version to check compatibility with ( |
|
string |
Schema type of the file used to lookup ( |
|
string |
Redpanda or |
|
stringArray |
Override |
|
string |
Output format: |
|
string |
Profile to use. See |
|
- |
Enable verbose logging. |