alicloud.ehpc.getClusters
This data source provides the Ehpc Clusters of the current Alibaba Cloud user.
NOTE: Available in v1.173.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Ehpc.GetClusters.Invoke(new()
{
Ids = new[]
{
"example_id",
},
});
var nameRegex = AliCloud.Ehpc.GetClusters.Invoke(new()
{
NameRegex = "^my-Cluster",
});
return new Dictionary<string, object?>
{
["ehpcClusterId1"] = ids.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id),
["ehpcClusterId2"] = nameRegex.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id),
};
});
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ehpc.EhpcFunctions;
import com.pulumi.alicloud.ehpc.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 ids = EhpcFunctions.getClusters(GetClustersArgs.builder()
.ids("example_id")
.build());
ctx.export("ehpcClusterId1", ids.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
final var nameRegex = EhpcFunctions.getClusters(GetClustersArgs.builder()
.nameRegex("^my-Cluster")
.build());
ctx.export("ehpcClusterId2", nameRegex.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
}
}
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);
variables:
ids:
fn::invoke:
Function: alicloud:ehpc:getClusters
Arguments:
ids:
- example_id
nameRegex:
fn::invoke:
Function: alicloud:ehpc:getClusters
Arguments:
nameRegex: ^my-Cluster
outputs:
ehpcClusterId1: ${ids.clusters[0].id}
ehpcClusterId2: ${nameRegex.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(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:
- Enable
Details bool Default to
false
. Set it totrue
can 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 - Status string
The status of the resource.
- Enable
Details bool Default to
false
. Set it totrue
can 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 - Status string
The status of the resource.
- enable
Details Boolean Default to
false
. Set it totrue
can 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 - status String
The status of the resource.
- enable
Details boolean Default to
false
. Set it totrue
can 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 - status string
The status of the resource.
- enable_
details bool Default to
false
. Set it totrue
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.
- enable
Details Boolean Default to
false
. Set it totrue
can 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 - status String
The status of the resource.
getClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. Ehpc. Outputs. Get Clusters Cluster> - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Enable
Details bool - Name
Regex string - Output
File string - Status string
- Clusters
[]Get
Clusters Cluster - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Enable
Details bool - Name
Regex string - Output
File string - Status string
- clusters
List<Get
Clusters Cluster> - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String - status String
- clusters
Get
Clusters Cluster[] - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- enable
Details boolean - name
Regex string - output
File string - status string
- clusters
Sequence[Get
Clusters Cluster] - 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>
- enable
Details Boolean - name
Regex String - output
File String - status String
Supporting Types
GetClustersCluster
- Account
Type string The server type of the account.
- Applications
List<Pulumi.
Ali Cloud. Ehpc. Inputs. Get Clusters Cluster Application> - Client
Version string The version number of the client used by the cluster.
- Cluster
Id string The id of E-HPC Cluster.
- Cluster
Name string The name of E-HPC cluster.
- Compute
Count int The number of compute nodes in the cluster.
- Compute
Instance stringType Cluster compute node specifications.
- Create
Time string The creation time of the resource.
- Deploy
Mode 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.
- 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 string
The ID of the Cluster.
- Image
Id string The ID of the Image.
- Image
Owner stringAlias The type of the image.
- Login
Count int The number of cluster login nodes. Only configuration 1 is supported.
- Login
Instance stringType Cluster login node specifications.
- Manager
Count int - Manager
Instance stringType The instance type of manager nodes.
- Os
Tag string The image tag of the operating system.
- Post
Install List<Pulumi.Scripts Ali Cloud. Ehpc. Inputs. Get Clusters Cluster Post Install Script> - Remote
Directory string Mount the remote directory of the shared storage.
- Scc
Cluster stringId The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.
- Scheduler
Type string Dispatch server type.
- Security
Group stringId The ID of the security group.
- Status string
The status of the resource.
- Volume
Id string The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.
- Volume
Mountpoint string The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.
- Volume
Protocol string The type of the protocol that is used by the file system.
- Volume
Type string The type of the network shared storage. Valid value: NAS.
- Vpc
Id string The ID of the VPC network.
- Vswitch
Id string The vswitch id.
- Zone
Id string
- Account
Type string The server type of the account.
- Applications
[]Get
Clusters Cluster Application - Client
Version string The version number of the client used by the cluster.
- Cluster
Id string The id of E-HPC Cluster.
- Cluster
Name string The name of E-HPC cluster.
- Compute
Count int The number of compute nodes in the cluster.
- Compute
Instance stringType Cluster compute node specifications.
- Create
Time string The creation time of the resource.
- Deploy
Mode 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.
- 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 string
The ID of the Cluster.
- Image
Id string The ID of the Image.
- Image
Owner stringAlias The type of the image.
- Login
Count int The number of cluster login nodes. Only configuration 1 is supported.
- Login
Instance stringType Cluster login node specifications.
- Manager
Count int - Manager
Instance stringType The instance type of manager nodes.
- Os
Tag string The image tag of the operating system.
- Post
Install []GetScripts Clusters Cluster Post Install Script - Remote
Directory string Mount the remote directory of the shared storage.
- Scc
Cluster stringId The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.
- Scheduler
Type string Dispatch server type.
- Security
Group stringId The ID of the security group.
- Status string
The status of the resource.
- Volume
Id string The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.
- Volume
Mountpoint string The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.
- Volume
Protocol string The type of the protocol that is used by the file system.
- Volume
Type string The type of the network shared storage. Valid value: NAS.
- Vpc
Id string The ID of the VPC network.
- Vswitch
Id string The vswitch id.
- Zone
Id string
- account
Type String The server type of the account.
- applications
List<Get
Clusters Cluster Application> - client
Version String The version number of the client used by the cluster.
- cluster
Id String The id of E-HPC Cluster.
- cluster
Name String The name of E-HPC cluster.
- compute
Count Integer The number of compute nodes in the cluster.
- compute
Instance StringType Cluster compute node specifications.
- create
Time String The creation time of the resource.
- deploy
Mode 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.
- ha
Enable 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.
- image
Id String The ID of the Image.
- image
Owner StringAlias The type of the image.
- login
Count Integer The number of cluster login nodes. Only configuration 1 is supported.
- login
Instance StringType Cluster login node specifications.
- manager
Count Integer - manager
Instance StringType The instance type of manager nodes.
- os
Tag String The image tag of the operating system.
- post
Install List<GetScripts Clusters Cluster Post Install Script> - remote
Directory String Mount the remote directory of the shared storage.
- scc
Cluster StringId The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.
- scheduler
Type String Dispatch server type.
- security
Group StringId The ID of the security group.
- status String
The status of the resource.
- volume
Id String The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.
- volume
Mountpoint String The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.
- volume
Protocol String The type of the protocol that is used by the file system.
- volume
Type String The type of the network shared storage. Valid value: NAS.
- vpc
Id String The ID of the VPC network.
- vswitch
Id String The vswitch id.
- zone
Id String
- account
Type string The server type of the account.
- applications
Get
Clusters Cluster Application[] - client
Version string The version number of the client used by the cluster.
- cluster
Id string The id of E-HPC Cluster.
- cluster
Name string The name of E-HPC cluster.
- compute
Count number The number of compute nodes in the cluster.
- compute
Instance stringType Cluster compute node specifications.
- create
Time string The creation time of the resource.
- deploy
Mode 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.
- ha
Enable 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.
- image
Id string The ID of the Image.
- image
Owner stringAlias The type of the image.
- login
Count number The number of cluster login nodes. Only configuration 1 is supported.
- login
Instance stringType Cluster login node specifications.
- manager
Count number - manager
Instance stringType The instance type of manager nodes.
- os
Tag string The image tag of the operating system.
- post
Install GetScripts Clusters Cluster Post Install Script[] - remote
Directory string Mount the remote directory of the shared storage.
- scc
Cluster stringId The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.
- scheduler
Type string Dispatch server type.
- security
Group stringId The ID of the security group.
- status string
The status of the resource.
- volume
Id string The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.
- volume
Mountpoint string The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.
- volume
Protocol string The type of the protocol that is used by the file system.
- volume
Type string The type of the network shared storage. Valid value: NAS.
- vpc
Id string The ID of the VPC network.
- vswitch
Id string The vswitch id.
- zone
Id string
- account_
type str The server type of the account.
- applications
Sequence[Get
Clusters Cluster Application] - 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_ strtype 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_ stralias The type of the image.
- login_
count int The number of cluster login nodes. Only configuration 1 is supported.
- login_
instance_ strtype Cluster login node specifications.
- manager_
count int - manager_
instance_ strtype The instance type of manager nodes.
- os_
tag str The image tag of the operating system.
- post_
install_ Sequence[Getscripts Clusters Cluster Post Install Script] - remote_
directory str Mount the remote directory of the shared storage.
- scc_
cluster_ strid 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_ strid 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
- account
Type String The server type of the account.
- applications List<Property Map>
- client
Version String The version number of the client used by the cluster.
- cluster
Id String The id of E-HPC Cluster.
- cluster
Name String The name of E-HPC cluster.
- compute
Count Number The number of compute nodes in the cluster.
- compute
Instance StringType Cluster compute node specifications.
- create
Time String The creation time of the resource.
- deploy
Mode 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.
- ha
Enable 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.
- image
Id String The ID of the Image.
- image
Owner StringAlias The type of the image.
- login
Count Number The number of cluster login nodes. Only configuration 1 is supported.
- login
Instance StringType Cluster login node specifications.
- manager
Count Number - manager
Instance StringType The instance type of manager nodes.
- os
Tag String The image tag of the operating system.
- post
Install List<Property Map>Scripts - remote
Directory String Mount the remote directory of the shared storage.
- scc
Cluster StringId The SccCluster ID used by the cluster. If the cluster is not an SCC model, it is empty.
- scheduler
Type String Dispatch server type.
- security
Group StringId The ID of the security group.
- status String
The status of the resource.
- volume
Id String The ID of the NAS instance. Currently, you cannot automatically create an Alibaba Cloud NAS instance.
- volume
Mountpoint String The mount target of the file system. Mount targets cannot be automatically created for NAS file systems.
- volume
Protocol String The type of the protocol that is used by the file system.
- volume
Type String The type of the network shared storage. Valid value: NAS.
- vpc
Id String The ID of the VPC network.
- vswitch
Id String The vswitch id.
- zone
Id String
GetClustersClusterApplication
- Tag string
- Tag string
- tag String
- tag string
- tag str
- tag String
GetClustersClusterPostInstallScript
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.