Show / Hide Table of Contents

Class GetInstanceAttachments

Inheritance
System.Object
GetInstanceAttachments
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.Oss
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetInstanceAttachments

Methods

View Source

InvokeAsync(GetInstanceAttachmentsArgs, InvokeOptions)

This data source provides the ots instance attachments of the current Alibaba Cloud user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var attachmentsDs = Output.Create(AliCloud.Oss.GetInstanceAttachments.InvokeAsync(new AliCloud.Oss.GetInstanceAttachmentsArgs
    {
        InstanceName = "sample-instance",
        NameRegex = "testvpc",
        OutputFile = "attachments.txt",
    }));
    this.FirstOtsAttachmentId = attachmentsDs.Apply(attachmentsDs => attachmentsDs.Attachments[0].Id);
}

[Output("firstOtsAttachmentId")]
public Output<string> FirstOtsAttachmentId { get; set; }
}

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

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