Show / Hide Table of Contents

Class GetAttachments

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

Methods

View Source

InvokeAsync(GetAttachmentsArgs, InvokeOptions)

This data source provides the server load balancer attachments of the current Alibaba Cloud user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var sampleDs = Output.Create(AliCloud.Slb.GetAttachments.InvokeAsync(new AliCloud.Slb.GetAttachmentsArgs
    {
        LoadBalancerId = alicloud_slb.Sample_slb.Id,
    }));
    this.FirstSlbAttachmentInstanceId = sampleDs.Apply(sampleDs => sampleDs.SlbAttachments[0].InstanceId);
}

[Output("firstSlbAttachmentInstanceId")]
public Output<string> FirstSlbAttachmentInstanceId { get; set; }
}

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

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