Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 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 dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster ID.
- Id string
- Result
Output stringFile - Used to save results.
- Role
Ids List<string> - List of Role ID. Up to 50 sub-accounts can be passed in at a time.
- Subaccount
Uins List<string> - List of sub-account. Up to 50 sub-accounts can be passed in at a time.
- Cluster
Id string - Cluster ID.
- Id string
- Result
Output stringFile - Used to save results.
- Role
Ids []string - List of Role ID. Up to 50 sub-accounts can be passed in at a time.
- Subaccount
Uins []string - List of sub-account. Up to 50 sub-accounts can be passed in at a time.
- cluster
Id String - Cluster ID.
- id String
- result
Output StringFile - Used to save results.
- role
Ids List<String> - List of Role ID. Up to 50 sub-accounts can be passed in at a time.
- subaccount
Uins List<String> - List of sub-account. Up to 50 sub-accounts can be passed in at a time.
- cluster
Id string - Cluster ID.
- id string
- result
Output stringFile - Used to save results.
- role
Ids string[] - List of Role ID. Up to 50 sub-accounts can be passed in at a time.
- subaccount
Uins 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_ strfile - 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.
- cluster
Id String - Cluster ID.
- id String
- result
Output StringFile - Used to save results.
- role
Ids List<String> - List of Role ID. Up to 50 sub-accounts can be passed in at a time.
- subaccount
Uins 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<Get
Kubernetes Cluster Common Names List> - List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
- Cluster
Id string - Result
Output stringFile - Role
Ids List<string> - Subaccount
Uins List<string>
- Id string
- Lists
[]Get
Kubernetes Cluster Common Names List - List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
- Cluster
Id string - Result
Output stringFile - Role
Ids []string - Subaccount
Uins []string
- id String
- lists
List<Get
Kubernetes Cluster Common Names List> - List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
- cluster
Id String - result
Output StringFile - role
Ids List<String> - subaccount
Uins List<String>
- id string
- lists
Get
Kubernetes Cluster Common Names List[] - List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
- cluster
Id string - result
Output stringFile - role
Ids string[] - subaccount
Uins string[]
- id str
- lists
Sequence[Get
Kubernetes Cluster Common Names List] - List of the CommonName in the certificate of the client corresponding to the sub-account UIN.
- cluster_
id str - result_
output_ strfile - 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.
- cluster
Id String - result
Output StringFile - role
Ids List<String> - subaccount
Uins List<String>
Supporting Types
GetKubernetesClusterCommonNamesList
- Common
Name string - The CommonName in the certificate of the client corresponding to the sub-account.
- Common
Names 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. - Subaccount
Uin string - User UIN.
- Common
Name string - The CommonName in the certificate of the client corresponding to the sub-account.
- Common
Names 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. - Subaccount
Uin string - User UIN.
- common
Name String - The CommonName in the certificate of the client corresponding to the sub-account.
- common
Names 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. - subaccount
Uin String - User UIN.
- common
Name string - The CommonName in the certificate of the client corresponding to the sub-account.
- common
Names 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. - subaccount
Uin 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.
- common
Name String - The CommonName in the certificate of the client corresponding to the sub-account.
- common
Names 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. - subaccount
Uin String - User UIN.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 by tencentcloudstack
