Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.26.0 published on Friday, Jul 29, 2022 by Pulumi

getClusters

This data source provides the Ehpc Clusters of the current Alibaba Cloud user.

NOTE: Available in v1.173.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Ehpc.GetClusters.InvokeAsync(new AliCloud.Ehpc.GetClustersArgs
        {
            Ids = 
            {
                "example_id",
            },
        }));
        this.EhpcClusterId1 = ids.Apply(ids => ids.Clusters?[0]?.Id);
        var nameRegex = Output.Create(AliCloud.Ehpc.GetClusters.InvokeAsync(new AliCloud.Ehpc.GetClustersArgs
        {
            NameRegex = "^my-Cluster",
        }));
        this.EhpcClusterId2 = nameRegex.Apply(nameRegex => nameRegex.Clusters?[0]?.Id);
    }

    [Output("ehpcClusterId1")]
    public Output<string> EhpcClusterId1 { get; set; }
    [Output("ehpcClusterId2")]
    public Output<string> EhpcClusterId2 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ehpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := ehpc.GetClusters(ctx, &ehpc.GetClustersArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ehpcClusterId1", ids.Clusters[0].Id)
		nameRegex, err := ehpc.GetClusters(ctx, &ehpc.GetClustersArgs{
			NameRegex: pulumi.StringRef("^my-Cluster"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ehpcClusterId2", nameRegex.Clusters[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.ehpc.get_clusters(ids=["example_id"])
pulumi.export("ehpcClusterId1", ids.clusters[0].id)
name_regex = alicloud.ehpc.get_clusters(name_regex="^my-Cluster")
pulumi.export("ehpcClusterId2", name_regex.clusters[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.ehpc.getClusters({
    ids: ["example_id"],
});
export const ehpcClusterId1 = ids.then(ids => ids.clusters?[0]?.id);
const nameRegex = alicloud.ehpc.getClusters({
    nameRegex: "^my-Cluster",
});
export const ehpcClusterId2 = nameRegex.then(nameRegex => nameRegex.clusters?[0]?.id);

Coming soon!

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(enable_details: Optional[bool] = None,
                 ids: Optional[Sequence[str]] = None,
                 name_regex: Optional[str] = None,
                 output_file: Optional[str] = None,
                 status: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetClustersResult
def get_clusters_output(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,
                 status: 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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ehpc/getClusters:getClusters
  Arguments:
    # Arguments dictionary

The following arguments are supported:

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of Cluster IDs.

NameRegex string

A regex string to filter results by Cluster name.

OutputFile string
Status string

The status of the resource.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of Cluster IDs.

NameRegex string

A regex string to filter results by Cluster name.

OutputFile string
Status string

The status of the resource.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Cluster IDs.

nameRegex String

A regex string to filter results by Cluster name.

outputFile String
status String

The status of the resource.

enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of Cluster IDs.

nameRegex string

A regex string to filter results by Cluster name.

outputFile string
status string

The status of the resource.

enable_details bool

Default to false. Set it to true can 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
status str

The status of the resource.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Cluster IDs.

nameRegex String

A regex string to filter results by Cluster name.

outputFile String
status String

The status of the resource.

getClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.Ehpc.Outputs.GetClustersCluster>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
EnableDetails bool
NameRegex string
OutputFile string
Status string
Clusters []GetClustersCluster
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
EnableDetails bool
NameRegex string
OutputFile string
Status string
clusters List<GetClustersCluster>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
enableDetails Boolean
nameRegex String
outputFile String
status String
clusters GetClustersCluster[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
enableDetails boolean
nameRegex string
outputFile string
status string
clusters Sequence[GetClustersCluster]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
enable_details bool
name_regex str
output_file str
status str
clusters List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
enableDetails Boolean
nameRegex String
outputFile String
status String

Supporting Types

GetClustersCluster

AccountType string

The server type of the account.

Applications List<Pulumi.AliCloud.Ehpc.Inputs.GetClustersClusterApplication>
ClientVersion string

The version number of the client used by the cluster.

ClusterId string

The id of E-HPC Cluster.

ClusterName string

The name of E-HPC cluster.

ComputeCount int

The number of compute nodes in the cluster.

ComputeInstanceType string

Cluster compute node specifications.

CreateTime string

The creation time of the resource.

DeployMode string

Cluster deployment mode. Possible values:

  • Standard: separate deployment of account nodes, scheduling nodes, login nodes, and compute nodes.
  • Advanced:HA mode deployment.
  • Simple: the account node and the scheduling node are deployed on one node, and the login node and the compute node are deployed separately.
  • Tiny: account nodes, scheduling nodes, and login nodes are deployed on one node, and compute nodes are deployed separately.
  • OneBox: account node, scheduling node, login node and compute node are deployed on one node.
Description string

The description of E-HPC cluster.

HaEnable bool

Whether to turn on high availability. > If high availability is enabled, each control role in the cluster will use two primary and secondary instances.

Id string

The ID of the Cluster.

ImageId string

The ID of the Image.

ImageOwnerAlias string

The type of the image.

LoginCount int

The number of cluster login nodes. Only configuration 1 is supported.

LoginInstanceType string

Cluster login node specifications.

ManagerCount int
ManagerInstanceType string

The instance type of manager nodes.

OsTag string

The image tag of the operating system.

PostInstallScripts List<Pulumi.AliCloud.Ehpc.Inputs.GetClustersClusterPostInstallScript>
RemoteDirectory string

Mount the remote directory of the shared storage.

SccClusterId string

The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.

SchedulerType string

Dispatch server type.

SecurityGroupId string

The ID of the security group.

Status string

The status of the resource.

VolumeId string

The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.

VolumeMountpoint string

The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.

VolumeProtocol string

The type of the protocol that is used by the file system.

VolumeType string

The type of the network shared storage. Valid value: NAS.

VpcId string

The ID of the VPC network.

VswitchId string

The vswitch id.

ZoneId string
AccountType string

The server type of the account.

Applications []GetClustersClusterApplication
ClientVersion string

The version number of the client used by the cluster.

ClusterId string

The id of E-HPC Cluster.

ClusterName string

The name of E-HPC cluster.

ComputeCount int

The number of compute nodes in the cluster.

ComputeInstanceType string

Cluster compute node specifications.

CreateTime string

The creation time of the resource.

DeployMode string

Cluster deployment mode. Possible values:

  • Standard: separate deployment of account nodes, scheduling nodes, login nodes, and compute nodes.
  • Advanced:HA mode deployment.
  • Simple: the account node and the scheduling node are deployed on one node, and the login node and the compute node are deployed separately.
  • Tiny: account nodes, scheduling nodes, and login nodes are deployed on one node, and compute nodes are deployed separately.
  • OneBox: account node, scheduling node, login node and compute node are deployed on one node.
Description string

The description of E-HPC cluster.

HaEnable bool

Whether to turn on high availability. > If high availability is enabled, each control role in the cluster will use two primary and secondary instances.

Id string

The ID of the Cluster.

ImageId string

The ID of the Image.

ImageOwnerAlias string

The type of the image.

LoginCount int

The number of cluster login nodes. Only configuration 1 is supported.

LoginInstanceType string

Cluster login node specifications.

ManagerCount int
ManagerInstanceType string

The instance type of manager nodes.

OsTag string

The image tag of the operating system.

PostInstallScripts []GetClustersClusterPostInstallScript
RemoteDirectory string

Mount the remote directory of the shared storage.

SccClusterId string

The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.

SchedulerType string

Dispatch server type.

SecurityGroupId string

The ID of the security group.

Status string

The status of the resource.

VolumeId string

The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.

VolumeMountpoint string

The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.

VolumeProtocol string

The type of the protocol that is used by the file system.

VolumeType string

The type of the network shared storage. Valid value: NAS.

VpcId string

The ID of the VPC network.

VswitchId string

The vswitch id.

ZoneId string
accountType String

The server type of the account.

applications List<GetClustersClusterApplication>
clientVersion String

The version number of the client used by the cluster.

clusterId String

The id of E-HPC Cluster.

clusterName String

The name of E-HPC cluster.

computeCount Integer

The number of compute nodes in the cluster.

computeInstanceType String

Cluster compute node specifications.

createTime String

The creation time of the resource.

deployMode String

Cluster deployment mode. Possible values:

  • Standard: separate deployment of account nodes, scheduling nodes, login nodes, and compute nodes.
  • Advanced:HA mode deployment.
  • Simple: the account node and the scheduling node are deployed on one node, and the login node and the compute node are deployed separately.
  • Tiny: account nodes, scheduling nodes, and login nodes are deployed on one node, and compute nodes are deployed separately.
  • OneBox: account node, scheduling node, login node and compute node are deployed on one node.
description String

The description of E-HPC cluster.

haEnable Boolean

Whether to turn on high availability. > If high availability is enabled, each control role in the cluster will use two primary and secondary instances.

id String

The ID of the Cluster.

imageId String

The ID of the Image.

imageOwnerAlias String

The type of the image.

loginCount Integer

The number of cluster login nodes. Only configuration 1 is supported.

loginInstanceType String

Cluster login node specifications.

managerCount Integer
managerInstanceType String

The instance type of manager nodes.

osTag String

The image tag of the operating system.

postInstallScripts List<GetClustersClusterPostInstallScript>
remoteDirectory String

Mount the remote directory of the shared storage.

sccClusterId String

The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.

schedulerType String

Dispatch server type.

securityGroupId String

The ID of the security group.

status String

The status of the resource.

volumeId String

The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.

volumeMountpoint String

The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.

volumeProtocol String

The type of the protocol that is used by the file system.

volumeType String

The type of the network shared storage. Valid value: NAS.

vpcId String

The ID of the VPC network.

vswitchId String

The vswitch id.

zoneId String
accountType string

The server type of the account.

applications GetClustersClusterApplication[]
clientVersion string

The version number of the client used by the cluster.

clusterId string

The id of E-HPC Cluster.

clusterName string

The name of E-HPC cluster.

computeCount number

The number of compute nodes in the cluster.

computeInstanceType string

Cluster compute node specifications.

createTime string

The creation time of the resource.

deployMode string

Cluster deployment mode. Possible values:

  • Standard: separate deployment of account nodes, scheduling nodes, login nodes, and compute nodes.
  • Advanced:HA mode deployment.
  • Simple: the account node and the scheduling node are deployed on one node, and the login node and the compute node are deployed separately.
  • Tiny: account nodes, scheduling nodes, and login nodes are deployed on one node, and compute nodes are deployed separately.
  • OneBox: account node, scheduling node, login node and compute node are deployed on one node.
description string

The description of E-HPC cluster.

haEnable boolean

Whether to turn on high availability. > If high availability is enabled, each control role in the cluster will use two primary and secondary instances.

id string

The ID of the Cluster.

imageId string

The ID of the Image.

imageOwnerAlias string

The type of the image.

loginCount number

The number of cluster login nodes. Only configuration 1 is supported.

loginInstanceType string

Cluster login node specifications.

managerCount number
managerInstanceType string

The instance type of manager nodes.

osTag string

The image tag of the operating system.

postInstallScripts GetClustersClusterPostInstallScript[]
remoteDirectory string

Mount the remote directory of the shared storage.

sccClusterId string

The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.

schedulerType string

Dispatch server type.

securityGroupId string

The ID of the security group.

status string

The status of the resource.

volumeId string

The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.

volumeMountpoint string

The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.

volumeProtocol string

The type of the protocol that is used by the file system.

volumeType string

The type of the network shared storage. Valid value: NAS.

vpcId string

The ID of the VPC network.

vswitchId string

The vswitch id.

zoneId string
account_type str

The server type of the account.

applications Sequence[GetClustersClusterApplication]
client_version str

The version number of the client used by the cluster.

cluster_id str

The id of E-HPC Cluster.

cluster_name str

The name of E-HPC cluster.

compute_count int

The number of compute nodes in the cluster.

compute_instance_type str

Cluster compute node specifications.

create_time str

The creation time of the resource.

deploy_mode str

Cluster deployment mode. Possible values:

  • Standard: separate deployment of account nodes, scheduling nodes, login nodes, and compute nodes.
  • Advanced:HA mode deployment.
  • Simple: the account node and the scheduling node are deployed on one node, and the login node and the compute node are deployed separately.
  • Tiny: account nodes, scheduling nodes, and login nodes are deployed on one node, and compute nodes are deployed separately.
  • OneBox: account node, scheduling node, login node and compute node are deployed on one node.
description str

The description of E-HPC cluster.

ha_enable bool

Whether to turn on high availability. > If high availability is enabled, each control role in the cluster will use two primary and secondary instances.

id str

The ID of the Cluster.

image_id str

The ID of the Image.

image_owner_alias str

The type of the image.

login_count int

The number of cluster login nodes. Only configuration 1 is supported.

login_instance_type str

Cluster login node specifications.

manager_count int
manager_instance_type str

The instance type of manager nodes.

os_tag str

The image tag of the operating system.

post_install_scripts Sequence[GetClustersClusterPostInstallScript]
remote_directory str

Mount the remote directory of the shared storage.

scc_cluster_id str

The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.

scheduler_type str

Dispatch server type.

security_group_id str

The ID of the security group.

status str

The status of the resource.

volume_id str

The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.

volume_mountpoint str

The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.

volume_protocol str

The type of the protocol that is used by the file system.

volume_type str

The type of the network shared storage. Valid value: NAS.

vpc_id str

The ID of the VPC network.

vswitch_id str

The vswitch id.

zone_id str
accountType String

The server type of the account.

applications List<Property Map>
clientVersion String

The version number of the client used by the cluster.

clusterId String

The id of E-HPC Cluster.

clusterName String

The name of E-HPC cluster.

computeCount Number

The number of compute nodes in the cluster.

computeInstanceType String

Cluster compute node specifications.

createTime String

The creation time of the resource.

deployMode String

Cluster deployment mode. Possible values:

  • Standard: separate deployment of account nodes, scheduling nodes, login nodes, and compute nodes.
  • Advanced:HA mode deployment.
  • Simple: the account node and the scheduling node are deployed on one node, and the login node and the compute node are deployed separately.
  • Tiny: account nodes, scheduling nodes, and login nodes are deployed on one node, and compute nodes are deployed separately.
  • OneBox: account node, scheduling node, login node and compute node are deployed on one node.
description String

The description of E-HPC cluster.

haEnable Boolean

Whether to turn on high availability. > If high availability is enabled, each control role in the cluster will use two primary and secondary instances.

id String

The ID of the Cluster.

imageId String

The ID of the Image.

imageOwnerAlias String

The type of the image.

loginCount Number

The number of cluster login nodes. Only configuration 1 is supported.

loginInstanceType String

Cluster login node specifications.

managerCount Number
managerInstanceType String

The instance type of manager nodes.

osTag String

The image tag of the operating system.

postInstallScripts List<Property Map>
remoteDirectory String

Mount the remote directory of the shared storage.

sccClusterId String

The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.

schedulerType String

Dispatch server type.

securityGroupId String

The ID of the security group.

status String

The status of the resource.

volumeId String

The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.

volumeMountpoint String

The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.

volumeProtocol String

The type of the protocol that is used by the file system.

volumeType String

The type of the network shared storage. Valid value: NAS.

vpcId String

The ID of the VPC network.

vswitchId String

The vswitch id.

zoneId String

GetClustersClusterApplication

Tag string
Tag string
tag String
tag string
tag str
tag String

GetClustersClusterPostInstallScript

Args string
Url string
Args string
Url string
args String
url String
args string
url string
args str
url str
args String
url String

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.