Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getHpcClusters

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

NOTE: Available in v1.116.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.Ecs.GetHpcClusters.InvokeAsync(new AliCloud.Ecs.GetHpcClustersArgs
        {
            Ids = 
            {
                "hpc-bp1i09xxxxxxxx",
            },
            NameRegex = "tf-testAcc",
        }));
        this.FirstEcsHpcClusterId = example.Apply(example => example.Clusters?[0]?.Id);
    }

    [Output("firstEcsHpcClusterId")]
    public Output<string> FirstEcsHpcClusterId { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ecs.GetHpcClusters(ctx, &ecs.GetHpcClustersArgs{
			Ids: []string{
				"hpc-bp1i09xxxxxxxx",
			},
			NameRegex: pulumi.StringRef("tf-testAcc"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstEcsHpcClusterId", example.Clusters[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ecs.get_hpc_clusters(ids=["hpc-bp1i09xxxxxxxx"],
    name_regex="tf-testAcc")
pulumi.export("firstEcsHpcClusterId", example.clusters[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.ecs.getHpcClusters({
    ids: ["hpc-bp1i09xxxxxxxx"],
    nameRegex: "tf-testAcc",
});
export const firstEcsHpcClusterId = example.then(example => example.clusters?[0]?.id);

Coming soon!

Using getHpcClusters

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 getHpcClusters(args: GetHpcClustersArgs, opts?: InvokeOptions): Promise<GetHpcClustersResult>
function getHpcClustersOutput(args: GetHpcClustersOutputArgs, opts?: InvokeOptions): Output<GetHpcClustersResult>
def get_hpc_clusters(ids: Optional[Sequence[str]] = None,
                     name_regex: Optional[str] = None,
                     output_file: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetHpcClustersResult
def get_hpc_clusters_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     name_regex: Optional[pulumi.Input[str]] = None,
                     output_file: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetHpcClustersResult]
func GetHpcClusters(ctx *Context, args *GetHpcClustersArgs, opts ...InvokeOption) (*GetHpcClustersResult, error)
func GetHpcClustersOutput(ctx *Context, args *GetHpcClustersOutputArgs, opts ...InvokeOption) GetHpcClustersResultOutput

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

public static class GetHpcClusters 
{
    public static Task<GetHpcClustersResult> InvokeAsync(GetHpcClustersArgs args, InvokeOptions? opts = null)
    public static Output<GetHpcClustersResult> Invoke(GetHpcClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHpcClustersResult> getHpcClusters(GetHpcClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ecs/getHpcClusters:getHpcClusters
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Hpc Cluster IDs.

NameRegex string

A regex string to filter results by Hpc Cluster name.

OutputFile string
Ids []string

A list of Hpc Cluster IDs.

NameRegex string

A regex string to filter results by Hpc Cluster name.

OutputFile string
ids List

A list of Hpc Cluster IDs.

nameRegex String

A regex string to filter results by Hpc Cluster name.

outputFile String
ids string[]

A list of Hpc Cluster IDs.

nameRegex string

A regex string to filter results by Hpc Cluster name.

outputFile string
ids Sequence[str]

A list of Hpc Cluster IDs.

name_regex str

A regex string to filter results by Hpc Cluster name.

output_file str
ids List

A list of Hpc Cluster IDs.

nameRegex String

A regex string to filter results by Hpc Cluster name.

outputFile String

getHpcClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.Ecs.Outputs.GetHpcClustersCluster>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
NameRegex string
OutputFile string
Clusters []GetHpcClustersCluster
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
NameRegex string
OutputFile string
clusters ListHpcClustersCluster>
id String

The provider-assigned unique ID for this managed resource.

ids List
names List
nameRegex String
outputFile String
clusters GetHpcClustersCluster[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
nameRegex string
outputFile string
clusters Sequence[GetHpcClustersCluster]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
name_regex str
output_file str
clusters List
id String

The provider-assigned unique ID for this managed resource.

ids List
names List
nameRegex String
outputFile String

Supporting Types

GetHpcClustersCluster

Description string

The description of ECS Hpc Cluster.

HpcClusterId string

The ID of the Hpc Cluster.

Id string

The ID of the Hpc Cluster.

Name string

The name of ECS Hpc Cluster.

Description string

The description of ECS Hpc Cluster.

HpcClusterId string

The ID of the Hpc Cluster.

Id string

The ID of the Hpc Cluster.

Name string

The name of ECS Hpc Cluster.

description String

The description of ECS Hpc Cluster.

hpcClusterId String

The ID of the Hpc Cluster.

id String

The ID of the Hpc Cluster.

name String

The name of ECS Hpc Cluster.

description string

The description of ECS Hpc Cluster.

hpcClusterId string

The ID of the Hpc Cluster.

id string

The ID of the Hpc Cluster.

name string

The name of ECS Hpc Cluster.

description str

The description of ECS Hpc Cluster.

hpc_cluster_id str

The ID of the Hpc Cluster.

id str

The ID of the Hpc Cluster.

name str

The name of ECS Hpc Cluster.

description String

The description of ECS Hpc Cluster.

hpcClusterId String

The ID of the Hpc Cluster.

id String

The ID of the Hpc Cluster.

name String

The name of ECS Hpc Cluster.

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.