confluentcloud.getBusinessMetadata
Explore with Pulumi AI
confluentcloud.BusinessMetadata
describes a Business Metadata data source.
Example Usage
Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const pii = confluentcloud.getBusinessMetadata({
schemaRegistryCluster: {
id: essentials.id,
},
restEndpoint: essentials.restEndpoint,
credentials: {
key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
name: "PII",
});
import pulumi
import pulumi_confluentcloud as confluentcloud
pii = confluentcloud.get_business_metadata(schema_registry_cluster={
"id": essentials["id"],
},
rest_endpoint=essentials["restEndpoint"],
credentials={
"key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
"secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
name="PII")
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := confluentcloud.LookupBusinessMetadata(ctx, &confluentcloud.LookupBusinessMetadataArgs{
SchemaRegistryCluster: confluentcloud.GetBusinessMetadataSchemaRegistryCluster{
Id: essentials.Id,
},
RestEndpoint: pulumi.StringRef(essentials.RestEndpoint),
Credentials: confluentcloud.GetBusinessMetadataCredentials{
Key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
Secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
Name: "PII",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var pii = ConfluentCloud.GetBusinessMetadata.Invoke(new()
{
SchemaRegistryCluster = new ConfluentCloud.Inputs.GetBusinessMetadataSchemaRegistryClusterInputArgs
{
Id = essentials.Id,
},
RestEndpoint = essentials.RestEndpoint,
Credentials = new ConfluentCloud.Inputs.GetBusinessMetadataCredentialsInputArgs
{
Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
Name = "PII",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetBusinessMetadataArgs;
import com.pulumi.confluentcloud.inputs.GetBusinessMetadataSchemaRegistryClusterArgs;
import com.pulumi.confluentcloud.inputs.GetBusinessMetadataCredentialsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var pii = ConfluentcloudFunctions.getBusinessMetadata(GetBusinessMetadataArgs.builder()
.schemaRegistryCluster(GetBusinessMetadataSchemaRegistryClusterArgs.builder()
.id(essentials.id())
.build())
.restEndpoint(essentials.restEndpoint())
.credentials(GetBusinessMetadataCredentialsArgs.builder()
.key("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>")
.secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>")
.build())
.name("PII")
.build());
}
}
variables:
pii:
fn::invoke:
Function: confluentcloud:getBusinessMetadata
Arguments:
schemaRegistryCluster:
id: ${essentials.id}
restEndpoint: ${essentials.restEndpoint}
credentials:
key: <Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>
secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>
name: PII
Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const pii = confluentcloud.getBusinessMetadata({
name: "PII",
});
import pulumi
import pulumi_confluentcloud as confluentcloud
pii = confluentcloud.get_business_metadata(name="PII")
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := confluentcloud.LookupBusinessMetadata(ctx, &confluentcloud.LookupBusinessMetadataArgs{
Name: "PII",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var pii = ConfluentCloud.GetBusinessMetadata.Invoke(new()
{
Name = "PII",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetBusinessMetadataArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var pii = ConfluentcloudFunctions.getBusinessMetadata(GetBusinessMetadataArgs.builder()
.name("PII")
.build());
}
}
variables:
pii:
fn::invoke:
Function: confluentcloud:getBusinessMetadata
Arguments:
name: PII
Using getBusinessMetadata
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 getBusinessMetadata(args: GetBusinessMetadataArgs, opts?: InvokeOptions): Promise<GetBusinessMetadataResult>
function getBusinessMetadataOutput(args: GetBusinessMetadataOutputArgs, opts?: InvokeOptions): Output<GetBusinessMetadataResult>
def get_business_metadata(credentials: Optional[GetBusinessMetadataCredentials] = None,
name: Optional[str] = None,
rest_endpoint: Optional[str] = None,
schema_registry_cluster: Optional[GetBusinessMetadataSchemaRegistryCluster] = None,
opts: Optional[InvokeOptions] = None) -> GetBusinessMetadataResult
def get_business_metadata_output(credentials: Optional[pulumi.Input[GetBusinessMetadataCredentialsArgs]] = None,
name: Optional[pulumi.Input[str]] = None,
rest_endpoint: Optional[pulumi.Input[str]] = None,
schema_registry_cluster: Optional[pulumi.Input[GetBusinessMetadataSchemaRegistryClusterArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBusinessMetadataResult]
func LookupBusinessMetadata(ctx *Context, args *LookupBusinessMetadataArgs, opts ...InvokeOption) (*LookupBusinessMetadataResult, error)
func LookupBusinessMetadataOutput(ctx *Context, args *LookupBusinessMetadataOutputArgs, opts ...InvokeOption) LookupBusinessMetadataResultOutput
> Note: This function is named LookupBusinessMetadata
in the Go SDK.
public static class GetBusinessMetadata
{
public static Task<GetBusinessMetadataResult> InvokeAsync(GetBusinessMetadataArgs args, InvokeOptions? opts = null)
public static Output<GetBusinessMetadataResult> Invoke(GetBusinessMetadataInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBusinessMetadataResult> getBusinessMetadata(GetBusinessMetadataArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: confluentcloud:index/getBusinessMetadata:getBusinessMetadata
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- Credentials
Pulumi.
Confluent Cloud. Inputs. Get Business Metadata Credentials - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Get Business Metadata Schema Registry Cluster
- Name string
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- Credentials
Get
Business Metadata Credentials - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry GetCluster Business Metadata Schema Registry Cluster
- name String
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- credentials
Get
Business Metadata Credentials - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry GetCluster Business Metadata Schema Registry Cluster
- name string
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- credentials
Get
Business Metadata Credentials - rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry GetCluster Business Metadata Schema Registry Cluster
- name str
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- credentials
Get
Business Metadata Credentials - rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Getcluster Business Metadata Schema Registry Cluster
- name String
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- credentials Property Map
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster
getBusinessMetadata Result
The following output properties are available:
- Attribute
Definitions List<Pulumi.Confluent Cloud. Outputs. Get Business Metadata Attribute Definition> - (Optional List) The list of attribute definitions (see Business Metadata for more details):
- Description string
- (Optional String) The description of this attribute.
- Id string
- (Required String) The ID of the Business Metadata, in the format
<Schema Registry cluster ID>/<Business Metadata name>
, for example,lsrc-8wrx70/PII
. - Name string
- (Required String) The name of the attribute.
- Version int
- (Required Integer) The version of the Business Metadata, for example,
1
. - Credentials
Pulumi.
Confluent Cloud. Outputs. Get Business Metadata Credentials - Rest
Endpoint string - Schema
Registry Pulumi.Cluster Confluent Cloud. Outputs. Get Business Metadata Schema Registry Cluster
- Attribute
Definitions []GetBusiness Metadata Attribute Definition - (Optional List) The list of attribute definitions (see Business Metadata for more details):
- Description string
- (Optional String) The description of this attribute.
- Id string
- (Required String) The ID of the Business Metadata, in the format
<Schema Registry cluster ID>/<Business Metadata name>
, for example,lsrc-8wrx70/PII
. - Name string
- (Required String) The name of the attribute.
- Version int
- (Required Integer) The version of the Business Metadata, for example,
1
. - Credentials
Get
Business Metadata Credentials - Rest
Endpoint string - Schema
Registry GetCluster Business Metadata Schema Registry Cluster
- attribute
Definitions List<GetBusiness Metadata Attribute Definition> - (Optional List) The list of attribute definitions (see Business Metadata for more details):
- description String
- (Optional String) The description of this attribute.
- id String
- (Required String) The ID of the Business Metadata, in the format
<Schema Registry cluster ID>/<Business Metadata name>
, for example,lsrc-8wrx70/PII
. - name String
- (Required String) The name of the attribute.
- version Integer
- (Required Integer) The version of the Business Metadata, for example,
1
. - credentials
Get
Business Metadata Credentials - rest
Endpoint String - schema
Registry GetCluster Business Metadata Schema Registry Cluster
- attribute
Definitions GetBusiness Metadata Attribute Definition[] - (Optional List) The list of attribute definitions (see Business Metadata for more details):
- description string
- (Optional String) The description of this attribute.
- id string
- (Required String) The ID of the Business Metadata, in the format
<Schema Registry cluster ID>/<Business Metadata name>
, for example,lsrc-8wrx70/PII
. - name string
- (Required String) The name of the attribute.
- version number
- (Required Integer) The version of the Business Metadata, for example,
1
. - credentials
Get
Business Metadata Credentials - rest
Endpoint string - schema
Registry GetCluster Business Metadata Schema Registry Cluster
- attribute_
definitions Sequence[GetBusiness Metadata Attribute Definition] - (Optional List) The list of attribute definitions (see Business Metadata for more details):
- description str
- (Optional String) The description of this attribute.
- id str
- (Required String) The ID of the Business Metadata, in the format
<Schema Registry cluster ID>/<Business Metadata name>
, for example,lsrc-8wrx70/PII
. - name str
- (Required String) The name of the attribute.
- version int
- (Required Integer) The version of the Business Metadata, for example,
1
. - credentials
Get
Business Metadata Credentials - rest_
endpoint str - schema_
registry_ Getcluster Business Metadata Schema Registry Cluster
- attribute
Definitions List<Property Map> - (Optional List) The list of attribute definitions (see Business Metadata for more details):
- description String
- (Optional String) The description of this attribute.
- id String
- (Required String) The ID of the Business Metadata, in the format
<Schema Registry cluster ID>/<Business Metadata name>
, for example,lsrc-8wrx70/PII
. - name String
- (Required String) The name of the attribute.
- version Number
- (Required Integer) The version of the Business Metadata, for example,
1
. - credentials Property Map
- rest
Endpoint String - schema
Registry Property MapCluster
Supporting Types
GetBusinessMetadataAttributeDefinition
- Default
Value string - (Optional String) The default value of this attribute.
- Description string
- (Optional String) The description of this attribute.
- Is
Optional bool - (Optional Boolean) An optional flag to control whether the attribute should be optional or required.
- Name string
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- Options Dictionary<string, string>
- (Optional Map) Block for the attribute options:
applicableEntityTypes
- (Optional String) The entity types that the attribute is applicable, it always returns[\"cf_entity\"]
.maxStrLength
- (Optional String) The maximum length of the string value, it always returns5000
.
- Type string
- (Required String) The type of the attribute, it always returns
string
.
- Default
Value string - (Optional String) The default value of this attribute.
- Description string
- (Optional String) The description of this attribute.
- Is
Optional bool - (Optional Boolean) An optional flag to control whether the attribute should be optional or required.
- Name string
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- Options map[string]string
- (Optional Map) Block for the attribute options:
applicableEntityTypes
- (Optional String) The entity types that the attribute is applicable, it always returns[\"cf_entity\"]
.maxStrLength
- (Optional String) The maximum length of the string value, it always returns5000
.
- Type string
- (Required String) The type of the attribute, it always returns
string
.
- default
Value String - (Optional String) The default value of this attribute.
- description String
- (Optional String) The description of this attribute.
- is
Optional Boolean - (Optional Boolean) An optional flag to control whether the attribute should be optional or required.
- name String
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- options Map<String,String>
- (Optional Map) Block for the attribute options:
applicableEntityTypes
- (Optional String) The entity types that the attribute is applicable, it always returns[\"cf_entity\"]
.maxStrLength
- (Optional String) The maximum length of the string value, it always returns5000
.
- type String
- (Required String) The type of the attribute, it always returns
string
.
- default
Value string - (Optional String) The default value of this attribute.
- description string
- (Optional String) The description of this attribute.
- is
Optional boolean - (Optional Boolean) An optional flag to control whether the attribute should be optional or required.
- name string
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- options {[key: string]: string}
- (Optional Map) Block for the attribute options:
applicableEntityTypes
- (Optional String) The entity types that the attribute is applicable, it always returns[\"cf_entity\"]
.maxStrLength
- (Optional String) The maximum length of the string value, it always returns5000
.
- type string
- (Required String) The type of the attribute, it always returns
string
.
- default_
value str - (Optional String) The default value of this attribute.
- description str
- (Optional String) The description of this attribute.
- is_
optional bool - (Optional Boolean) An optional flag to control whether the attribute should be optional or required.
- name str
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- options Mapping[str, str]
- (Optional Map) Block for the attribute options:
applicableEntityTypes
- (Optional String) The entity types that the attribute is applicable, it always returns[\"cf_entity\"]
.maxStrLength
- (Optional String) The maximum length of the string value, it always returns5000
.
- type str
- (Required String) The type of the attribute, it always returns
string
.
- default
Value String - (Optional String) The default value of this attribute.
- description String
- (Optional String) The description of this attribute.
- is
Optional Boolean - (Optional Boolean) An optional flag to control whether the attribute should be optional or required.
- name String
The name of the Business Metadata, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.Note: A Schema Registry API key consists of a key and a secret. Schema Registry API keys are required to interact with Schema Registry clusters in Confluent Cloud. Each Schema Registry API key is valid for one specific Schema Registry cluster.
- options Map<String>
- (Optional Map) Block for the attribute options:
applicableEntityTypes
- (Optional String) The entity types that the attribute is applicable, it always returns[\"cf_entity\"]
.maxStrLength
- (Optional String) The maximum length of the string value, it always returns5000
.
- type String
- (Required String) The type of the attribute, it always returns
string
.
GetBusinessMetadataCredentials
GetBusinessMetadataSchemaRegistryCluster
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id str
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.