redpanda 1.2.1 published on Wednesday, Sep 10, 2025 by redpanda-data
redpanda.getSchema
Explore with Pulumi AI
redpanda 1.2.1 published on Wednesday, Sep 10, 2025 by redpanda-data
Schema data source allows you to retrieve information about a Schema Registry schema
Using getSchema
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSchema(args: GetSchemaArgs, opts?: InvokeOptions): Promise<GetSchemaResult>
function getSchemaOutput(args: GetSchemaOutputArgs, opts?: InvokeOptions): Output<GetSchemaResult>
def get_schema(cluster_id: Optional[str] = None,
subject: Optional[str] = None,
version: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetSchemaResult
def get_schema_output(cluster_id: Optional[pulumi.Input[str]] = None,
subject: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchemaResult]
func LookupSchema(ctx *Context, args *LookupSchemaArgs, opts ...InvokeOption) (*LookupSchemaResult, error)
func LookupSchemaOutput(ctx *Context, args *LookupSchemaOutputArgs, opts ...InvokeOption) LookupSchemaResultOutput
> Note: This function is named LookupSchema
in the Go SDK.
public static class GetSchema
{
public static Task<GetSchemaResult> InvokeAsync(GetSchemaArgs args, InvokeOptions? opts = null)
public static Output<GetSchemaResult> Invoke(GetSchemaInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
public static Output<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
fn::invoke:
function: redpanda:index/getSchema:getSchema
arguments:
# arguments dictionary
The following arguments are supported:
- cluster_
id str - The ID of the cluster where the schema is stored.
- subject str
- The subject name for the schema.
- version float
- The version of the schema. If not specified, the latest version is used.
getSchema Result
The following output properties are available:
- Cluster
Id string - The ID of the cluster where the schema is stored.
- Id double
- The unique identifier for the schema.
- References
List<Get
Schema Reference> - List of schema references.
- Schema string
- The schema definition in JSON format.
- Schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- Subject string
- The subject name for the schema.
- Version double
- The version of the schema. If not specified, the latest version is used.
- Cluster
Id string - The ID of the cluster where the schema is stored.
- Id float64
- The unique identifier for the schema.
- References
[]Get
Schema Reference - List of schema references.
- Schema string
- The schema definition in JSON format.
- Schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- Subject string
- The subject name for the schema.
- Version float64
- The version of the schema. If not specified, the latest version is used.
- cluster
Id String - The ID of the cluster where the schema is stored.
- id Double
- The unique identifier for the schema.
- references
List<Get
Schema Reference> - List of schema references.
- schema String
- The schema definition in JSON format.
- schema
Type String - The type of schema (AVRO, JSON, PROTOBUF).
- subject String
- The subject name for the schema.
- version Double
- The version of the schema. If not specified, the latest version is used.
- cluster
Id string - The ID of the cluster where the schema is stored.
- id number
- The unique identifier for the schema.
- references
Get
Schema Reference[] - List of schema references.
- schema string
- The schema definition in JSON format.
- schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- subject string
- The subject name for the schema.
- version number
- The version of the schema. If not specified, the latest version is used.
- cluster_
id str - The ID of the cluster where the schema is stored.
- id float
- The unique identifier for the schema.
- references
Sequence[Get
Schema Reference] - List of schema references.
- schema str
- The schema definition in JSON format.
- schema_
type str - The type of schema (AVRO, JSON, PROTOBUF).
- subject str
- The subject name for the schema.
- version float
- The version of the schema. If not specified, the latest version is used.
- cluster
Id String - The ID of the cluster where the schema is stored.
- id Number
- The unique identifier for the schema.
- references List<Property Map>
- List of schema references.
- schema String
- The schema definition in JSON format.
- schema
Type String - The type of schema (AVRO, JSON, PROTOBUF).
- subject String
- The subject name for the schema.
- version Number
- The version of the schema. If not specified, the latest version is used.
Supporting Types
GetSchemaReference
Package Details
- Repository
- redpanda redpanda-data/terraform-provider-redpanda
- License
- Notes
- This Pulumi package is based on the
redpanda
Terraform Provider.
redpanda 1.2.1 published on Wednesday, Sep 10, 2025 by redpanda-data