GetAccessGroups

This data source provides user-available access groups. Use when you can create mount points

NOTE: Available in 1.35.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ag = Output.Create(AliCloud.Nas.GetAccessGroups.InvokeAsync(new AliCloud.Nas.GetAccessGroupsArgs
        {
            Description = "tf-testAccAccessGroupsdatasource",
            NameRegex = "^foo",
            Type = "Classic",
        }));
        this.AlicloudNasAccessGroupsId = ag.Apply(ag => ag.Groups[0].Id);
    }

    [Output("alicloudNasAccessGroupsId")]
    public Output<string> AlicloudNasAccessGroupsId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ag = alicloud.nas.get_access_groups(description="tf-testAccAccessGroupsdatasource",
    name_regex="^foo",
    type="Classic")
pulumi.export("alicloudNasAccessGroupsId", ag.groups[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ag = pulumi.output(alicloud.nas.getAccessGroups({
    description: "tf-testAccAccessGroupsdatasource",
    nameRegex: "^foo",
    type: "Classic",
}, { async: true }));

export const alicloudNasAccessGroupsId = ag.groups[0].id;

Using GetAccessGroups

function getAccessGroups(args: GetAccessGroupsArgs, opts?: InvokeOptions): Promise<GetAccessGroupsResult>
function  get_access_groups(description=None, name_regex=None, output_file=None, type=None, opts=None)
func GetAccessGroups(ctx *Context, args *GetAccessGroupsArgs, opts ...InvokeOption) (*GetAccessGroupsResult, error)
public static class GetAccessGroups {
    public static Task<GetAccessGroupsResult> InvokeAsync(GetAccessGroupsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Description string

Filter results by a specific Description.

NameRegex string

A regex string to filter AccessGroups by name.

OutputFile string
Type string

Filter results by a specific AccessGroupType.

Description string

Filter results by a specific Description.

NameRegex string

A regex string to filter AccessGroups by name.

OutputFile string
Type string

Filter results by a specific AccessGroupType.

description string

Filter results by a specific Description.

nameRegex string

A regex string to filter AccessGroups by name.

outputFile string
type string

Filter results by a specific AccessGroupType.

description str

Filter results by a specific Description.

name_regex str

A regex string to filter AccessGroups by name.

output_file str
type str

Filter results by a specific AccessGroupType.

GetAccessGroups Result

The following output properties are available:

Groups List<Pulumi.AliCloud.Nas.Outputs.GetAccessGroupsGroup>

A list of AccessGroups. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of AccessGroup IDs, the value is set to names .

Names List<string>

A list of AccessGroup names.

Description string

Destription of the AccessGroup.

NameRegex string
OutputFile string
Type string

AccessGroupType of the AccessGroup.

Groups []GetAccessGroupsGroup

A list of AccessGroups. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of AccessGroup IDs, the value is set to names .

Names []string

A list of AccessGroup names.

Description string

Destription of the AccessGroup.

NameRegex string
OutputFile string
Type string

AccessGroupType of the AccessGroup.

groups GetAccessGroupsGroup[]

A list of AccessGroups. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of AccessGroup IDs, the value is set to names .

names string[]

A list of AccessGroup names.

description string

Destription of the AccessGroup.

nameRegex string
outputFile string
type string

AccessGroupType of the AccessGroup.

groups List[GetAccessGroupsGroup]

A list of AccessGroups. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of AccessGroup IDs, the value is set to names .

names List[str]

A list of AccessGroup names.

description str

Destription of the AccessGroup.

name_regex str
output_file str
type str

AccessGroupType of the AccessGroup.

Supporting Types

GetAccessGroupsGroup

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Description string

Filter results by a specific Description.

Id string

AccessGroupName of the AccessGroup.

MountTargetCount int

MountTargetCount block of the AccessGroup

RuleCount int

RuleCount of the AccessGroup.

Type string

Filter results by a specific AccessGroupType.

Description string

Filter results by a specific Description.

Id string

AccessGroupName of the AccessGroup.

MountTargetCount int

MountTargetCount block of the AccessGroup

RuleCount int

RuleCount of the AccessGroup.

Type string

Filter results by a specific AccessGroupType.

description string

Filter results by a specific Description.

id string

AccessGroupName of the AccessGroup.

mountTargetCount number

MountTargetCount block of the AccessGroup

ruleCount number

RuleCount of the AccessGroup.

type string

Filter results by a specific AccessGroupType.

description str

Filter results by a specific Description.

id str

AccessGroupName of the AccessGroup.

mountTargetCount float

MountTargetCount block of the AccessGroup

ruleCount float

RuleCount of the AccessGroup.

type str

Filter results by a specific AccessGroupType.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.