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 SourceInvokeAsync(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> |