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.
- Name
Regex string A regex string to filter AccessGroups by name.
- Output
File string - Type string
Filter results by a specific AccessGroupType.
- Description string
Filter results by a specific Description.
- Name
Regex string A regex string to filter AccessGroups by name.
- Output
File string - Type string
Filter results by a specific AccessGroupType.
- description string
Filter results by a specific Description.
- name
Regex string A regex string to filter AccessGroups by name.
- output
File 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.
Ali Cloud. Nas. Outputs. Get Access Groups Group> 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.
- Name
Regex string - Output
File string - Type string
AccessGroupType of the AccessGroup.
- Groups
[]Get
Access Groups Group 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.
- Name
Regex string - Output
File string - Type string
AccessGroupType of the AccessGroup.
- groups
Get
Access Groups Group[] 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.
- name
Regex string - output
File string - type string
AccessGroupType of the AccessGroup.
- groups
List[Get
Access Groups Group] 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.
- Mount
Target intCount MountTargetCount block of the AccessGroup
- Rule
Count 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.
- Mount
Target intCount MountTargetCount block of the AccessGroup
- Rule
Count 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.
- mount
Target numberCount MountTargetCount block of the AccessGroup
- rule
Count 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.
- mount
Target floatCount MountTargetCount block of the AccessGroup
- rule
Count 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
alicloudTerraform Provider.