Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to get information about an ACL 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 acl = ovh.CloudProjectDatabase.getKafkaAcl({
serviceName: "XXX",
clusterId: "YYY",
id: "ZZZ",
});
export const aclPermission = acl.then(acl => acl.permission);
import pulumi
import pulumi_ovh as ovh
acl = ovh.CloudProjectDatabase.get_kafka_acl(service_name="XXX",
cluster_id="YYY",
id="ZZZ")
pulumi.export("aclPermission", acl.permission)
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 {
acl, err := cloudprojectdatabase.GetKafkaAcl(ctx, &cloudprojectdatabase.GetKafkaAclArgs{
ServiceName: "XXX",
ClusterId: "YYY",
Id: "ZZZ",
}, nil)
if err != nil {
return err
}
ctx.Export("aclPermission", acl.Permission)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var acl = Ovh.CloudProjectDatabase.GetKafkaAcl.Invoke(new()
{
ServiceName = "XXX",
ClusterId = "YYY",
Id = "ZZZ",
});
return new Dictionary<string, object?>
{
["aclPermission"] = acl.Apply(getKafkaAclResult => getKafkaAclResult.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.GetKafkaAclArgs;
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 acl = CloudProjectDatabaseFunctions.getKafkaAcl(GetKafkaAclArgs.builder()
.serviceName("XXX")
.clusterId("YYY")
.id("ZZZ")
.build());
ctx.export("aclPermission", acl.permission());
}
}
variables:
acl:
fn::invoke:
function: ovh:CloudProjectDatabase:getKafkaAcl
arguments:
serviceName: XXX
clusterId: YYY
id: ZZZ
outputs:
aclPermission: ${acl.permission}
Using getKafkaAcl
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 getKafkaAcl(args: GetKafkaAclArgs, opts?: InvokeOptions): Promise<GetKafkaAclResult>
function getKafkaAclOutput(args: GetKafkaAclOutputArgs, opts?: InvokeOptions): Output<GetKafkaAclResult>def get_kafka_acl(cluster_id: Optional[str] = None,
id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaAclResult
def get_kafka_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[GetKafkaAclResult]func LookupKafkaAcl(ctx *Context, args *LookupKafkaAclArgs, opts ...InvokeOption) (*LookupKafkaAclResult, error)
func LookupKafkaAclOutput(ctx *Context, args *LookupKafkaAclOutputArgs, opts ...InvokeOption) LookupKafkaAclResultOutput> Note: This function is named LookupKafkaAcl in the Go SDK.
public static class GetKafkaAcl
{
public static Task<GetKafkaAclResult> InvokeAsync(GetKafkaAclArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaAclResult> Invoke(GetKafkaAclInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOptions options)
public static Output<GetKafkaAclResult> getKafkaAcl(GetKafkaAclArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProjectDatabase/getKafkaAcl:getKafkaAcl
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster ID
- Id string
- ACL ID
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Cluster
Id string - Cluster ID
- Id string
- ACL ID
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster
Id String - Cluster ID
- id String
- ACL ID
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster
Id string - Cluster ID
- id string
- ACL ID
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster_
id str - Cluster ID
- id str
- ACL ID
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster
Id String - Cluster ID
- id String
- ACL ID
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getKafkaAcl 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.
- Service
Name string - See Argument Reference above.
- Topic string
- Topic affected by this ACL.
- 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.
- Service
Name string - See Argument Reference above.
- Topic string
- Topic affected by this ACL.
- 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.
- service
Name String - See Argument Reference above.
- topic String
- Topic affected by this ACL.
- 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.
- service
Name string - See Argument Reference above.
- topic string
- Topic affected by this ACL.
- 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.
- service_
name str - See Argument Reference above.
- topic str
- Topic affected by this ACL.
- 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.
- service
Name String - See Argument Reference above.
- topic String
- Topic affected by this ACL.
- 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
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
