Alibaba Cloud v3.94.0 published on Tuesday, Feb 3, 2026 by Pulumi
Alibaba Cloud v3.94.0 published on Tuesday, Feb 3, 2026 by Pulumi
This data source provides Ack Cluster available to the user.What is Cluster
NOTE: Available since v1.269.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const zone1 = config.get("zone1") || "cn-hangzhou-k";
const zone2 = config.get("zone2") || "cn-hangzhou-g";
const vsw1Cidr = config.get("vsw1Cidr") || "10.1.0.0/24";
const vsw2Cidr = config.get("vsw2Cidr") || "10.1.1.0/24";
const containerCidr = config.get("containerCidr") || "172.17.3.0/24";
const serviceCidr = config.get("serviceCidr") || "172.17.2.0/24";
const defaultNetwork = new alicloud.vpc.Network("default", {cidrBlock: "10.0.0.0/8"});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
vpcId: defaultNetwork.id,
securityGroupName: "tf-example-security-group",
securityGroupType: "normal",
});
const default0 = new alicloud.vpc.Switch("default0", {
vpcId: defaultNetwork.id,
cidrBlock: vsw1Cidr,
zoneId: zone1,
});
const default1 = new alicloud.vpc.Switch("default1", {
vpcId: defaultNetwork.id,
zoneId: zone2,
cidrBlock: vsw2Cidr,
});
const defaultManagedKubernetes = new alicloud.cs.ManagedKubernetes("default", {
podCidr: containerCidr,
vswitchIds: [
default0.id,
default1.id,
],
serviceCidr: serviceCidr,
securityGroupId: defaultSecurityGroup.id,
clusterSpec: "ack.pro.small",
});
const _default = alicloud.cs.getClustersOutput({
ids: [defaultManagedKubernetes.id],
nameRegex: defaultManagedKubernetes.name,
});
export const alicloudCsManagedKubernetesExampleId = _default.apply(_default => _default.clusters?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
zone1 = config.get("zone1")
if zone1 is None:
zone1 = "cn-hangzhou-k"
zone2 = config.get("zone2")
if zone2 is None:
zone2 = "cn-hangzhou-g"
vsw1_cidr = config.get("vsw1Cidr")
if vsw1_cidr is None:
vsw1_cidr = "10.1.0.0/24"
vsw2_cidr = config.get("vsw2Cidr")
if vsw2_cidr is None:
vsw2_cidr = "10.1.1.0/24"
container_cidr = config.get("containerCidr")
if container_cidr is None:
container_cidr = "172.17.3.0/24"
service_cidr = config.get("serviceCidr")
if service_cidr is None:
service_cidr = "172.17.2.0/24"
default_network = alicloud.vpc.Network("default", cidr_block="10.0.0.0/8")
default_security_group = alicloud.ecs.SecurityGroup("default",
vpc_id=default_network.id,
security_group_name="tf-example-security-group",
security_group_type="normal")
default0 = alicloud.vpc.Switch("default0",
vpc_id=default_network.id,
cidr_block=vsw1_cidr,
zone_id=zone1)
default1 = alicloud.vpc.Switch("default1",
vpc_id=default_network.id,
zone_id=zone2,
cidr_block=vsw2_cidr)
default_managed_kubernetes = alicloud.cs.ManagedKubernetes("default",
pod_cidr=container_cidr,
vswitch_ids=[
default0.id,
default1.id,
],
service_cidr=service_cidr,
security_group_id=default_security_group.id,
cluster_spec="ack.pro.small")
default = alicloud.cs.get_clusters_output(ids=[default_managed_kubernetes.id],
name_regex=default_managed_kubernetes.name)
pulumi.export("alicloudCsManagedKubernetesExampleId", default.clusters[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example";
if param := cfg.Get("name"); param != ""{
name = param
}
zone1 := "cn-hangzhou-k";
if param := cfg.Get("zone1"); param != ""{
zone1 = param
}
zone2 := "cn-hangzhou-g";
if param := cfg.Get("zone2"); param != ""{
zone2 = param
}
vsw1Cidr := "10.1.0.0/24";
if param := cfg.Get("vsw1Cidr"); param != ""{
vsw1Cidr = param
}
vsw2Cidr := "10.1.1.0/24";
if param := cfg.Get("vsw2Cidr"); param != ""{
vsw2Cidr = param
}
containerCidr := "172.17.3.0/24";
if param := cfg.Get("containerCidr"); param != ""{
containerCidr = param
}
serviceCidr := "172.17.2.0/24";
if param := cfg.Get("serviceCidr"); param != ""{
serviceCidr = param
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
CidrBlock: pulumi.String("10.0.0.0/8"),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
VpcId: defaultNetwork.ID(),
SecurityGroupName: pulumi.String("tf-example-security-group"),
SecurityGroupType: pulumi.String("normal"),
})
if err != nil {
return err
}
default0, err := vpc.NewSwitch(ctx, "default0", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String(vsw1Cidr),
ZoneId: pulumi.String(zone1),
})
if err != nil {
return err
}
default1, err := vpc.NewSwitch(ctx, "default1", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(zone2),
CidrBlock: pulumi.String(vsw2Cidr),
})
if err != nil {
return err
}
defaultManagedKubernetes, err := cs.NewManagedKubernetes(ctx, "default", &cs.ManagedKubernetesArgs{
PodCidr: pulumi.String(containerCidr),
VswitchIds: pulumi.StringArray{
default0.ID(),
default1.ID(),
},
ServiceCidr: pulumi.String(serviceCidr),
SecurityGroupId: defaultSecurityGroup.ID(),
ClusterSpec: pulumi.String("ack.pro.small"),
})
if err != nil {
return err
}
_default := cs.GetClustersOutput(ctx, cs.GetClustersOutputArgs{
Ids: pulumi.StringArray{
defaultManagedKubernetes.ID(),
},
NameRegex: defaultManagedKubernetes.Name,
}, nil);
ctx.Export("alicloudCsManagedKubernetesExampleId", _default.ApplyT(func(_default cs.GetClustersResult) (*string, error) {
return &default.Clusters[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var zone1 = config.Get("zone1") ?? "cn-hangzhou-k";
var zone2 = config.Get("zone2") ?? "cn-hangzhou-g";
var vsw1Cidr = config.Get("vsw1Cidr") ?? "10.1.0.0/24";
var vsw2Cidr = config.Get("vsw2Cidr") ?? "10.1.1.0/24";
var containerCidr = config.Get("containerCidr") ?? "172.17.3.0/24";
var serviceCidr = config.Get("serviceCidr") ?? "172.17.2.0/24";
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
CidrBlock = "10.0.0.0/8",
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
VpcId = defaultNetwork.Id,
SecurityGroupName = "tf-example-security-group",
SecurityGroupType = "normal",
});
var default0 = new AliCloud.Vpc.Switch("default0", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = vsw1Cidr,
ZoneId = zone1,
});
var default1 = new AliCloud.Vpc.Switch("default1", new()
{
VpcId = defaultNetwork.Id,
ZoneId = zone2,
CidrBlock = vsw2Cidr,
});
var defaultManagedKubernetes = new AliCloud.CS.ManagedKubernetes("default", new()
{
PodCidr = containerCidr,
VswitchIds = new[]
{
default0.Id,
default1.Id,
},
ServiceCidr = serviceCidr,
SecurityGroupId = defaultSecurityGroup.Id,
ClusterSpec = "ack.pro.small",
});
var @default = AliCloud.CS.GetClusters.Invoke(new()
{
Ids = new[]
{
defaultManagedKubernetes.Id,
},
NameRegex = defaultManagedKubernetes.Name,
});
return new Dictionary<string, object?>
{
["alicloudCsManagedKubernetesExampleId"] = @default.Apply(@default => @default.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.cs.ManagedKubernetes;
import com.pulumi.alicloud.cs.ManagedKubernetesArgs;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetClustersArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var zone1 = config.get("zone1").orElse("cn-hangzhou-k");
final var zone2 = config.get("zone2").orElse("cn-hangzhou-g");
final var vsw1Cidr = config.get("vsw1Cidr").orElse("10.1.0.0/24");
final var vsw2Cidr = config.get("vsw2Cidr").orElse("10.1.1.0/24");
final var containerCidr = config.get("containerCidr").orElse("172.17.3.0/24");
final var serviceCidr = config.get("serviceCidr").orElse("172.17.2.0/24");
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.cidrBlock("10.0.0.0/8")
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.vpcId(defaultNetwork.id())
.securityGroupName("tf-example-security-group")
.securityGroupType("normal")
.build());
var default0 = new Switch("default0", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock(vsw1Cidr)
.zoneId(zone1)
.build());
var default1 = new Switch("default1", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.zoneId(zone2)
.cidrBlock(vsw2Cidr)
.build());
var defaultManagedKubernetes = new ManagedKubernetes("defaultManagedKubernetes", ManagedKubernetesArgs.builder()
.podCidr(containerCidr)
.vswitchIds(
default0.id(),
default1.id())
.serviceCidr(serviceCidr)
.securityGroupId(defaultSecurityGroup.id())
.clusterSpec("ack.pro.small")
.build());
final var default = CsFunctions.getClusters(GetClustersArgs.builder()
.ids(defaultManagedKubernetes.id())
.nameRegex(defaultManagedKubernetes.name())
.build());
ctx.export("alicloudCsManagedKubernetesExampleId", default_.applyValue(_default_ -> _default_.clusters()[0].id()));
}
}
configuration:
name:
type: string
default: terraform-example
zone1:
type: string
default: cn-hangzhou-k
zone2:
type: string
default: cn-hangzhou-g
vsw1Cidr:
type: string
default: 10.1.0.0/24
vsw2Cidr:
type: string
default: 10.1.1.0/24
containerCidr:
type: string
default: 172.17.3.0/24
serviceCidr:
type: string
default: 172.17.2.0/24
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
cidrBlock: 10.0.0.0/8
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
vpcId: ${defaultNetwork.id}
securityGroupName: tf-example-security-group
securityGroupType: normal
default0:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: ${vsw1Cidr}
zoneId: ${zone1}
default1:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
zoneId: ${zone2}
cidrBlock: ${vsw2Cidr}
defaultManagedKubernetes:
type: alicloud:cs:ManagedKubernetes
name: default
properties:
podCidr: ${containerCidr}
vswitchIds:
- ${default0.id}
- ${default1.id}
serviceCidr: ${serviceCidr}
securityGroupId: ${defaultSecurityGroup.id}
clusterSpec: ack.pro.small
variables:
default:
fn::invoke:
function: alicloud:cs:getClusters
arguments:
ids:
- ${defaultManagedKubernetes.id}
nameRegex: ${defaultManagedKubernetes.name}
outputs:
alicloudCsManagedKubernetesExampleId: ${default.clusters[0].id}
Using getClusters
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 getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
function getClustersOutput(args: GetClustersOutputArgs, opts?: InvokeOptions): Output<GetClustersResult>def get_clusters(cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_spec: Optional[str] = None,
cluster_type: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
profile: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClustersResult
def get_clusters_output(cluster_id: Optional[pulumi.Input[str]] = None,
cluster_name: Optional[pulumi.Input[str]] = None,
cluster_spec: Optional[pulumi.Input[str]] = None,
cluster_type: Optional[pulumi.Input[str]] = None,
enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
profile: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClustersResult]func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
func GetClustersOutput(ctx *Context, args *GetClustersOutputArgs, opts ...InvokeOption) GetClustersResultOutput> Note: This function is named GetClusters in the Go SDK.
public static class GetClusters
{
public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
public static Output<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cs/getClusters:getClusters
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - The cluster ID.
- Cluster
Name string - Custom cluster name.
- Cluster
Spec string - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- Cluster
Type string - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids List<string>
- A list of Cluster IDs.
- Name
Regex string - A regex string to filter results by cluster name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Profile string
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- Cluster
Id string - The cluster ID.
- Cluster
Name string - Custom cluster name.
- Cluster
Spec string - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- Cluster
Type string - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids []string
- A list of Cluster IDs.
- Name
Regex string - A regex string to filter results by cluster name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Profile string
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- cluster
Id String - The cluster ID.
- cluster
Name String - Custom cluster name.
- cluster
Spec String - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster
Type String - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids List<String>
- A list of Cluster IDs.
- name
Regex String - A regex string to filter results by cluster name.
- output
File String - File name where to save data source results (after running
pulumi preview). - profile String
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- cluster
Id string - The cluster ID.
- cluster
Name string - Custom cluster name.
- cluster
Spec string - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster
Type string - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- enable
Details boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids string[]
- A list of Cluster IDs.
- name
Regex string - A regex string to filter results by cluster name.
- output
File string - File name where to save data source results (after running
pulumi preview). - profile string
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- cluster_
id str - The cluster ID.
- cluster_
name str - Custom cluster name.
- cluster_
spec str - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster_
type str - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- enable_
details bool - Default to
false. Set it totruecan output more details about resource attributes. - ids Sequence[str]
- A list of Cluster IDs.
- name_
regex str - A regex string to filter results by cluster name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - profile str
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- cluster
Id String - The cluster ID.
- cluster
Name String - Custom cluster name.
- cluster
Spec String - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster
Type String - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids List<String>
- A list of Cluster IDs.
- name
Regex String - A regex string to filter results by cluster name.
- output
File String - File name where to save data source results (after running
pulumi preview). - profile String
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
getClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. CS. Outputs. Get Clusters Cluster> - A list of Cluster Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Cluster IDs.
- Names List<string>
- A list of name of Clusters.
- Cluster
Id string - The cluster ID.
- Cluster
Name string - Custom cluster name.
- Cluster
Spec string - After you set
cluster_typetoManagedKubernetesand configureprofile, you can further specify the cluster specification. - Cluster
Type string - The cluster type.
- Enable
Details bool - Name
Regex string - Output
File string - Profile string
- ACK managed cluster profile.
- Clusters
[]Get
Clusters Cluster - A list of Cluster Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Cluster IDs.
- Names []string
- A list of name of Clusters.
- Cluster
Id string - The cluster ID.
- Cluster
Name string - Custom cluster name.
- Cluster
Spec string - After you set
cluster_typetoManagedKubernetesand configureprofile, you can further specify the cluster specification. - Cluster
Type string - The cluster type.
- Enable
Details bool - Name
Regex string - Output
File string - Profile string
- ACK managed cluster profile.
- clusters
List<Get
Clusters Cluster> - A list of Cluster Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Cluster IDs.
- names List<String>
- A list of name of Clusters.
- cluster
Id String - The cluster ID.
- cluster
Name String - Custom cluster name.
- cluster
Spec String - After you set
cluster_typetoManagedKubernetesand configureprofile, you can further specify the cluster specification. - cluster
Type String - The cluster type.
- enable
Details Boolean - name
Regex String - output
File String - profile String
- ACK managed cluster profile.
- clusters
Get
Clusters Cluster[] - A list of Cluster Entries. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Cluster IDs.
- names string[]
- A list of name of Clusters.
- cluster
Id string - The cluster ID.
- cluster
Name string - Custom cluster name.
- cluster
Spec string - After you set
cluster_typetoManagedKubernetesand configureprofile, you can further specify the cluster specification. - cluster
Type string - The cluster type.
- enable
Details boolean - name
Regex string - output
File string - profile string
- ACK managed cluster profile.
- clusters
Sequence[Get
Clusters Cluster] - A list of Cluster Entries. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Cluster IDs.
- names Sequence[str]
- A list of name of Clusters.
- cluster_
id str - The cluster ID.
- cluster_
name str - Custom cluster name.
- cluster_
spec str - After you set
cluster_typetoManagedKubernetesand configureprofile, you can further specify the cluster specification. - cluster_
type str - The cluster type.
- enable_
details bool - name_
regex str - output_
file str - profile str
- ACK managed cluster profile.
- clusters List<Property Map>
- A list of Cluster Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Cluster IDs.
- names List<String>
- A list of name of Clusters.
- cluster
Id String - The cluster ID.
- cluster
Name String - Custom cluster name.
- cluster
Spec String - After you set
cluster_typetoManagedKubernetesand configureprofile, you can further specify the cluster specification. - cluster
Type String - The cluster type.
- enable
Details Boolean - name
Regex String - output
File String - profile String
- ACK managed cluster profile.
Supporting Types
GetClustersCluster
- Auto
Mode Pulumi.Ali Cloud. CS. Inputs. Get Clusters Cluster Auto Mode - NOTE: This field is only available when
enable_detailsistrue. Intelligent managed mode configuration. - Cluster
Domain string - The local domain name of the cluster.
- Cluster
Id string - The cluster ID.
- Cluster
Name string - Custom cluster name.
- Cluster
Spec string - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- Cluster
Type string - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- Current
Version string - The current version of the cluster.
- Deletion
Protection bool - Cluster deletion protection prevents accidental deletion of the cluster through the console or API.
- Id string
- The ID of the resource supplied above.
- Ip
Stack string - The IP protocol stack of the cluster.
- Maintenance
Window Pulumi.Ali Cloud. CS. Inputs. Get Clusters Cluster Maintenance Window - NOTE: This field is only available when
enable_detailsistrue. Cluster maintenance window. - Node
Cidr stringMask - NOTE: This field is only available when
enable_detailsistrue. The number of IP addresses per node, determined by specifying the CIDR block of the network. - Operation
Policy Pulumi.Ali Cloud. CS. Inputs. Get Clusters Cluster Operation Policy - NOTE: This field is only available when
enable_detailsistrue. The automatic operations and maintenance policy for the cluster. - Pod
Cidr string - The CIDR block for the pod network.
- Profile string
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- Proxy
Mode string - kube-proxy proxy mode.
- Region
Id string - The region ID where the cluster is deployed.
- Resource
Group stringId - The resource group ID of the cluster.
- Security
Group stringId - The security group ID for the control plane.
- Service
Cidr string - The Service CIDR block.
- State string
- Cluster operational status.
- Dictionary<string, string>
- Cluster resource tags.
- Timezone string
- Cluster time zone.
- Vpc
Id string - The Virtual Private Cloud (VPC) used by the cluster.
- Vswitch
Ids List<string> - Virtual switches for the cluster control plane.
- Auto
Mode GetClusters Cluster Auto Mode - NOTE: This field is only available when
enable_detailsistrue. Intelligent managed mode configuration. - Cluster
Domain string - The local domain name of the cluster.
- Cluster
Id string - The cluster ID.
- Cluster
Name string - Custom cluster name.
- Cluster
Spec string - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- Cluster
Type string - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- Current
Version string - The current version of the cluster.
- Deletion
Protection bool - Cluster deletion protection prevents accidental deletion of the cluster through the console or API.
- Id string
- The ID of the resource supplied above.
- Ip
Stack string - The IP protocol stack of the cluster.
- Maintenance
Window GetClusters Cluster Maintenance Window - NOTE: This field is only available when
enable_detailsistrue. Cluster maintenance window. - Node
Cidr stringMask - NOTE: This field is only available when
enable_detailsistrue. The number of IP addresses per node, determined by specifying the CIDR block of the network. - Operation
Policy GetClusters Cluster Operation Policy - NOTE: This field is only available when
enable_detailsistrue. The automatic operations and maintenance policy for the cluster. - Pod
Cidr string - The CIDR block for the pod network.
- Profile string
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- Proxy
Mode string - kube-proxy proxy mode.
- Region
Id string - The region ID where the cluster is deployed.
- Resource
Group stringId - The resource group ID of the cluster.
- Security
Group stringId - The security group ID for the control plane.
- Service
Cidr string - The Service CIDR block.
- State string
- Cluster operational status.
- map[string]string
- Cluster resource tags.
- Timezone string
- Cluster time zone.
- Vpc
Id string - The Virtual Private Cloud (VPC) used by the cluster.
- Vswitch
Ids []string - Virtual switches for the cluster control plane.
- auto
Mode GetClusters Cluster Auto Mode - NOTE: This field is only available when
enable_detailsistrue. Intelligent managed mode configuration. - cluster
Domain String - The local domain name of the cluster.
- cluster
Id String - The cluster ID.
- cluster
Name String - Custom cluster name.
- cluster
Spec String - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster
Type String - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- current
Version String - The current version of the cluster.
- deletion
Protection Boolean - Cluster deletion protection prevents accidental deletion of the cluster through the console or API.
- id String
- The ID of the resource supplied above.
- ip
Stack String - The IP protocol stack of the cluster.
- maintenance
Window GetClusters Cluster Maintenance Window - NOTE: This field is only available when
enable_detailsistrue. Cluster maintenance window. - node
Cidr StringMask - NOTE: This field is only available when
enable_detailsistrue. The number of IP addresses per node, determined by specifying the CIDR block of the network. - operation
Policy GetClusters Cluster Operation Policy - NOTE: This field is only available when
enable_detailsistrue. The automatic operations and maintenance policy for the cluster. - pod
Cidr String - The CIDR block for the pod network.
- profile String
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- proxy
Mode String - kube-proxy proxy mode.
- region
Id String - The region ID where the cluster is deployed.
- resource
Group StringId - The resource group ID of the cluster.
- security
Group StringId - The security group ID for the control plane.
- service
Cidr String - The Service CIDR block.
- state String
- Cluster operational status.
- Map<String,String>
- Cluster resource tags.
- timezone String
- Cluster time zone.
- vpc
Id String - The Virtual Private Cloud (VPC) used by the cluster.
- vswitch
Ids List<String> - Virtual switches for the cluster control plane.
- auto
Mode GetClusters Cluster Auto Mode - NOTE: This field is only available when
enable_detailsistrue. Intelligent managed mode configuration. - cluster
Domain string - The local domain name of the cluster.
- cluster
Id string - The cluster ID.
- cluster
Name string - Custom cluster name.
- cluster
Spec string - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster
Type string - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- current
Version string - The current version of the cluster.
- deletion
Protection boolean - Cluster deletion protection prevents accidental deletion of the cluster through the console or API.
- id string
- The ID of the resource supplied above.
- ip
Stack string - The IP protocol stack of the cluster.
- maintenance
Window GetClusters Cluster Maintenance Window - NOTE: This field is only available when
enable_detailsistrue. Cluster maintenance window. - node
Cidr stringMask - NOTE: This field is only available when
enable_detailsistrue. The number of IP addresses per node, determined by specifying the CIDR block of the network. - operation
Policy GetClusters Cluster Operation Policy - NOTE: This field is only available when
enable_detailsistrue. The automatic operations and maintenance policy for the cluster. - pod
Cidr string - The CIDR block for the pod network.
- profile string
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- proxy
Mode string - kube-proxy proxy mode.
- region
Id string - The region ID where the cluster is deployed.
- resource
Group stringId - The resource group ID of the cluster.
- security
Group stringId - The security group ID for the control plane.
- service
Cidr string - The Service CIDR block.
- state string
- Cluster operational status.
- {[key: string]: string}
- Cluster resource tags.
- timezone string
- Cluster time zone.
- vpc
Id string - The Virtual Private Cloud (VPC) used by the cluster.
- vswitch
Ids string[] - Virtual switches for the cluster control plane.
- auto_
mode GetClusters Cluster Auto Mode - NOTE: This field is only available when
enable_detailsistrue. Intelligent managed mode configuration. - cluster_
domain str - The local domain name of the cluster.
- cluster_
id str - The cluster ID.
- cluster_
name str - Custom cluster name.
- cluster_
spec str - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster_
type str - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- current_
version str - The current version of the cluster.
- deletion_
protection bool - Cluster deletion protection prevents accidental deletion of the cluster through the console or API.
- id str
- The ID of the resource supplied above.
- ip_
stack str - The IP protocol stack of the cluster.
- maintenance_
window GetClusters Cluster Maintenance Window - NOTE: This field is only available when
enable_detailsistrue. Cluster maintenance window. - node_
cidr_ strmask - NOTE: This field is only available when
enable_detailsistrue. The number of IP addresses per node, determined by specifying the CIDR block of the network. - operation_
policy GetClusters Cluster Operation Policy - NOTE: This field is only available when
enable_detailsistrue. The automatic operations and maintenance policy for the cluster. - pod_
cidr str - The CIDR block for the pod network.
- profile str
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- proxy_
mode str - kube-proxy proxy mode.
- region_
id str - The region ID where the cluster is deployed.
- resource_
group_ strid - The resource group ID of the cluster.
- security_
group_ strid - The security group ID for the control plane.
- service_
cidr str - The Service CIDR block.
- state str
- Cluster operational status.
- Mapping[str, str]
- Cluster resource tags.
- timezone str
- Cluster time zone.
- vpc_
id str - The Virtual Private Cloud (VPC) used by the cluster.
- vswitch_
ids Sequence[str] - Virtual switches for the cluster control plane.
- auto
Mode Property Map - NOTE: This field is only available when
enable_detailsistrue. Intelligent managed mode configuration. - cluster
Domain String - The local domain name of the cluster.
- cluster
Id String - The cluster ID.
- cluster
Name String - Custom cluster name.
- cluster
Spec String - The specification of the clusters to query. Valid values:
ack.pro.small: ACK Pro clusters.ack.standard: ACK Basic clusters.
- cluster
Type String - The type of the clusters to query. Valid values:
Kubernetes: ACK dedicated clusters.ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.ExternalKubernetes: registered clusters.
- current
Version String - The current version of the cluster.
- deletion
Protection Boolean - Cluster deletion protection prevents accidental deletion of the cluster through the console or API.
- id String
- The ID of the resource supplied above.
- ip
Stack String - The IP protocol stack of the cluster.
- maintenance
Window Property Map - NOTE: This field is only available when
enable_detailsistrue. Cluster maintenance window. - node
Cidr StringMask - NOTE: This field is only available when
enable_detailsistrue. The number of IP addresses per node, determined by specifying the CIDR block of the network. - operation
Policy Property Map - NOTE: This field is only available when
enable_detailsistrue. The automatic operations and maintenance policy for the cluster. - pod
Cidr String - The CIDR block for the pod network.
- profile String
- The subtype of the clusters to query. Valid values:
Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.Lingjun: ACK Lingjun Pro clusters.
- proxy
Mode String - kube-proxy proxy mode.
- region
Id String - The region ID where the cluster is deployed.
- resource
Group StringId - The resource group ID of the cluster.
- security
Group StringId - The security group ID for the control plane.
- service
Cidr String - The Service CIDR block.
- state String
- Cluster operational status.
- Map<String>
- Cluster resource tags.
- timezone String
- Cluster time zone.
- vpc
Id String - The Virtual Private Cloud (VPC) used by the cluster.
- vswitch
Ids List<String> - Virtual switches for the cluster control plane.
GetClustersClusterAutoMode
- Enabled bool
- Whether to enable cluster automatic upgrade.
- Enabled bool
- Whether to enable cluster automatic upgrade.
- enabled Boolean
- Whether to enable cluster automatic upgrade.
- enabled boolean
- Whether to enable cluster automatic upgrade.
- enabled bool
- Whether to enable cluster automatic upgrade.
- enabled Boolean
- Whether to enable cluster automatic upgrade.
GetClustersClusterMaintenanceWindow
- Duration string
- The duration of the maintenance window.
- Enable bool
- Indicates whether to enable the maintenance window.
- Maintenance
Time string - Maintenance start time.
- Recurrence string
- The recurrence rule for the maintenance window, defined using RFC5545 Recurrence Rule syntax.
- Weekly
Period string - The maintenance cycle.
- Duration string
- The duration of the maintenance window.
- Enable bool
- Indicates whether to enable the maintenance window.
- Maintenance
Time string - Maintenance start time.
- Recurrence string
- The recurrence rule for the maintenance window, defined using RFC5545 Recurrence Rule syntax.
- Weekly
Period string - The maintenance cycle.
- duration String
- The duration of the maintenance window.
- enable Boolean
- Indicates whether to enable the maintenance window.
- maintenance
Time String - Maintenance start time.
- recurrence String
- The recurrence rule for the maintenance window, defined using RFC5545 Recurrence Rule syntax.
- weekly
Period String - The maintenance cycle.
- duration string
- The duration of the maintenance window.
- enable boolean
- Indicates whether to enable the maintenance window.
- maintenance
Time string - Maintenance start time.
- recurrence string
- The recurrence rule for the maintenance window, defined using RFC5545 Recurrence Rule syntax.
- weekly
Period string - The maintenance cycle.
- duration str
- The duration of the maintenance window.
- enable bool
- Indicates whether to enable the maintenance window.
- maintenance_
time str - Maintenance start time.
- recurrence str
- The recurrence rule for the maintenance window, defined using RFC5545 Recurrence Rule syntax.
- weekly_
period str - The maintenance cycle.
- duration String
- The duration of the maintenance window.
- enable Boolean
- Indicates whether to enable the maintenance window.
- maintenance
Time String - Maintenance start time.
- recurrence String
- The recurrence rule for the maintenance window, defined using RFC5545 Recurrence Rule syntax.
- weekly
Period String - The maintenance cycle.
GetClustersClusterOperationPolicy
- Cluster
Auto Pulumi.Upgrade Ali Cloud. CS. Inputs. Get Clusters Cluster Operation Policy Cluster Auto Upgrade - Cluster automatic upgrade.
- Cluster
Auto GetUpgrade Clusters Cluster Operation Policy Cluster Auto Upgrade - Cluster automatic upgrade.
- cluster
Auto GetUpgrade Clusters Cluster Operation Policy Cluster Auto Upgrade - Cluster automatic upgrade.
- cluster
Auto GetUpgrade Clusters Cluster Operation Policy Cluster Auto Upgrade - Cluster automatic upgrade.
- cluster_
auto_ Getupgrade Clusters Cluster Operation Policy Cluster Auto Upgrade - Cluster automatic upgrade.
- cluster
Auto Property MapUpgrade - Cluster automatic upgrade.
GetClustersClusterOperationPolicyClusterAutoUpgrade
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.94.0 published on Tuesday, Feb 3, 2026 by Pulumi
