1. Packages
  2. OVH
  3. API Docs
  4. CloudProjectDatabase
  5. getKafkaSchemaRegistryAcls
OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud
ovh logo
OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud

    Use this data source to get the list of ACLs of a kafka cluster associated with a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const schemaRegistryAcls = ovh.CloudProjectDatabase.getKafkaSchemaRegistryAcls({
        serviceName: "XXX",
        clusterId: "YYY",
    });
    export const aclIds = schemaRegistryAcls.then(schemaRegistryAcls => schemaRegistryAcls.aclIds);
    
    import pulumi
    import pulumi_ovh as ovh
    
    schema_registry_acls = ovh.CloudProjectDatabase.get_kafka_schema_registry_acls(service_name="XXX",
        cluster_id="YYY")
    pulumi.export("aclIds", schema_registry_acls.acl_ids)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudprojectdatabase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		schemaRegistryAcls, err := cloudprojectdatabase.GetKafkaSchemaRegistryAcls(ctx, &cloudprojectdatabase.GetKafkaSchemaRegistryAclsArgs{
    			ServiceName: "XXX",
    			ClusterId:   "YYY",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("aclIds", schemaRegistryAcls.AclIds)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var schemaRegistryAcls = Ovh.CloudProjectDatabase.GetKafkaSchemaRegistryAcls.Invoke(new()
        {
            ServiceName = "XXX",
            ClusterId = "YYY",
        });
    
        return new Dictionary<string, object?>
        {
            ["aclIds"] = schemaRegistryAcls.Apply(getKafkaSchemaRegistryAclsResult => getKafkaSchemaRegistryAclsResult.AclIds),
        };
    });
    
    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.GetKafkaSchemaRegistryAclsArgs;
    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 schemaRegistryAcls = CloudProjectDatabaseFunctions.getKafkaSchemaRegistryAcls(GetKafkaSchemaRegistryAclsArgs.builder()
                .serviceName("XXX")
                .clusterId("YYY")
                .build());
    
            ctx.export("aclIds", schemaRegistryAcls.aclIds());
        }
    }
    
    variables:
      schemaRegistryAcls:
        fn::invoke:
          function: ovh:CloudProjectDatabase:getKafkaSchemaRegistryAcls
          arguments:
            serviceName: XXX
            clusterId: YYY
    outputs:
      aclIds: ${schemaRegistryAcls.aclIds}
    

    Using getKafkaSchemaRegistryAcls

    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 getKafkaSchemaRegistryAcls(args: GetKafkaSchemaRegistryAclsArgs, opts?: InvokeOptions): Promise<GetKafkaSchemaRegistryAclsResult>
    function getKafkaSchemaRegistryAclsOutput(args: GetKafkaSchemaRegistryAclsOutputArgs, opts?: InvokeOptions): Output<GetKafkaSchemaRegistryAclsResult>
    def get_kafka_schema_registry_acls(cluster_id: Optional[str] = None,
                                       service_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetKafkaSchemaRegistryAclsResult
    def get_kafka_schema_registry_acls_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                       service_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetKafkaSchemaRegistryAclsResult]
    func GetKafkaSchemaRegistryAcls(ctx *Context, args *GetKafkaSchemaRegistryAclsArgs, opts ...InvokeOption) (*GetKafkaSchemaRegistryAclsResult, error)
    func GetKafkaSchemaRegistryAclsOutput(ctx *Context, args *GetKafkaSchemaRegistryAclsOutputArgs, opts ...InvokeOption) GetKafkaSchemaRegistryAclsResultOutput

    > Note: This function is named GetKafkaSchemaRegistryAcls in the Go SDK.

    public static class GetKafkaSchemaRegistryAcls 
    {
        public static Task<GetKafkaSchemaRegistryAclsResult> InvokeAsync(GetKafkaSchemaRegistryAclsArgs args, InvokeOptions? opts = null)
        public static Output<GetKafkaSchemaRegistryAclsResult> Invoke(GetKafkaSchemaRegistryAclsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKafkaSchemaRegistryAclsResult> getKafkaSchemaRegistryAcls(GetKafkaSchemaRegistryAclsArgs args, InvokeOptions options)
    public static Output<GetKafkaSchemaRegistryAclsResult> getKafkaSchemaRegistryAcls(GetKafkaSchemaRegistryAclsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:CloudProjectDatabase/getKafkaSchemaRegistryAcls:getKafkaSchemaRegistryAcls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ClusterId string
    Cluster ID
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId String
    Cluster ID
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId string
    Cluster ID
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    cluster_id str
    Cluster ID
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId String
    Cluster ID
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getKafkaSchemaRegistryAcls Result

    The following output properties are available:

    AclIds List<string>
    The list of schema refistry ACLs ids of the kafka cluster associated with the project.
    ClusterId string
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    See Argument Reference above.
    AclIds []string
    The list of schema refistry ACLs ids of the kafka cluster associated with the project.
    ClusterId string
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    See Argument Reference above.
    aclIds List<String>
    The list of schema refistry ACLs ids of the kafka cluster associated with the project.
    clusterId String
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    See Argument Reference above.
    aclIds string[]
    The list of schema refistry ACLs ids of the kafka cluster associated with the project.
    clusterId string
    See Argument Reference above.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    See Argument Reference above.
    acl_ids Sequence[str]
    The list of schema refistry ACLs ids of the kafka cluster associated with the project.
    cluster_id str
    See Argument Reference above.
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    See Argument Reference above.
    aclIds List<String>
    The list of schema refistry ACLs ids of the kafka cluster associated with the project.
    clusterId String
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    See Argument Reference above.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud
      Meet Neo: Your AI Platform Teammate