OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.CloudProjectDatabase.getKafkaSchemaRegistryAcl
Explore with Pulumi AI
Use this data source to get information about a schema registry ACL of a kafka cluster associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const schemaRegistryAcl = ovh.CloudProjectDatabase.getKafkaSchemaRegistryAcl({
serviceName: "XXX",
clusterId: "YYY",
id: "ZZZ",
});
export const aclPermission = schemaRegistryAcl.then(schemaRegistryAcl => schemaRegistryAcl.permission);
import pulumi
import pulumi_ovh as ovh
schema_registry_acl = ovh.CloudProjectDatabase.get_kafka_schema_registry_acl(service_name="XXX",
cluster_id="YYY",
id="ZZZ")
pulumi.export("aclPermission", schema_registry_acl.permission)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProjectDatabase"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
schemaRegistryAcl, err := CloudProjectDatabase.GetKafkaSchemaRegistryAcl(ctx, &cloudprojectdatabase.GetKafkaSchemaRegistryAclArgs{
ServiceName: "XXX",
ClusterId: "YYY",
Id: "ZZZ",
}, nil)
if err != nil {
return err
}
ctx.Export("aclPermission", schemaRegistryAcl.Permission)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var schemaRegistryAcl = Ovh.CloudProjectDatabase.GetKafkaSchemaRegistryAcl.Invoke(new()
{
ServiceName = "XXX",
ClusterId = "YYY",
Id = "ZZZ",
});
return new Dictionary<string, object?>
{
["aclPermission"] = schemaRegistryAcl.Apply(getKafkaSchemaRegistryAclResult => getKafkaSchemaRegistryAclResult.Permission),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProjectDatabase.CloudProjectDatabaseFunctions;
import com.pulumi.ovh.CloudProjectDatabase.inputs.GetKafkaSchemaRegistryAclArgs;
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 schemaRegistryAcl = CloudProjectDatabaseFunctions.getKafkaSchemaRegistryAcl(GetKafkaSchemaRegistryAclArgs.builder()
.serviceName("XXX")
.clusterId("YYY")
.id("ZZZ")
.build());
ctx.export("aclPermission", schemaRegistryAcl.applyValue(getKafkaSchemaRegistryAclResult -> getKafkaSchemaRegistryAclResult.permission()));
}
}
variables:
schemaRegistryAcl:
fn::invoke:
Function: ovh:CloudProjectDatabase:getKafkaSchemaRegistryAcl
Arguments:
serviceName: XXX
clusterId: YYY
id: ZZZ
outputs:
aclPermission: ${schemaRegistryAcl.permission}
Using getKafkaSchemaRegistryAcl
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 getKafkaSchemaRegistryAcl(args: GetKafkaSchemaRegistryAclArgs, opts?: InvokeOptions): Promise<GetKafkaSchemaRegistryAclResult>
function getKafkaSchemaRegistryAclOutput(args: GetKafkaSchemaRegistryAclOutputArgs, opts?: InvokeOptions): Output<GetKafkaSchemaRegistryAclResult>
def get_kafka_schema_registry_acl(cluster_id: Optional[str] = None,
id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaSchemaRegistryAclResult
def get_kafka_schema_registry_acl_output(cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKafkaSchemaRegistryAclResult]
func GetKafkaSchemaRegistryAcl(ctx *Context, args *GetKafkaSchemaRegistryAclArgs, opts ...InvokeOption) (*GetKafkaSchemaRegistryAclResult, error)
func GetKafkaSchemaRegistryAclOutput(ctx *Context, args *GetKafkaSchemaRegistryAclOutputArgs, opts ...InvokeOption) GetKafkaSchemaRegistryAclResultOutput
> Note: This function is named GetKafkaSchemaRegistryAcl
in the Go SDK.
public static class GetKafkaSchemaRegistryAcl
{
public static Task<GetKafkaSchemaRegistryAclResult> InvokeAsync(GetKafkaSchemaRegistryAclArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaSchemaRegistryAclResult> Invoke(GetKafkaSchemaRegistryAclInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKafkaSchemaRegistryAclResult> getKafkaSchemaRegistryAcl(GetKafkaSchemaRegistryAclArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:CloudProjectDatabase/getKafkaSchemaRegistryAcl:getKafkaSchemaRegistryAcl
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Cluster ID
- Id string
- Schema registry ACL ID
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Cluster
Id string - Cluster ID
- Id string
- Schema registry ACL ID
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id String - Cluster ID
- id String
- Schema registry ACL ID
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id string - Cluster ID
- id string
- Schema registry ACL ID
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster_
id str - Cluster ID
- id str
- Schema registry ACL ID
- service_
name str - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id String - Cluster ID
- id String
- Schema registry ACL ID
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
getKafkaSchemaRegistryAcl Result
The following output properties are available:
- Cluster
Id string - See Argument Reference above.
- Id string
- See Argument Reference above.
- Permission string
- Permission to give to this username on this topic.
- Resource string
- Resource affected by this ACL.
- Service
Name string - See Argument Reference above.
- Username string
- Username affected by this ACL.
- Cluster
Id string - See Argument Reference above.
- Id string
- See Argument Reference above.
- Permission string
- Permission to give to this username on this topic.
- Resource string
- Resource affected by this ACL.
- Service
Name string - See Argument Reference above.
- Username string
- Username affected by this ACL.
- cluster
Id String - See Argument Reference above.
- id String
- See Argument Reference above.
- permission String
- Permission to give to this username on this topic.
- resource String
- Resource affected by this ACL.
- service
Name String - See Argument Reference above.
- username String
- Username affected by this ACL.
- cluster
Id string - See Argument Reference above.
- id string
- See Argument Reference above.
- permission string
- Permission to give to this username on this topic.
- resource string
- Resource affected by this ACL.
- service
Name string - See Argument Reference above.
- username string
- Username affected by this ACL.
- cluster_
id str - See Argument Reference above.
- id str
- See Argument Reference above.
- permission str
- Permission to give to this username on this topic.
- resource str
- Resource affected by this ACL.
- service_
name str - See Argument Reference above.
- username str
- Username affected by this ACL.
- cluster
Id String - See Argument Reference above.
- id String
- See Argument Reference above.
- permission String
- Permission to give to this username on this topic.
- resource String
- Resource affected by this ACL.
- service
Name String - See Argument Reference above.
- username String
- Username affected by this ACL.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.