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.

NameRegex string

A regex string to filter api gateway groups by name.

OutputFile string
Ids []string

A list of api group IDs.

NameRegex string

A regex string to filter api gateway groups by name.

OutputFile string
ids string[]

A list of api group IDs.

nameRegex string

A regex string to filter api gateway groups by name.

outputFile 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.AliCloud.ApiGateway.Outputs.GetGroupsGroup>

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.

NameRegex string
OutputFile string
Groups []GetGroupsGroup

A list of api groups. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of api group IDs.

Names []string

A list of api group names.

NameRegex string
OutputFile string
groups GetGroupsGroup[]

A list of api groups. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of api group IDs.

names string[]

A list of api group names.

nameRegex string
outputFile string
groups List[GetGroupsGroup]

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.

BillingStatus string

Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.

CreatedTime 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.

IllegalStatus string

Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.

ModifiedTime string

Last modification time (Greenwich mean time).

Name string

API group name.

RegionId string

The ID of the region where the API group is located.

SubDomain string

Second-level domain name automatically assigned to the API group.

TrafficLimit int

Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.

BillingStatus string

Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.

CreatedTime 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.

IllegalStatus string

Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.

ModifiedTime string

Last modification time (Greenwich mean time).

Name string

API group name.

RegionId string

The ID of the region where the API group is located.

SubDomain string

Second-level domain name automatically assigned to the API group.

TrafficLimit int

Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.

billingStatus string

Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.

createdTime 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.

illegalStatus string

Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.

modifiedTime string

Last modification time (Greenwich mean time).

name string

API group name.

regionId string

The ID of the region where the API group is located.

subDomain string

Second-level domain name automatically assigned to the API group.

trafficLimit number

Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.

billingStatus str

Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.

createdTime 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.

illegalStatus str

Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.

modifiedTime str

Last modification time (Greenwich mean time).

name str

API group name.

regionId 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.

trafficLimit 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 alicloud Terraform Provider.