Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

getKafkaAcl

Use this data source to get information about an ACL of a kafka cluster associated with a public cloud project.

Example Usage

using System.Collections.Generic;
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 main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/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
	})
}
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.applyValue(getKafkaAclResult -> getKafkaAclResult.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)
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const acl = ovh.CloudProjectDatabase.getKafkaAcl({
    serviceName: "XXX",
    clusterId: "YYY",
    id: "ZZZ",
});
export const aclPermission = acl.then(acl => 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 GetKafkaAcl(ctx *Context, args *GetKafkaAclArgs, opts ...InvokeOption) (*GetKafkaAclResult, error)
func GetKafkaAclOutput(ctx *Context, args *GetKafkaAclOutputArgs, opts ...InvokeOption) GetKafkaAclResultOutput

> Note: This function is named GetKafkaAcl 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:CloudProjectDatabase/getKafkaAcl:getKafkaAcl
  arguments:
    # arguments dictionary

The following arguments are supported:

ClusterId string

Cluster ID

Id string

ACL 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

Id string

ACL 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

id String

ACL 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

id string

ACL 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

id str

ACL 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

id String

ACL ID

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

getKafkaAcl Result

The following output properties are available:

ClusterId string

See Argument Reference above.

Id string

See Argument Reference above.

Permission string

Permission to give to this username on this topic.

ServiceName string

See Argument Reference above.

Topic string

Topic affected by this ACL.

Username string

Username affected by this ACL.

ClusterId string

See Argument Reference above.

Id string

See Argument Reference above.

Permission string

Permission to give to this username on this topic.

ServiceName string

See Argument Reference above.

Topic string

Topic affected by this ACL.

Username string

Username affected by this ACL.

clusterId String

See Argument Reference above.

id String

See Argument Reference above.

permission String

Permission to give to this username on this topic.

serviceName String

See Argument Reference above.

topic String

Topic affected by this ACL.

username String

Username affected by this ACL.

clusterId string

See Argument Reference above.

id string

See Argument Reference above.

permission string

Permission to give to this username on this topic.

serviceName 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.

clusterId String

See Argument Reference above.

id String

See Argument Reference above.

permission String

Permission to give to this username on this topic.

serviceName String

See Argument Reference above.

topic String

Topic affected by this ACL.

username String

Username affected by this ACL.

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.