Show / Hide Table of Contents

Class GetGroups

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

Methods

View Source

InvokeAsync(GetGroupsArgs, InvokeOptions)

This data source provides the api groups of the current Alibaba Cloud user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var dataApigatway = Output.Create(AliCloud.ApiGateway.GetGroups.InvokeAsync(new AliCloud.ApiGateway.GetGroupsArgs
    {
        OutputFile = "outgroups",
    }));
    this.FirstGroupId = dataApigatway.Apply(dataApigatway => dataApigatway.Groups[0].Id);
}

[Output("firstGroupId")]
public Output<string> FirstGroupId { get; set; }
}

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

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