1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getKubernetesClusterCommonNames
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.getKubernetesClusterCommonNames

Start a Neo task
Explain and create a tencentcloud.getKubernetesClusterCommonNames resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Provide a datasource to query cluster CommonNames.

    Example Usage

    Query common names by subaccount uins

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getKubernetesClusterCommonNames({
        clusterId: "cls-fdy7hm1q",
        subaccountUins: [
            "100037718139",
            "100031340176",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_kubernetes_cluster_common_names(cluster_id="cls-fdy7hm1q",
        subaccount_uins=[
            "100037718139",
            "100031340176",
        ])
    
    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.GetKubernetesClusterCommonNames(ctx, &tencentcloud.GetKubernetesClusterCommonNamesArgs{
    			ClusterId: pulumi.StringRef("cls-fdy7hm1q"),
    			SubaccountUins: []string{
    				"100037718139",
    				"100031340176",
    			},
    		}, 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 example = Tencentcloud.GetKubernetesClusterCommonNames.Invoke(new()
        {
            ClusterId = "cls-fdy7hm1q",
            SubaccountUins = new[]
            {
                "100037718139",
                "100031340176",
            },
        });
    
    });
    
    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.GetKubernetesClusterCommonNamesArgs;
    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 example = TencentcloudFunctions.getKubernetesClusterCommonNames(GetKubernetesClusterCommonNamesArgs.builder()
                .clusterId("cls-fdy7hm1q")
                .subaccountUins(            
                    "100037718139",
                    "100031340176")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getKubernetesClusterCommonNames
          arguments:
            clusterId: cls-fdy7hm1q
            subaccountUins:
              - '100037718139'
              - '100031340176'
    

    Query common names by role ids

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getKubernetesClusterCommonNames({
        clusterId: "cls-fdy7hm1q",
        roleIds: ["4611686018441060141"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_kubernetes_cluster_common_names(cluster_id="cls-fdy7hm1q",
        role_ids=["4611686018441060141"])
    
    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.GetKubernetesClusterCommonNames(ctx, &tencentcloud.GetKubernetesClusterCommonNamesArgs{
    			ClusterId: pulumi.StringRef("cls-fdy7hm1q"),
    			RoleIds: []string{
    				"4611686018441060141",
    			},
    		}, 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 example = Tencentcloud.GetKubernetesClusterCommonNames.Invoke(new()
        {
            ClusterId = "cls-fdy7hm1q",
            RoleIds = new[]
            {
                "4611686018441060141",
            },
        });
    
    });
    
    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.GetKubernetesClusterCommonNamesArgs;
    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 example = TencentcloudFunctions.getKubernetesClusterCommonNames(GetKubernetesClusterCommonNamesArgs.builder()
                .clusterId("cls-fdy7hm1q")
                .roleIds("4611686018441060141")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getKubernetesClusterCommonNames
          arguments:
            clusterId: cls-fdy7hm1q
            roleIds:
              - '4611686018441060141'
    

    Using getKubernetesClusterCommonNames

    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 getKubernetesClusterCommonNames(args: GetKubernetesClusterCommonNamesArgs, opts?: InvokeOptions): Promise<GetKubernetesClusterCommonNamesResult>
    function getKubernetesClusterCommonNamesOutput(args: GetKubernetesClusterCommonNamesOutputArgs, opts?: InvokeOptions): Output<GetKubernetesClusterCommonNamesResult>
    def get_kubernetes_cluster_common_names(cluster_id: Optional[str] = None,
                                            id: Optional[str] = None,
                                            result_output_file: Optional[str] = None,
                                            role_ids: Optional[Sequence[str]] = None,
                                            subaccount_uins: Optional[Sequence[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetKubernetesClusterCommonNamesResult
    def get_kubernetes_cluster_common_names_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                            id: Optional[pulumi.Input[str]] = None,
                                            result_output_file: Optional[pulumi.Input[str]] = None,
                                            role_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            subaccount_uins: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesClusterCommonNamesResult]
    func GetKubernetesClusterCommonNames(ctx *Context, args *GetKubernetesClusterCommonNamesArgs, opts ...InvokeOption) (*GetKubernetesClusterCommonNamesResult, error)
    func GetKubernetesClusterCommonNamesOutput(ctx *Context, args *GetKubernetesClusterCommonNamesOutputArgs, opts ...InvokeOption) GetKubernetesClusterCommonNamesResultOutput

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

    public static class GetKubernetesClusterCommonNames 
    {
        public static Task<GetKubernetesClusterCommonNamesResult> InvokeAsync(GetKubernetesClusterCommonNamesArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesClusterCommonNamesResult> Invoke(GetKubernetesClusterCommonNamesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesClusterCommonNamesResult> getKubernetesClusterCommonNames(GetKubernetesClusterCommonNamesArgs args, InvokeOptions options)
    public static Output<GetKubernetesClusterCommonNamesResult> getKubernetesClusterCommonNames(GetKubernetesClusterCommonNamesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getKubernetesClusterCommonNames:getKubernetesClusterCommonNames
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleIds List<string>
    List of Role ID. Up to 50 sub-accounts can be passed in at a time.
    SubaccountUins List<string>
    List of sub-account. Up to 50 sub-accounts can be passed in at a time.
    ClusterId string
    Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    RoleIds []string
    List of Role ID. Up to 50 sub-accounts can be passed in at a time.
    SubaccountUins []string
    List of sub-account. Up to 50 sub-accounts can be passed in at a time.
    clusterId String
    Cluster ID.
    id String
    resultOutputFile String
    Used to save results.
    roleIds List<String>
    List of Role ID. Up to 50 sub-accounts can be passed in at a time.
    subaccountUins List<String>
    List of sub-account. Up to 50 sub-accounts can be passed in at a time.
    clusterId string
    Cluster ID.
    id string
    resultOutputFile string
    Used to save results.
    roleIds string[]
    List of Role ID. Up to 50 sub-accounts can be passed in at a time.
    subaccountUins string[]
    List of sub-account. Up to 50 sub-accounts can be passed in at a time.
    cluster_id str
    Cluster ID.
    id str
    result_output_file str
    Used to save results.
    role_ids Sequence[str]
    List of Role ID. Up to 50 sub-accounts can be passed in at a time.
    subaccount_uins Sequence[str]
    List of sub-account. Up to 50 sub-accounts can be passed in at a time.
    clusterId String
    Cluster ID.
    id String
    resultOutputFile String
    Used to save results.
    roleIds List<String>
    List of Role ID. Up to 50 sub-accounts can be passed in at a time.
    subaccountUins List<String>
    List of sub-account. Up to 50 sub-accounts can be passed in at a time.

    getKubernetesClusterCommonNames Result

    The following output properties are available:

    Id string
    Lists List<GetKubernetesClusterCommonNamesList>
    List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
    ClusterId string
    ResultOutputFile string
    RoleIds List<string>
    SubaccountUins List<string>
    Id string
    Lists []GetKubernetesClusterCommonNamesList
    List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
    ClusterId string
    ResultOutputFile string
    RoleIds []string
    SubaccountUins []string
    id String
    lists List<GetKubernetesClusterCommonNamesList>
    List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
    clusterId String
    resultOutputFile String
    roleIds List<String>
    subaccountUins List<String>
    id string
    lists GetKubernetesClusterCommonNamesList[]
    List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
    clusterId string
    resultOutputFile string
    roleIds string[]
    subaccountUins string[]
    id str
    lists Sequence[GetKubernetesClusterCommonNamesList]
    List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
    cluster_id str
    result_output_file str
    role_ids Sequence[str]
    subaccount_uins Sequence[str]
    id String
    lists List<Property Map>
    List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
    clusterId String
    resultOutputFile String
    roleIds List<String>
    subaccountUins List<String>

    Supporting Types

    GetKubernetesClusterCommonNamesList

    CommonName string
    The CommonName in the certificate of the client corresponding to the sub-account.
    CommonNames string
    (Deprecated) It has been deprecated from version 1.81.140. Please use common_name. The CommonName in the certificate of the client corresponding to the sub-account.
    SubaccountUin string
    User UIN.
    CommonName string
    The CommonName in the certificate of the client corresponding to the sub-account.
    CommonNames string
    (Deprecated) It has been deprecated from version 1.81.140. Please use common_name. The CommonName in the certificate of the client corresponding to the sub-account.
    SubaccountUin string
    User UIN.
    commonName String
    The CommonName in the certificate of the client corresponding to the sub-account.
    commonNames String
    (Deprecated) It has been deprecated from version 1.81.140. Please use common_name. The CommonName in the certificate of the client corresponding to the sub-account.
    subaccountUin String
    User UIN.
    commonName string
    The CommonName in the certificate of the client corresponding to the sub-account.
    commonNames string
    (Deprecated) It has been deprecated from version 1.81.140. Please use common_name. The CommonName in the certificate of the client corresponding to the sub-account.
    subaccountUin string
    User UIN.
    common_name str
    The CommonName in the certificate of the client corresponding to the sub-account.
    common_names str
    (Deprecated) It has been deprecated from version 1.81.140. Please use common_name. The CommonName in the certificate of the client corresponding to the sub-account.
    subaccount_uin str
    User UIN.
    commonName String
    The CommonName in the certificate of the client corresponding to the sub-account.
    commonNames String
    (Deprecated) It has been deprecated from version 1.81.140. Please use common_name. The CommonName in the certificate of the client corresponding to the sub-account.
    subaccountUin String
    User UIN.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate