Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi
alicloud.nas.getAccessGroups
Explore with Pulumi AI
This data source provides user-available access groups. Use when you can create mount points
NOTE: Available in 1.35.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.nas.getAccessGroups({
nameRegex: "^foo",
accessGroupType: "Classic",
description: "tf-testAccAccessGroupsdatasource",
});
export const alicloudNasAccessGroupsId = example.then(example => example.groups?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.nas.get_access_groups(name_regex="^foo",
access_group_type="Classic",
description="tf-testAccAccessGroupsdatasource")
pulumi.export("alicloudNasAccessGroupsId", example.groups[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := nas.GetAccessGroups(ctx, &nas.GetAccessGroupsArgs{
NameRegex: pulumi.StringRef("^foo"),
AccessGroupType: pulumi.StringRef("Classic"),
Description: pulumi.StringRef("tf-testAccAccessGroupsdatasource"),
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudNasAccessGroupsId", example.Groups[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Nas.GetAccessGroups.Invoke(new()
{
NameRegex = "^foo",
AccessGroupType = "Classic",
Description = "tf-testAccAccessGroupsdatasource",
});
return new Dictionary<string, object?>
{
["alicloudNasAccessGroupsId"] = example.Apply(getAccessGroupsResult => getAccessGroupsResult.Groups[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.nas.inputs.GetAccessGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NasFunctions.getAccessGroups(GetAccessGroupsArgs.builder()
.nameRegex("^foo")
.accessGroupType("Classic")
.description("tf-testAccAccessGroupsdatasource")
.build());
ctx.export("alicloudNasAccessGroupsId", example.applyValue(getAccessGroupsResult -> getAccessGroupsResult.groups()[0].id()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:nas:getAccessGroups
Arguments:
nameRegex: ^foo
accessGroupType: Classic
description: tf-testAccAccessGroupsdatasource
outputs:
alicloudNasAccessGroupsId: ${example.groups[0].id}
Using getAccessGroups
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAccessGroups(args: GetAccessGroupsArgs, opts?: InvokeOptions): Promise<GetAccessGroupsResult>
function getAccessGroupsOutput(args: GetAccessGroupsOutputArgs, opts?: InvokeOptions): Output<GetAccessGroupsResult>
def get_access_groups(access_group_name: Optional[str] = None,
access_group_type: Optional[str] = None,
description: Optional[str] = None,
file_system_type: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
type: Optional[str] = None,
useutc_date_time: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetAccessGroupsResult
def get_access_groups_output(access_group_name: Optional[pulumi.Input[str]] = None,
access_group_type: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
file_system_type: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
useutc_date_time: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccessGroupsResult]
func GetAccessGroups(ctx *Context, args *GetAccessGroupsArgs, opts ...InvokeOption) (*GetAccessGroupsResult, error)
func GetAccessGroupsOutput(ctx *Context, args *GetAccessGroupsOutputArgs, opts ...InvokeOption) GetAccessGroupsResultOutput
> Note: This function is named GetAccessGroups
in the Go SDK.
public static class GetAccessGroups
{
public static Task<GetAccessGroupsResult> InvokeAsync(GetAccessGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetAccessGroupsResult> Invoke(GetAccessGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccessGroupsResult> getAccessGroups(GetAccessGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:nas/getAccessGroups:getAccessGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Access
Group stringName - The name of access group.
- Access
Group stringType - Filter results by a specific AccessGroupType.
- Description string
- Filter results by a specific Description.
- File
System stringType - The type of file system. Valid values:
standard
andextreme
. Default tostandard
. - Name
Regex string - A regex string to filter AccessGroups by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Type string
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead. - Useutc
Date boolTime - Specifies whether the time to return is in UTC. Valid values: true and false.
- Access
Group stringName - The name of access group.
- Access
Group stringType - Filter results by a specific AccessGroupType.
- Description string
- Filter results by a specific Description.
- File
System stringType - The type of file system. Valid values:
standard
andextreme
. Default tostandard
. - Name
Regex string - A regex string to filter AccessGroups by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Type string
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead. - Useutc
Date boolTime - Specifies whether the time to return is in UTC. Valid values: true and false.
- access
Group StringName - The name of access group.
- access
Group StringType - Filter results by a specific AccessGroupType.
- description String
- Filter results by a specific Description.
- file
System StringType - The type of file system. Valid values:
standard
andextreme
. Default tostandard
. - name
Regex String - A regex string to filter AccessGroups by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - type String
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead. - useutc
Date BooleanTime - Specifies whether the time to return is in UTC. Valid values: true and false.
- access
Group stringName - The name of access group.
- access
Group stringType - Filter results by a specific AccessGroupType.
- description string
- Filter results by a specific Description.
- file
System stringType - The type of file system. Valid values:
standard
andextreme
. Default tostandard
. - name
Regex string - A regex string to filter AccessGroups by name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - type string
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead. - useutc
Date booleanTime - Specifies whether the time to return is in UTC. Valid values: true and false.
- access_
group_ strname - The name of access group.
- access_
group_ strtype - Filter results by a specific AccessGroupType.
- description str
- Filter results by a specific Description.
- file_
system_ strtype - The type of file system. Valid values:
standard
andextreme
. Default tostandard
. - name_
regex str - A regex string to filter AccessGroups by name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - type str
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead. - useutc_
date_ booltime - Specifies whether the time to return is in UTC. Valid values: true and false.
- access
Group StringName - The name of access group.
- access
Group StringType - Filter results by a specific AccessGroupType.
- description String
- Filter results by a specific Description.
- file
System StringType - The type of file system. Valid values:
standard
andextreme
. Default tostandard
. - name
Regex String - A regex string to filter AccessGroups by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - type String
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead. - useutc
Date BooleanTime - Specifies whether the time to return is in UTC. Valid values: true and false.
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
. After version 1.95.0 the item value as<access_group_id>:<file_system_type>
. - Names List<string>
- A list of AccessGroup names.
- Access
Group stringName - (Available in 1.95.0+) The name of the AccessGroup.
- Access
Group stringType - (Available in 1.95.0+) The type of the AccessGroup.
- Description string
- Description of the AccessGroup.
- File
System stringType - Name
Regex string - Output
File string - Type string
- (Deprecated in v1.95.0+) AccessGroupType of the AccessGroup. The Field replace by
access_group_type
after version 1.95.0. - Useutc
Date boolTime
- 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
. After version 1.95.0 the item value as<access_group_id>:<file_system_type>
. - Names []string
- A list of AccessGroup names.
- Access
Group stringName - (Available in 1.95.0+) The name of the AccessGroup.
- Access
Group stringType - (Available in 1.95.0+) The type of the AccessGroup.
- Description string
- Description of the AccessGroup.
- File
System stringType - Name
Regex string - Output
File string - Type string
- (Deprecated in v1.95.0+) AccessGroupType of the AccessGroup. The Field replace by
access_group_type
after version 1.95.0. - Useutc
Date boolTime
- groups
List<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
. After version 1.95.0 the item value as<access_group_id>:<file_system_type>
. - names List<String>
- A list of AccessGroup names.
- access
Group StringName - (Available in 1.95.0+) The name of the AccessGroup.
- access
Group StringType - (Available in 1.95.0+) The type of the AccessGroup.
- description String
- Description of the AccessGroup.
- file
System StringType - name
Regex String - output
File String - type String
- (Deprecated in v1.95.0+) AccessGroupType of the AccessGroup. The Field replace by
access_group_type
after version 1.95.0. - useutc
Date BooleanTime
- 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
. After version 1.95.0 the item value as<access_group_id>:<file_system_type>
. - names string[]
- A list of AccessGroup names.
- access
Group stringName - (Available in 1.95.0+) The name of the AccessGroup.
- access
Group stringType - (Available in 1.95.0+) The type of the AccessGroup.
- description string
- Description of the AccessGroup.
- file
System stringType - name
Regex string - output
File string - type string
- (Deprecated in v1.95.0+) AccessGroupType of the AccessGroup. The Field replace by
access_group_type
after version 1.95.0. - useutc
Date booleanTime
- groups
Sequence[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 Sequence[str]
- A list of AccessGroup IDs, the value is set to
names
. After version 1.95.0 the item value as<access_group_id>:<file_system_type>
. - names Sequence[str]
- A list of AccessGroup names.
- access_
group_ strname - (Available in 1.95.0+) The name of the AccessGroup.
- access_
group_ strtype - (Available in 1.95.0+) The type of the AccessGroup.
- description str
- Description of the AccessGroup.
- file_
system_ strtype - name_
regex str - output_
file str - type str
- (Deprecated in v1.95.0+) AccessGroupType of the AccessGroup. The Field replace by
access_group_type
after version 1.95.0. - useutc_
date_ booltime
- groups List<Property Map>
- 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
. After version 1.95.0 the item value as<access_group_id>:<file_system_type>
. - names List<String>
- A list of AccessGroup names.
- access
Group StringName - (Available in 1.95.0+) The name of the AccessGroup.
- access
Group StringType - (Available in 1.95.0+) The type of the AccessGroup.
- description String
- Description of the AccessGroup.
- file
System StringType - name
Regex String - output
File String - type String
- (Deprecated in v1.95.0+) AccessGroupType of the AccessGroup. The Field replace by
access_group_type
after version 1.95.0. - useutc
Date BooleanTime
Supporting Types
GetAccessGroupsGroup
- Access
Group stringName - The name of access group.
- Access
Group stringType - Filter results by a specific AccessGroupType.
- Description string
- Filter results by a specific Description.
- Id string
- This ID of this AccessGroup. It is formatted to
<access_group_id>:<file_system_type>
. Before version 1.95.0, the value isaccess_group_name
. - Mount
Target intCount - MountTargetCount block of the AccessGroup
- Rule
Count int - RuleCount of the AccessGroup.
- Type string
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead.
- Access
Group stringName - The name of access group.
- Access
Group stringType - Filter results by a specific AccessGroupType.
- Description string
- Filter results by a specific Description.
- Id string
- This ID of this AccessGroup. It is formatted to
<access_group_id>:<file_system_type>
. Before version 1.95.0, the value isaccess_group_name
. - Mount
Target intCount - MountTargetCount block of the AccessGroup
- Rule
Count int - RuleCount of the AccessGroup.
- Type string
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead.
- access
Group StringName - The name of access group.
- access
Group StringType - Filter results by a specific AccessGroupType.
- description String
- Filter results by a specific Description.
- id String
- This ID of this AccessGroup. It is formatted to
<access_group_id>:<file_system_type>
. Before version 1.95.0, the value isaccess_group_name
. - mount
Target IntegerCount - MountTargetCount block of the AccessGroup
- rule
Count Integer - RuleCount of the AccessGroup.
- type String
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead.
- access
Group stringName - The name of access group.
- access
Group stringType - Filter results by a specific AccessGroupType.
- description string
- Filter results by a specific Description.
- id string
- This ID of this AccessGroup. It is formatted to
<access_group_id>:<file_system_type>
. Before version 1.95.0, the value isaccess_group_name
. - mount
Target numberCount - MountTargetCount block of the AccessGroup
- rule
Count number - RuleCount of the AccessGroup.
- type string
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead.
- access_
group_ strname - The name of access group.
- access_
group_ strtype - Filter results by a specific AccessGroupType.
- description str
- Filter results by a specific Description.
- id str
- This ID of this AccessGroup. It is formatted to
<access_group_id>:<file_system_type>
. Before version 1.95.0, the value isaccess_group_name
. - mount_
target_ intcount - MountTargetCount block of the AccessGroup
- rule_
count int - RuleCount of the AccessGroup.
- type str
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead.
- access
Group StringName - The name of access group.
- access
Group StringType - Filter results by a specific AccessGroupType.
- description String
- Filter results by a specific Description.
- id String
- This ID of this AccessGroup. It is formatted to
<access_group_id>:<file_system_type>
. Before version 1.95.0, the value isaccess_group_name
. - mount
Target NumberCount - MountTargetCount block of the AccessGroup
- rule
Count Number - RuleCount of the AccessGroup.
- type String
- Field
type
has been deprecated from version 1.95.0. Useaccess_group_type
instead.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.