alicloud.ebs.getDedicatedBlockStorageClusters

This data source provides Ebs Dedicated Block Storage Cluster available to the user.

NOTE: Available in 1.196.0+

Example Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Ebs.GetDedicatedBlockStorageClusters.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
        NameRegex = alicloud_ebs_dedicated_block_storage_cluster.Default.Name,
    });

    return new Dictionary<string, object?>
    {
        ["alicloudEbsDedicatedBlockStorageClusterExampleId"] = @default.Apply(getDedicatedBlockStorageClustersResult => getDedicatedBlockStorageClustersResult).Apply(@default => @default.Apply(getDedicatedBlockStorageClustersResult => getDedicatedBlockStorageClustersResult.Clusters[0]?.Id)),
    };
});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := ebs.GetDedicatedBlockStorageClusters(ctx, &ebs.GetDedicatedBlockStorageClustersArgs{
			Ids: []string{
				"example_id",
			},
			NameRegex: pulumi.StringRef(alicloud_ebs_dedicated_block_storage_cluster.Default.Name),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudEbsDedicatedBlockStorageClusterExampleId", _default.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.ebs.EbsFunctions;
import com.pulumi.alicloud.ebs.inputs.GetDedicatedBlockStorageClustersArgs;
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 default = EbsFunctions.getDedicatedBlockStorageClusters(GetDedicatedBlockStorageClustersArgs.builder()
            .ids("example_id")
            .nameRegex(alicloud_ebs_dedicated_block_storage_cluster.default().name())
            .build());

        ctx.export("alicloudEbsDedicatedBlockStorageClusterExampleId", default_.clusters()[0].id());
    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ebs.get_dedicated_block_storage_clusters(ids=["example_id"],
    name_regex=alicloud_ebs_dedicated_block_storage_cluster["default"]["name"])
pulumi.export("alicloudEbsDedicatedBlockStorageClusterExampleId", default.clusters[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const default = alicloud.ebs.getDedicatedBlockStorageClusters({
    ids: ["example_id"],
    nameRegex: alicloud_ebs_dedicated_block_storage_cluster["default"].name,
});
export const alicloudEbsDedicatedBlockStorageClusterExampleId = _default.then(_default => _default.clusters?.[0]?.id);
variables:
  default:
    fn::invoke:
      Function: alicloud:ebs:getDedicatedBlockStorageClusters
      Arguments:
        ids:
          - example_id
        nameRegex: ${alicloud_ebs_dedicated_block_storage_cluster.default.name}
outputs:
  alicloudEbsDedicatedBlockStorageClusterExampleId: ${default.clusters[0].id}

Using getDedicatedBlockStorageClusters

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 getDedicatedBlockStorageClusters(args: GetDedicatedBlockStorageClustersArgs, opts?: InvokeOptions): Promise<GetDedicatedBlockStorageClustersResult>
function getDedicatedBlockStorageClustersOutput(args: GetDedicatedBlockStorageClustersOutputArgs, opts?: InvokeOptions): Output<GetDedicatedBlockStorageClustersResult>
def get_dedicated_block_storage_clusters(ids: Optional[Sequence[str]] = None,
                                         name_regex: Optional[str] = None,
                                         output_file: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDedicatedBlockStorageClustersResult
def get_dedicated_block_storage_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[GetDedicatedBlockStorageClustersResult]
func GetDedicatedBlockStorageClusters(ctx *Context, args *GetDedicatedBlockStorageClustersArgs, opts ...InvokeOption) (*GetDedicatedBlockStorageClustersResult, error)
func GetDedicatedBlockStorageClustersOutput(ctx *Context, args *GetDedicatedBlockStorageClustersOutputArgs, opts ...InvokeOption) GetDedicatedBlockStorageClustersResultOutput

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

public static class GetDedicatedBlockStorageClusters 
{
    public static Task<GetDedicatedBlockStorageClustersResult> InvokeAsync(GetDedicatedBlockStorageClustersArgs args, InvokeOptions? opts = null)
    public static Output<GetDedicatedBlockStorageClustersResult> Invoke(GetDedicatedBlockStorageClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDedicatedBlockStorageClustersResult> getDedicatedBlockStorageClusters(GetDedicatedBlockStorageClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters
  arguments:
    # arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Dedicated Block Storage Cluster IDs.

NameRegex string

A regex string to filter results by Group Metric Rule name.

OutputFile string
Ids []string

A list of Dedicated Block Storage Cluster IDs.

NameRegex string

A regex string to filter results by Group Metric Rule name.

OutputFile string
ids List<String>

A list of Dedicated Block Storage Cluster IDs.

nameRegex String

A regex string to filter results by Group Metric Rule name.

outputFile String
ids string[]

A list of Dedicated Block Storage Cluster IDs.

nameRegex string

A regex string to filter results by Group Metric Rule name.

outputFile string
ids Sequence[str]

A list of Dedicated Block Storage Cluster IDs.

name_regex str

A regex string to filter results by Group Metric Rule name.

output_file str
ids List<String>

A list of Dedicated Block Storage Cluster IDs.

nameRegex String

A regex string to filter results by Group Metric Rule name.

outputFile String

getDedicatedBlockStorageClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.Ebs.Outputs.GetDedicatedBlockStorageClustersCluster>

A list of Dedicated Block Storage 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 Dedicated Block Storage Cluster IDs.

Names List<string>

A list of name of Dedicated Block Storage Clusters.

NameRegex string
OutputFile string
Clusters []GetDedicatedBlockStorageClustersCluster

A list of Dedicated Block Storage Cluster Entries. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of Dedicated Block Storage Cluster IDs.

Names []string

A list of name of Dedicated Block Storage Clusters.

NameRegex string
OutputFile string
clusters List<GetDedicatedBlockStorageClustersCluster>

A list of Dedicated Block Storage 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 Dedicated Block Storage Cluster IDs.

names List<String>

A list of name of Dedicated Block Storage Clusters.

nameRegex String
outputFile String
clusters GetDedicatedBlockStorageClustersCluster[]

A list of Dedicated Block Storage Cluster Entries. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of Dedicated Block Storage Cluster IDs.

names string[]

A list of name of Dedicated Block Storage Clusters.

nameRegex string
outputFile string
clusters Sequence[GetDedicatedBlockStorageClustersCluster]

A list of Dedicated Block Storage 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 Dedicated Block Storage Cluster IDs.

names Sequence[str]

A list of name of Dedicated Block Storage Clusters.

name_regex str
output_file str
clusters List<Property Map>

A list of Dedicated Block Storage 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 Dedicated Block Storage Cluster IDs.

names List<String>

A list of name of Dedicated Block Storage Clusters.

nameRegex String
outputFile String

Supporting Types

GetDedicatedBlockStorageClustersCluster

AvailableCapacity string

The available capacity of the dedicated block storage cluster. Unit: GiB.

Category string

The type of cloud disk that can be created by a dedicated block storage cluster.

CreateTime string

The creation time of the resource

DedicatedBlockStorageClusterId string

The first ID of the resource

DedicatedBlockStorageClusterName string

The name of the resource

DeliveryCapacity string

Capacity to be delivered in GB.

Description string

The description of the dedicated block storage cluster.

ExpiredTime string

The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.

Id string
PerformanceLevel string

Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.

ResourceGroupId string

The ID of the resource group

Status string

The status of the resource

SupportedCategory string

This parameter is not supported.

TotalCapacity string

The total capacity of the dedicated block storage cluster. Unit: GiB.

Type string

The dedicated block storage cluster performance type. Possible values:-Standard: Basic type. This type of dedicated block storage cluster can create an ESSD PL0 cloud disk.-Premium: performance type. This type of dedicated block storage cluster can create an ESSD PL1 cloud disk.

UsedCapacity string

The used (created disk) capacity of the current cluster, in GB

ZoneId string

The zone ID of the resource

AvailableCapacity string

The available capacity of the dedicated block storage cluster. Unit: GiB.

Category string

The type of cloud disk that can be created by a dedicated block storage cluster.

CreateTime string

The creation time of the resource

DedicatedBlockStorageClusterId string

The first ID of the resource

DedicatedBlockStorageClusterName string

The name of the resource

DeliveryCapacity string

Capacity to be delivered in GB.

Description string

The description of the dedicated block storage cluster.

ExpiredTime string

The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.

Id string
PerformanceLevel string

Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.

ResourceGroupId string

The ID of the resource group

Status string

The status of the resource

SupportedCategory string

This parameter is not supported.

TotalCapacity string

The total capacity of the dedicated block storage cluster. Unit: GiB.

Type string

The dedicated block storage cluster performance type. Possible values:-Standard: Basic type. This type of dedicated block storage cluster can create an ESSD PL0 cloud disk.-Premium: performance type. This type of dedicated block storage cluster can create an ESSD PL1 cloud disk.

UsedCapacity string

The used (created disk) capacity of the current cluster, in GB

ZoneId string

The zone ID of the resource

availableCapacity String

The available capacity of the dedicated block storage cluster. Unit: GiB.

category String

The type of cloud disk that can be created by a dedicated block storage cluster.

createTime String

The creation time of the resource

dedicatedBlockStorageClusterId String

The first ID of the resource

dedicatedBlockStorageClusterName String

The name of the resource

deliveryCapacity String

Capacity to be delivered in GB.

description String

The description of the dedicated block storage cluster.

expiredTime String

The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.

id String
performanceLevel String

Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.

resourceGroupId String

The ID of the resource group

status String

The status of the resource

supportedCategory String

This parameter is not supported.

totalCapacity String

The total capacity of the dedicated block storage cluster. Unit: GiB.

type String

The dedicated block storage cluster performance type. Possible values:-Standard: Basic type. This type of dedicated block storage cluster can create an ESSD PL0 cloud disk.-Premium: performance type. This type of dedicated block storage cluster can create an ESSD PL1 cloud disk.

usedCapacity String

The used (created disk) capacity of the current cluster, in GB

zoneId String

The zone ID of the resource

availableCapacity string

The available capacity of the dedicated block storage cluster. Unit: GiB.

category string

The type of cloud disk that can be created by a dedicated block storage cluster.

createTime string

The creation time of the resource

dedicatedBlockStorageClusterId string

The first ID of the resource

dedicatedBlockStorageClusterName string

The name of the resource

deliveryCapacity string

Capacity to be delivered in GB.

description string

The description of the dedicated block storage cluster.

expiredTime string

The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.

id string
performanceLevel string

Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.

resourceGroupId string

The ID of the resource group

status string

The status of the resource

supportedCategory string

This parameter is not supported.

totalCapacity string

The total capacity of the dedicated block storage cluster. Unit: GiB.

type string

The dedicated block storage cluster performance type. Possible values:-Standard: Basic type. This type of dedicated block storage cluster can create an ESSD PL0 cloud disk.-Premium: performance type. This type of dedicated block storage cluster can create an ESSD PL1 cloud disk.

usedCapacity string

The used (created disk) capacity of the current cluster, in GB

zoneId string

The zone ID of the resource

available_capacity str

The available capacity of the dedicated block storage cluster. Unit: GiB.

category str

The type of cloud disk that can be created by a dedicated block storage cluster.

create_time str

The creation time of the resource

dedicated_block_storage_cluster_id str

The first ID of the resource

dedicated_block_storage_cluster_name str

The name of the resource

delivery_capacity str

Capacity to be delivered in GB.

description str

The description of the dedicated block storage cluster.

expired_time str

The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.

id str
performance_level str

Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.

resource_group_id str

The ID of the resource group

status str

The status of the resource

supported_category str

This parameter is not supported.

total_capacity str

The total capacity of the dedicated block storage cluster. Unit: GiB.

type str

The dedicated block storage cluster performance type. Possible values:-Standard: Basic type. This type of dedicated block storage cluster can create an ESSD PL0 cloud disk.-Premium: performance type. This type of dedicated block storage cluster can create an ESSD PL1 cloud disk.

used_capacity str

The used (created disk) capacity of the current cluster, in GB

zone_id str

The zone ID of the resource

availableCapacity String

The available capacity of the dedicated block storage cluster. Unit: GiB.

category String

The type of cloud disk that can be created by a dedicated block storage cluster.

createTime String

The creation time of the resource

dedicatedBlockStorageClusterId String

The first ID of the resource

dedicatedBlockStorageClusterName String

The name of the resource

deliveryCapacity String

Capacity to be delivered in GB.

description String

The description of the dedicated block storage cluster.

expiredTime String

The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.

id String
performanceLevel String

Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.

resourceGroupId String

The ID of the resource group

status String

The status of the resource

supportedCategory String

This parameter is not supported.

totalCapacity String

The total capacity of the dedicated block storage cluster. Unit: GiB.

type String

The dedicated block storage cluster performance type. Possible values:-Standard: Basic type. This type of dedicated block storage cluster can create an ESSD PL0 cloud disk.-Premium: performance type. This type of dedicated block storage cluster can create an ESSD PL1 cloud disk.

usedCapacity String

The used (created disk) capacity of the current cluster, in GB

zoneId String

The zone ID of the resource

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.