1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. getHpcClusters
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.ecs.getHpcClusters

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    Use this data source to query detailed information of ecs hpc clusters

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.ecs.getHpcClusters({
        zoneId: "cn-beijing-a",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.ecs.get_hpc_clusters(zone_id="cn-beijing-a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecs.GetHpcClusters(ctx, &ecs.GetHpcClustersArgs{
    			ZoneId: pulumi.StringRef("cn-beijing-a"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Ecs.GetHpcClusters.Invoke(new()
        {
            ZoneId = "cn-beijing-a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.GetHpcClustersArgs;
    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 foo = EcsFunctions.getHpcClusters(GetHpcClustersArgs.builder()
                .zoneId("cn-beijing-a")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:ecs:getHpcClusters
          Arguments:
            zoneId: cn-beijing-a
    

    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(name_regex: Optional[str] = None,
                         output_file: Optional[str] = None,
                         zone_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetHpcClustersResult
    def get_hpc_clusters_output(name_regex: Optional[pulumi.Input[str]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         zone_id: 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)
    public static Output<GetHpcClustersResult> getHpcClusters(GetHpcClustersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:ecs/getHpcClusters:getHpcClusters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ZoneId string
    The zone id of the hpc cluster.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    ZoneId string
    The zone id of the hpc cluster.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    zoneId String
    The zone id of the hpc cluster.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    zoneId string
    The zone id of the hpc cluster.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    zone_id str
    The zone id of the hpc cluster.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    zoneId String
    The zone id of the hpc cluster.

    getHpcClusters Result

    The following output properties are available:

    HpcClusters List<GetHpcClustersHpcCluster>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    NameRegex string
    OutputFile string
    ZoneId string
    The zone id of the hpc cluster.
    HpcClusters []GetHpcClustersHpcCluster
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    NameRegex string
    OutputFile string
    ZoneId string
    The zone id of the hpc cluster.
    hpcClusters List<GetHpcClustersHpcCluster>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    nameRegex String
    outputFile String
    zoneId String
    The zone id of the hpc cluster.
    hpcClusters GetHpcClustersHpcCluster[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    nameRegex string
    outputFile string
    zoneId string
    The zone id of the hpc cluster.
    hpc_clusters Sequence[GetHpcClustersHpcCluster]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    name_regex str
    output_file str
    zone_id str
    The zone id of the hpc cluster.
    hpcClusters List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    nameRegex String
    outputFile String
    zoneId String
    The zone id of the hpc cluster.

    Supporting Types

    GetHpcClustersHpcCluster

    CreatedAt string
    The created time of the hpc cluster.
    Description string
    The description of the hpc cluster.
    HpcClusterId string
    The id of the hpc cluster.
    Id string
    The id of the hpc cluster.
    Name string
    The name of the hpc cluster.
    UpdatedAt string
    The updated time of the hpc cluster.
    VpcId string
    The vpc id of the hpc cluster.
    ZoneId string
    The zone id of the hpc cluster.
    CreatedAt string
    The created time of the hpc cluster.
    Description string
    The description of the hpc cluster.
    HpcClusterId string
    The id of the hpc cluster.
    Id string
    The id of the hpc cluster.
    Name string
    The name of the hpc cluster.
    UpdatedAt string
    The updated time of the hpc cluster.
    VpcId string
    The vpc id of the hpc cluster.
    ZoneId string
    The zone id of the hpc cluster.
    createdAt String
    The created time of the hpc cluster.
    description String
    The description of the hpc cluster.
    hpcClusterId String
    The id of the hpc cluster.
    id String
    The id of the hpc cluster.
    name String
    The name of the hpc cluster.
    updatedAt String
    The updated time of the hpc cluster.
    vpcId String
    The vpc id of the hpc cluster.
    zoneId String
    The zone id of the hpc cluster.
    createdAt string
    The created time of the hpc cluster.
    description string
    The description of the hpc cluster.
    hpcClusterId string
    The id of the hpc cluster.
    id string
    The id of the hpc cluster.
    name string
    The name of the hpc cluster.
    updatedAt string
    The updated time of the hpc cluster.
    vpcId string
    The vpc id of the hpc cluster.
    zoneId string
    The zone id of the hpc cluster.
    created_at str
    The created time of the hpc cluster.
    description str
    The description of the 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 the hpc cluster.
    updated_at str
    The updated time of the hpc cluster.
    vpc_id str
    The vpc id of the hpc cluster.
    zone_id str
    The zone id of the hpc cluster.
    createdAt String
    The created time of the hpc cluster.
    description String
    The description of the hpc cluster.
    hpcClusterId String
    The id of the hpc cluster.
    id String
    The id of the hpc cluster.
    name String
    The name of the hpc cluster.
    updatedAt String
    The updated time of the hpc cluster.
    vpcId String
    The vpc id of the hpc cluster.
    zoneId String
    The zone id of the hpc cluster.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine