GetGroups
This data source provides the api groups of the current Alibaba Cloud user.
Example Usage
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; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
data_apigatway = alicloud.apigateway.get_groups(output_file="outgroups")
pulumi.export("firstGroupId", data_apigatway.groups[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const dataApigatway = pulumi.output(alicloud.apigateway.getGroups({
outputFile: "outgroups",
}, { async: true }));
export const firstGroupId = dataApigatway.groups[0].id;Using GetGroups
function getGroups(args: GetGroupsArgs, opts?: InvokeOptions): Promise<GetGroupsResult>function get_groups(ids=None, name_regex=None, output_file=None, opts=None)func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)public static class GetGroups {
public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of api group IDs.
- Name
Regex string A regex string to filter api gateway groups by name.
- Output
File string
- ids List[str]
A list of api group IDs.
- name_
regex str A regex string to filter api gateway groups by name.
- output_
file str
GetGroups Result
The following output properties are available:
- Groups
List<Pulumi.
Ali Cloud. Api Gateway. Outputs. Get Groups Group> A list of api groups. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of api group IDs.
- Names List<string>
A list of api group names.
- Name
Regex string - Output
File string
- groups
List[Get
Groups Group] A list of api groups. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of api group IDs.
- names List[str]
A list of api group names.
- name_
regex str - output_
file str
Supporting Types
GetGroupsGroup
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Billing
Status string Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.
- Created
Time string Creation time (Greenwich mean time).
- Description string
API group description.
- Id string
API group ID, which is generated by the system and globally unique.
- Illegal
Status string Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.
- Modified
Time string Last modification time (Greenwich mean time).
- Name string
API group name.
- Region
Id string The ID of the region where the API group is located.
- Sub
Domain string Second-level domain name automatically assigned to the API group.
- Traffic
Limit int Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.
- Billing
Status string Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.
- Created
Time string Creation time (Greenwich mean time).
- Description string
API group description.
- Id string
API group ID, which is generated by the system and globally unique.
- Illegal
Status string Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.
- Modified
Time string Last modification time (Greenwich mean time).
- Name string
API group name.
- Region
Id string The ID of the region where the API group is located.
- Sub
Domain string Second-level domain name automatically assigned to the API group.
- Traffic
Limit int Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.
- billing
Status string Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.
- created
Time string Creation time (Greenwich mean time).
- description string
API group description.
- id string
API group ID, which is generated by the system and globally unique.
- illegal
Status string Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.
- modified
Time string Last modification time (Greenwich mean time).
- name string
API group name.
- region
Id string The ID of the region where the API group is located.
- sub
Domain string Second-level domain name automatically assigned to the API group.
- traffic
Limit number Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.
- billing
Status str Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.
- created
Time str Creation time (Greenwich mean time).
- description str
API group description.
- id str
API group ID, which is generated by the system and globally unique.
- illegal
Status str Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.
- modified
Time str Last modification time (Greenwich mean time).
- name str
API group name.
- region
Id str The ID of the region where the API group is located.
- sub_
domain str Second-level domain name automatically assigned to the API group.
- traffic
Limit float Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.