Show / Hide Table of Contents

Class GetDisks

Inheritance
System.Object
GetDisks
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetDisks

Methods

View Source

InvokeAsync(GetDisksArgs, InvokeOptions)

This data source provides the disks of the current Alibaba Cloud user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var disksDs = Output.Create(AliCloud.Ecs.GetDisks.InvokeAsync(new AliCloud.Ecs.GetDisksArgs
    {
        NameRegex = "sample_disk",
    }));
    this.FirstDiskId = disksDs.Apply(disksDs => disksDs.Disks[0].Id);
}

[Output("firstDiskId")]
public Output<string> FirstDiskId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetDisksResult> InvokeAsync(GetDisksArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetDisksArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetDisksResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.