Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.ebs.getDedicatedBlockStorageClusters
Explore with Pulumi AI
This data source provides Ebs Dedicated Block Storage Cluster available to the user.
NOTE: Available in 1.196.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.ebs.getDedicatedBlockStorageClusters({
ids: ["example_id"],
nameRegex: defaultAlicloudEbsDedicatedBlockStorageCluster.name,
});
export const alicloudEbsDedicatedBlockStorageClusterExampleId = _default.then(_default => _default.clusters?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ebs.get_dedicated_block_storage_clusters(ids=["example_id"],
name_regex=default_alicloud_ebs_dedicated_block_storage_cluster["name"])
pulumi.export("alicloudEbsDedicatedBlockStorageClusterExampleId", default.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(defaultAlicloudEbsDedicatedBlockStorageCluster.Name),
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudEbsDedicatedBlockStorageClusterExampleId", _default.Clusters[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Ebs.GetDedicatedBlockStorageClusters.Invoke(new()
{
Ids = new[]
{
"example_id",
},
NameRegex = defaultAlicloudEbsDedicatedBlockStorageCluster.Name,
});
return new Dictionary<string, object?>
{
["alicloudEbsDedicatedBlockStorageClusterExampleId"] = @default.Apply(@default => @default.Apply(getDedicatedBlockStorageClustersResult => getDedicatedBlockStorageClustersResult.Clusters[0]?.Id)),
};
});
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(defaultAlicloudEbsDedicatedBlockStorageCluster.name())
.build());
ctx.export("alicloudEbsDedicatedBlockStorageClusterExampleId", default_.clusters()[0].id());
}
}
variables:
default:
fn::invoke:
Function: alicloud:ebs:getDedicatedBlockStorageClusters
Arguments:
ids:
- example_id
nameRegex: ${defaultAlicloudEbsDedicatedBlockStorageCluster.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.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Ids []string
- A list of Dedicated Block Storage Cluster IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- ids List<String>
- A list of Dedicated Block Storage Cluster IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- ids string[]
- A list of Dedicated Block Storage Cluster IDs.
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- 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 - File name where to save data source results (after running
pulumi preview
).
- ids List<String>
- A list of Dedicated Block Storage Cluster IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getDedicatedBlockStorageClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. Ebs. Outputs. Get Dedicated Block Storage Clusters Cluster> - 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.
- Name
Regex string - Output
File string
- Clusters
[]Get
Dedicated Block Storage Clusters Cluster - 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.
- Name
Regex string - Output
File string
- clusters
List<Get
Dedicated Block Storage Clusters Cluster> - 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.
- name
Regex String - output
File String
- clusters
Get
Dedicated Block Storage Clusters Cluster[] - 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.
- name
Regex string - output
File string
- clusters
Sequence[Get
Dedicated Block Storage Clusters Cluster] - 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.
- name
Regex String - output
File String
Supporting Types
GetDedicatedBlockStorageClustersCluster
- Available
Capacity 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.
- Create
Time string - The creation time of the resource
- Dedicated
Block stringStorage Cluster Id - The first ID of the resource
- Dedicated
Block stringStorage Cluster Name - The name of the resource
- Delivery
Capacity string - Capacity to be delivered in GB.
- Description string
- The description of the dedicated block storage cluster.
- Expired
Time string - The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.
- Id string
- Performance
Level string - Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.
- Resource
Group stringId - The ID of the resource group
- Status string
- The status of the resource
- Supported
Category string - This parameter is not supported.
- Total
Capacity 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.
- Used
Capacity string - The used (created disk) capacity of the current cluster, in GB
- Zone
Id string - The zone ID of the resource
- Available
Capacity 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.
- Create
Time string - The creation time of the resource
- Dedicated
Block stringStorage Cluster Id - The first ID of the resource
- Dedicated
Block stringStorage Cluster Name - The name of the resource
- Delivery
Capacity string - Capacity to be delivered in GB.
- Description string
- The description of the dedicated block storage cluster.
- Expired
Time string - The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.
- Id string
- Performance
Level string - Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.
- Resource
Group stringId - The ID of the resource group
- Status string
- The status of the resource
- Supported
Category string - This parameter is not supported.
- Total
Capacity 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.
- Used
Capacity string - The used (created disk) capacity of the current cluster, in GB
- Zone
Id string - The zone ID of the resource
- available
Capacity 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.
- create
Time String - The creation time of the resource
- dedicated
Block StringStorage Cluster Id - The first ID of the resource
- dedicated
Block StringStorage Cluster Name - The name of the resource
- delivery
Capacity String - Capacity to be delivered in GB.
- description String
- The description of the dedicated block storage cluster.
- expired
Time String - The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.
- id String
- performance
Level String - Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.
- resource
Group StringId - The ID of the resource group
- status String
- The status of the resource
- supported
Category String - This parameter is not supported.
- total
Capacity 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.
- used
Capacity String - The used (created disk) capacity of the current cluster, in GB
- zone
Id String - The zone ID of the resource
- available
Capacity 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.
- create
Time string - The creation time of the resource
- dedicated
Block stringStorage Cluster Id - The first ID of the resource
- dedicated
Block stringStorage Cluster Name - The name of the resource
- delivery
Capacity string - Capacity to be delivered in GB.
- description string
- The description of the dedicated block storage cluster.
- expired
Time string - The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.
- id string
- performance
Level string - Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.
- resource
Group stringId - The ID of the resource group
- status string
- The status of the resource
- supported
Category string - This parameter is not supported.
- total
Capacity 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.
- used
Capacity string - The used (created disk) capacity of the current cluster, in GB
- zone
Id 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_ strstorage_ cluster_ id - The first ID of the resource
- dedicated_
block_ strstorage_ cluster_ name - 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_ strid - 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
- available
Capacity 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.
- create
Time String - The creation time of the resource
- dedicated
Block StringStorage Cluster Id - The first ID of the resource
- dedicated
Block StringStorage Cluster Name - The name of the resource
- delivery
Capacity String - Capacity to be delivered in GB.
- description String
- The description of the dedicated block storage cluster.
- expired
Time String - The expiration time of the dedicated block storage cluster, in the Unix timestamp format, in seconds.
- id String
- performance
Level String - Cloud disk performance level, possible values:-PL0.-PL1.-PL2.-PL3.> Only valid in SupportedCategory = cloud_essd.
- resource
Group StringId - The ID of the resource group
- status String
- The status of the resource
- supported
Category String - This parameter is not supported.
- total
Capacity 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.
- used
Capacity String - The used (created disk) capacity of the current cluster, in GB
- zone
Id 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.