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 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 acls = ovh.CloudProjectDatabase.getKafkaAcls({
serviceName: "XXX",
clusterId: "YYY",
});
export const aclIds = acls.then(acls => acls.aclIds);
import pulumi
import pulumi_ovh as ovh
acls = ovh.CloudProjectDatabase.get_kafka_acls(service_name="XXX",
cluster_id="YYY")
pulumi.export("aclIds", 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 {
acls, err := cloudprojectdatabase.GetKafkaAcls(ctx, &cloudprojectdatabase.GetKafkaAclsArgs{
ServiceName: "XXX",
ClusterId: "YYY",
}, nil)
if err != nil {
return err
}
ctx.Export("aclIds", acls.AclIds)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var acls = Ovh.CloudProjectDatabase.GetKafkaAcls.Invoke(new()
{
ServiceName = "XXX",
ClusterId = "YYY",
});
return new Dictionary<string, object?>
{
["aclIds"] = acls.Apply(getKafkaAclsResult => getKafkaAclsResult.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.GetKafkaAclsArgs;
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 acls = CloudProjectDatabaseFunctions.getKafkaAcls(GetKafkaAclsArgs.builder()
.serviceName("XXX")
.clusterId("YYY")
.build());
ctx.export("aclIds", acls.aclIds());
}
}
variables:
acls:
fn::invoke:
function: ovh:CloudProjectDatabase:getKafkaAcls
arguments:
serviceName: XXX
clusterId: YYY
outputs:
aclIds: ${acls.aclIds}
Using getKafkaAcls
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 getKafkaAcls(args: GetKafkaAclsArgs, opts?: InvokeOptions): Promise<GetKafkaAclsResult>
function getKafkaAclsOutput(args: GetKafkaAclsOutputArgs, opts?: InvokeOptions): Output<GetKafkaAclsResult>def get_kafka_acls(cluster_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaAclsResult
def get_kafka_acls_output(cluster_id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKafkaAclsResult]func GetKafkaAcls(ctx *Context, args *GetKafkaAclsArgs, opts ...InvokeOption) (*GetKafkaAclsResult, error)
func GetKafkaAclsOutput(ctx *Context, args *GetKafkaAclsOutputArgs, opts ...InvokeOption) GetKafkaAclsResultOutput> Note: This function is named GetKafkaAcls in the Go SDK.
public static class GetKafkaAcls
{
public static Task<GetKafkaAclsResult> InvokeAsync(GetKafkaAclsArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaAclsResult> Invoke(GetKafkaAclsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaAclsResult> getKafkaAcls(GetKafkaAclsArgs args, InvokeOptions options)
public static Output<GetKafkaAclsResult> getKafkaAcls(GetKafkaAclsArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProjectDatabase/getKafkaAcls:getKafkaAcls
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster 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
- 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
- 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
- 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
- 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
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getKafkaAcls Result
The following output properties are available:
- Acl
Ids List<string> - The list of ACLs ids of the kafka cluster associated with the project.
- Cluster
Id string - See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - See Argument Reference above.
- Acl
Ids []string - The list of ACLs ids of the kafka cluster associated with the project.
- Cluster
Id string - See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - See Argument Reference above.
- acl
Ids List<String> - The list of ACLs ids of the kafka cluster associated with the project.
- cluster
Id String - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - See Argument Reference above.
- acl
Ids string[] - The list of ACLs ids of the kafka cluster associated with the project.
- cluster
Id string - See Argument Reference above.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Name string - See Argument Reference above.
- acl_
ids Sequence[str] - The list of 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.
- acl
Ids List<String> - The list of ACLs ids of the kafka cluster associated with the project.
- cluster
Id String - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - See Argument Reference above.
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
