1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCkafkaAcls
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getCkafkaAcls

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed acl information of Ckafka

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getCkafkaAcls({
        host: "2",
        instanceId: "ckafka-f9ife4zz",
        resourceName: "topic-tf-test",
        resourceType: "TOPIC",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_ckafka_acls(host="2",
        instance_id="ckafka-f9ife4zz",
        resource_name="topic-tf-test",
        resource_type="TOPIC")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetCkafkaAcls(ctx, &tencentcloud.GetCkafkaAclsArgs{
    			Host:         pulumi.StringRef("2"),
    			InstanceId:   "ckafka-f9ife4zz",
    			ResourceName: "topic-tf-test",
    			ResourceType: "TOPIC",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Tencentcloud.GetCkafkaAcls.Invoke(new()
        {
            Host = "2",
            InstanceId = "ckafka-f9ife4zz",
            ResourceName = "topic-tf-test",
            ResourceType = "TOPIC",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetCkafkaAclsArgs;
    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 foo = TencentcloudFunctions.getCkafkaAcls(GetCkafkaAclsArgs.builder()
                .host("2")
                .instanceId("ckafka-f9ife4zz")
                .resourceName("topic-tf-test")
                .resourceType("TOPIC")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getCkafkaAcls
          arguments:
            host: '2'
            instanceId: ckafka-f9ife4zz
            resourceName: topic-tf-test
            resourceType: TOPIC
    

    Using getCkafkaAcls

    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 getCkafkaAcls(args: GetCkafkaAclsArgs, opts?: InvokeOptions): Promise<GetCkafkaAclsResult>
    function getCkafkaAclsOutput(args: GetCkafkaAclsOutputArgs, opts?: InvokeOptions): Output<GetCkafkaAclsResult>
    def get_ckafka_acls(host: Optional[str] = None,
                        id: Optional[str] = None,
                        instance_id: Optional[str] = None,
                        resource_name: Optional[str] = None,
                        resource_type: Optional[str] = None,
                        result_output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCkafkaAclsResult
    def get_ckafka_acls_output(host: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        instance_id: Optional[pulumi.Input[str]] = None,
                        resource_name: Optional[pulumi.Input[str]] = None,
                        resource_type: Optional[pulumi.Input[str]] = None,
                        result_output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCkafkaAclsResult]
    func GetCkafkaAcls(ctx *Context, args *GetCkafkaAclsArgs, opts ...InvokeOption) (*GetCkafkaAclsResult, error)
    func GetCkafkaAclsOutput(ctx *Context, args *GetCkafkaAclsOutputArgs, opts ...InvokeOption) GetCkafkaAclsResultOutput

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

    public static class GetCkafkaAcls 
    {
        public static Task<GetCkafkaAclsResult> InvokeAsync(GetCkafkaAclsArgs args, InvokeOptions? opts = null)
        public static Output<GetCkafkaAclsResult> Invoke(GetCkafkaAclsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCkafkaAclsResult> getCkafkaAcls(GetCkafkaAclsArgs args, InvokeOptions options)
    public static Output<GetCkafkaAclsResult> getCkafkaAcls(GetCkafkaAclsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCkafkaAcls:getCkafkaAcls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Id of the ckafka instance.
    ResourceName string
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    ResourceType string
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    Host string
    Host substr used for querying.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Id of the ckafka instance.
    ResourceName string
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    ResourceType string
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    Host string
    Host substr used for querying.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Id of the ckafka instance.
    resourceName String
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resourceType String
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host String
    Host substr used for querying.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Id of the ckafka instance.
    resourceName string
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resourceType string
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host string
    Host substr used for querying.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Id of the ckafka instance.
    resource_name str
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resource_type str
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host str
    Host substr used for querying.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Id of the ckafka instance.
    resourceName String
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resourceType String
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host String
    Host substr used for querying.
    id String
    resultOutputFile String
    Used to save results.

    getCkafkaAcls Result

    The following output properties are available:

    AclLists List<GetCkafkaAclsAclList>
    A list of ckafka acls. Each element contains the following attributes:
    Id string
    InstanceId string
    ResourceName string
    ACL resource name, which is related to resource_type.
    ResourceType string
    ACL resource type.
    Host string
    IP address allowed to access.
    ResultOutputFile string
    AclLists []GetCkafkaAclsAclList
    A list of ckafka acls. Each element contains the following attributes:
    Id string
    InstanceId string
    ResourceName string
    ACL resource name, which is related to resource_type.
    ResourceType string
    ACL resource type.
    Host string
    IP address allowed to access.
    ResultOutputFile string
    aclLists List<GetCkafkaAclsAclList>
    A list of ckafka acls. Each element contains the following attributes:
    id String
    instanceId String
    resourceName String
    ACL resource name, which is related to resource_type.
    resourceType String
    ACL resource type.
    host String
    IP address allowed to access.
    resultOutputFile String
    aclLists GetCkafkaAclsAclList[]
    A list of ckafka acls. Each element contains the following attributes:
    id string
    instanceId string
    resourceName string
    ACL resource name, which is related to resource_type.
    resourceType string
    ACL resource type.
    host string
    IP address allowed to access.
    resultOutputFile string
    acl_lists Sequence[GetCkafkaAclsAclList]
    A list of ckafka acls. Each element contains the following attributes:
    id str
    instance_id str
    resource_name str
    ACL resource name, which is related to resource_type.
    resource_type str
    ACL resource type.
    host str
    IP address allowed to access.
    result_output_file str
    aclLists List<Property Map>
    A list of ckafka acls. Each element contains the following attributes:
    id String
    instanceId String
    resourceName String
    ACL resource name, which is related to resource_type.
    resourceType String
    ACL resource type.
    host String
    IP address allowed to access.
    resultOutputFile String

    Supporting Types

    GetCkafkaAclsAclList

    Host string
    Host substr used for querying.
    OperationType string
    ACL operation mode.
    PermissionType string
    ACL permission type, valid values are UNKNOWN, ANY, DENY, ALLOW, and ALLOW by default. Currently, CKafka supports ALLOW (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
    Principal string
    User which can access. * means that any user can access.
    ResourceName string
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    ResourceType string
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    Host string
    Host substr used for querying.
    OperationType string
    ACL operation mode.
    PermissionType string
    ACL permission type, valid values are UNKNOWN, ANY, DENY, ALLOW, and ALLOW by default. Currently, CKafka supports ALLOW (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
    Principal string
    User which can access. * means that any user can access.
    ResourceName string
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    ResourceType string
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host String
    Host substr used for querying.
    operationType String
    ACL operation mode.
    permissionType String
    ACL permission type, valid values are UNKNOWN, ANY, DENY, ALLOW, and ALLOW by default. Currently, CKafka supports ALLOW (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
    principal String
    User which can access. * means that any user can access.
    resourceName String
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resourceType String
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host string
    Host substr used for querying.
    operationType string
    ACL operation mode.
    permissionType string
    ACL permission type, valid values are UNKNOWN, ANY, DENY, ALLOW, and ALLOW by default. Currently, CKafka supports ALLOW (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
    principal string
    User which can access. * means that any user can access.
    resourceName string
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resourceType string
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host str
    Host substr used for querying.
    operation_type str
    ACL operation mode.
    permission_type str
    ACL permission type, valid values are UNKNOWN, ANY, DENY, ALLOW, and ALLOW by default. Currently, CKafka supports ALLOW (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
    principal str
    User which can access. * means that any user can access.
    resource_name str
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resource_type str
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.
    host String
    Host substr used for querying.
    operationType String
    ACL operation mode.
    permissionType String
    ACL permission type, valid values are UNKNOWN, ANY, DENY, ALLOW, and ALLOW by default. Currently, CKafka supports ALLOW (equivalent to allow list), and other fields will be used for future ACLs compatible with open-source Kafka.
    principal String
    User which can access. * means that any user can access.
    resourceName String
    ACL resource name, which is related to resource_type. For example, if resource_type is TOPIC, this field indicates the topic name; if resource_type is GROUP, this field indicates the group name.
    resourceType String
    ACL resource type. Valid values are UNKNOWN, ANY, TOPIC, GROUP, CLUSTER, TRANSACTIONAL_ID. Currently, only TOPIC is available, and other fields will be used for future ACLs compatible with open-source Kafka.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack