Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.nas.getPermissionGroups
Explore with Pulumi AI
Use this data source to query detailed information of nas permission groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.nas.PermissionGroup("foo", {
permissionGroupName: "acc-test",
description: "acctest",
permissionRules: [
{
cidrIp: "*",
rwMode: "RW",
useMode: "All_squash",
},
{
cidrIp: "192.168.0.0",
rwMode: "RO",
useMode: "All_squash",
},
],
});
const default = volcengine.nas.getPermissionGroupsOutput({
filters: [{
key: "PermissionGroupId",
value: foo.id,
}],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.nas.PermissionGroup("foo",
permission_group_name="acc-test",
description="acctest",
permission_rules=[
volcengine.nas.PermissionGroupPermissionRuleArgs(
cidr_ip="*",
rw_mode="RW",
use_mode="All_squash",
),
volcengine.nas.PermissionGroupPermissionRuleArgs(
cidr_ip="192.168.0.0",
rw_mode="RO",
use_mode="All_squash",
),
])
default = volcengine.nas.get_permission_groups_output(filters=[volcengine.nas.GetPermissionGroupsFilterArgs(
key="PermissionGroupId",
value=foo.id,
)])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := nas.NewPermissionGroup(ctx, "foo", &nas.PermissionGroupArgs{
PermissionGroupName: pulumi.String("acc-test"),
Description: pulumi.String("acctest"),
PermissionRules: nas.PermissionGroupPermissionRuleArray{
&nas.PermissionGroupPermissionRuleArgs{
CidrIp: pulumi.String("*"),
RwMode: pulumi.String("RW"),
UseMode: pulumi.String("All_squash"),
},
&nas.PermissionGroupPermissionRuleArgs{
CidrIp: pulumi.String("192.168.0.0"),
RwMode: pulumi.String("RO"),
UseMode: pulumi.String("All_squash"),
},
},
})
if err != nil {
return err
}
_ = nas.GetPermissionGroupsOutput(ctx, nas.GetPermissionGroupsOutputArgs{
Filters: nas.GetPermissionGroupsFilterArray{
&nas.GetPermissionGroupsFilterArgs{
Key: pulumi.String("PermissionGroupId"),
Value: foo.ID(),
},
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Nas.PermissionGroup("foo", new()
{
PermissionGroupName = "acc-test",
Description = "acctest",
PermissionRules = new[]
{
new Volcengine.Nas.Inputs.PermissionGroupPermissionRuleArgs
{
CidrIp = "*",
RwMode = "RW",
UseMode = "All_squash",
},
new Volcengine.Nas.Inputs.PermissionGroupPermissionRuleArgs
{
CidrIp = "192.168.0.0",
RwMode = "RO",
UseMode = "All_squash",
},
},
});
var @default = Volcengine.Nas.GetPermissionGroups.Invoke(new()
{
Filters = new[]
{
new Volcengine.Nas.Inputs.GetPermissionGroupsFilterInputArgs
{
Key = "PermissionGroupId",
Value = foo.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.nas.PermissionGroup;
import com.pulumi.volcengine.nas.PermissionGroupArgs;
import com.pulumi.volcengine.nas.inputs.PermissionGroupPermissionRuleArgs;
import com.pulumi.volcengine.nas.NasFunctions;
import com.pulumi.volcengine.nas.inputs.GetPermissionGroupsArgs;
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) {
var foo = new PermissionGroup("foo", PermissionGroupArgs.builder()
.permissionGroupName("acc-test")
.description("acctest")
.permissionRules(
PermissionGroupPermissionRuleArgs.builder()
.cidrIp("*")
.rwMode("RW")
.useMode("All_squash")
.build(),
PermissionGroupPermissionRuleArgs.builder()
.cidrIp("192.168.0.0")
.rwMode("RO")
.useMode("All_squash")
.build())
.build());
final var default = NasFunctions.getPermissionGroups(GetPermissionGroupsArgs.builder()
.filters(GetPermissionGroupsFilterArgs.builder()
.key("PermissionGroupId")
.value(foo.id())
.build())
.build());
}
}
resources:
foo:
type: volcengine:nas:PermissionGroup
properties:
permissionGroupName: acc-test
description: acctest
permissionRules:
- cidrIp: '*'
rwMode: RW
useMode: All_squash
- cidrIp: 192.168.0.0
rwMode: RO
useMode: All_squash
variables:
default:
fn::invoke:
Function: volcengine:nas:getPermissionGroups
Arguments:
filters:
- key: PermissionGroupId
value: ${foo.id}
Using getPermissionGroups
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 getPermissionGroups(args: GetPermissionGroupsArgs, opts?: InvokeOptions): Promise<GetPermissionGroupsResult>
function getPermissionGroupsOutput(args: GetPermissionGroupsOutputArgs, opts?: InvokeOptions): Output<GetPermissionGroupsResult>
def get_permission_groups(filters: Optional[Sequence[GetPermissionGroupsFilter]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPermissionGroupsResult
def get_permission_groups_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPermissionGroupsFilterArgs]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPermissionGroupsResult]
func GetPermissionGroups(ctx *Context, args *GetPermissionGroupsArgs, opts ...InvokeOption) (*GetPermissionGroupsResult, error)
func GetPermissionGroupsOutput(ctx *Context, args *GetPermissionGroupsOutputArgs, opts ...InvokeOption) GetPermissionGroupsResultOutput
> Note: This function is named GetPermissionGroups
in the Go SDK.
public static class GetPermissionGroups
{
public static Task<GetPermissionGroupsResult> InvokeAsync(GetPermissionGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetPermissionGroupsResult> Invoke(GetPermissionGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPermissionGroupsResult> getPermissionGroups(GetPermissionGroupsArgs args, InvokeOptions options)
public static Output<GetPermissionGroupsResult> getPermissionGroups(GetPermissionGroupsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:nas/getPermissionGroups:getPermissionGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Permission Groups Filter> - Filter permission groups for specified characteristics.
- Output
File string - File name where to save data source results.
- Filters
[]Get
Permission Groups Filter - Filter permission groups for specified characteristics.
- Output
File string - File name where to save data source results.
- filters
List<Get
Permission Groups Filter> - Filter permission groups for specified characteristics.
- output
File String - File name where to save data source results.
- filters
Get
Permission Groups Filter[] - Filter permission groups for specified characteristics.
- output
File string - File name where to save data source results.
- filters
Sequence[Get
Permission Groups Filter] - Filter permission groups for specified characteristics.
- output_
file str - File name where to save data source results.
- filters List<Property Map>
- Filter permission groups for specified characteristics.
- output
File String - File name where to save data source results.
getPermissionGroups Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Groups List<GetPermission Groups Permission Group> - The list of permissions groups.
- Total
Count int - The total count of nas permission groups query.
- Filters
List<Get
Permission Groups Filter> - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Groups []GetPermission Groups Permission Group - The list of permissions groups.
- Total
Count int - The total count of nas permission groups query.
- Filters
[]Get
Permission Groups Filter - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Groups List<GetPermission Groups Permission Group> - The list of permissions groups.
- total
Count Integer - The total count of nas permission groups query.
- filters
List<Get
Permission Groups Filter> - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- permission
Groups GetPermission Groups Permission Group[] - The list of permissions groups.
- total
Count number - The total count of nas permission groups query.
- filters
Get
Permission Groups Filter[] - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- permission_
groups Sequence[GetPermission Groups Permission Group] - The list of permissions groups.
- total_
count int - The total count of nas permission groups query.
- filters
Sequence[Get
Permission Groups Filter] - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Groups List<Property Map> - The list of permissions groups.
- total
Count Number - The total count of nas permission groups query.
- filters List<Property Map>
- output
File String
Supporting Types
GetPermissionGroupsFilter
GetPermissionGroupsPermissionGroup
- Create
Time string - The creation time of the permission group.
- Description string
- The description of the permission group.
- File
System intCount - The number of the file system.
- File
System stringType - The file system type of the permission group.
- Mount
Points List<GetPermission Groups Permission Group Mount Point> - The list of the mount point.
- Permission
Group stringId - The id of the permission group.
- Permission
Group stringName - The name of the permission group.
- Permission
Rule intCount - The number of the permission rule.
- Permission
Rules List<GetPermission Groups Permission Group Permission Rule> - The list of permissions rules.
- Create
Time string - The creation time of the permission group.
- Description string
- The description of the permission group.
- File
System intCount - The number of the file system.
- File
System stringType - The file system type of the permission group.
- Mount
Points []GetPermission Groups Permission Group Mount Point - The list of the mount point.
- Permission
Group stringId - The id of the permission group.
- Permission
Group stringName - The name of the permission group.
- Permission
Rule intCount - The number of the permission rule.
- Permission
Rules []GetPermission Groups Permission Group Permission Rule - The list of permissions rules.
- create
Time String - The creation time of the permission group.
- description String
- The description of the permission group.
- file
System IntegerCount - The number of the file system.
- file
System StringType - The file system type of the permission group.
- mount
Points List<GetPermission Groups Permission Group Mount Point> - The list of the mount point.
- permission
Group StringId - The id of the permission group.
- permission
Group StringName - The name of the permission group.
- permission
Rule IntegerCount - The number of the permission rule.
- permission
Rules List<GetPermission Groups Permission Group Permission Rule> - The list of permissions rules.
- create
Time string - The creation time of the permission group.
- description string
- The description of the permission group.
- file
System numberCount - The number of the file system.
- file
System stringType - The file system type of the permission group.
- mount
Points GetPermission Groups Permission Group Mount Point[] - The list of the mount point.
- permission
Group stringId - The id of the permission group.
- permission
Group stringName - The name of the permission group.
- permission
Rule numberCount - The number of the permission rule.
- permission
Rules GetPermission Groups Permission Group Permission Rule[] - The list of permissions rules.
- create_
time str - The creation time of the permission group.
- description str
- The description of the permission group.
- file_
system_ intcount - The number of the file system.
- file_
system_ strtype - The file system type of the permission group.
- mount_
points Sequence[GetPermission Groups Permission Group Mount Point] - The list of the mount point.
- permission_
group_ strid - The id of the permission group.
- permission_
group_ strname - The name of the permission group.
- permission_
rule_ intcount - The number of the permission rule.
- permission_
rules Sequence[GetPermission Groups Permission Group Permission Rule] - The list of permissions rules.
- create
Time String - The creation time of the permission group.
- description String
- The description of the permission group.
- file
System NumberCount - The number of the file system.
- file
System StringType - The file system type of the permission group.
- mount
Points List<Property Map> - The list of the mount point.
- permission
Group StringId - The id of the permission group.
- permission
Group StringName - The name of the permission group.
- permission
Rule NumberCount - The number of the permission rule.
- permission
Rules List<Property Map> - The list of permissions rules.
GetPermissionGroupsPermissionGroupMountPoint
- File
System stringId - The id of the file system.
- Mount
Point stringId - The id of the mount point.
- Mount
Point stringName - The name of the mount point.
- File
System stringId - The id of the file system.
- Mount
Point stringId - The id of the mount point.
- Mount
Point stringName - The name of the mount point.
- file
System StringId - The id of the file system.
- mount
Point StringId - The id of the mount point.
- mount
Point StringName - The name of the mount point.
- file
System stringId - The id of the file system.
- mount
Point stringId - The id of the mount point.
- mount
Point stringName - The name of the mount point.
- file_
system_ strid - The id of the file system.
- mount_
point_ strid - The id of the mount point.
- mount_
point_ strname - The name of the mount point.
- file
System StringId - The id of the file system.
- mount
Point StringId - The id of the mount point.
- mount
Point StringName - The name of the mount point.
GetPermissionGroupsPermissionGroupPermissionRule
- Cidr
Ip string - Client IP addresses that are allowed access.
- Permission
Rule stringId - The id of the permission rule.
- Rw
Mode string - Permission group read and write rules.
- User
Mode string - Permission group user permissions.
- Cidr
Ip string - Client IP addresses that are allowed access.
- Permission
Rule stringId - The id of the permission rule.
- Rw
Mode string - Permission group read and write rules.
- User
Mode string - Permission group user permissions.
- cidr
Ip String - Client IP addresses that are allowed access.
- permission
Rule StringId - The id of the permission rule.
- rw
Mode String - Permission group read and write rules.
- user
Mode String - Permission group user permissions.
- cidr
Ip string - Client IP addresses that are allowed access.
- permission
Rule stringId - The id of the permission rule.
- rw
Mode string - Permission group read and write rules.
- user
Mode string - Permission group user permissions.
- cidr_
ip str - Client IP addresses that are allowed access.
- permission_
rule_ strid - The id of the permission rule.
- rw_
mode str - Permission group read and write rules.
- user_
mode str - Permission group user permissions.
- cidr
Ip String - Client IP addresses that are allowed access.
- permission
Rule StringId - The id of the permission rule.
- rw
Mode String - Permission group read and write rules.
- user
Mode String - Permission group user permissions.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.