Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.nas.PermissionGroups
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.PermissionGroupsOutput({
    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.permission_groups_output(filters=[volcengine.nas.PermissionGroupsFilterArgs(
    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.PermissionGroupsOutput(ctx, nas.PermissionGroupsOutputArgs{
			Filters: nas.PermissionGroupsFilterArray{
				&nas.PermissionGroupsFilterArgs{
					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.PermissionGroups.Invoke(new()
    {
        Filters = new[]
        {
            new Volcengine.Nas.Inputs.PermissionGroupsFilterInputArgs
            {
                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.PermissionGroupsArgs;
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.PermissionGroups(PermissionGroupsArgs.builder()
            .filters(PermissionGroupsFilterArgs.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:PermissionGroups
      Arguments:
        filters:
          - key: PermissionGroupId
            value: ${foo.id}
Using PermissionGroups
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 permissionGroups(args: PermissionGroupsArgs, opts?: InvokeOptions): Promise<PermissionGroupsResult>
function permissionGroupsOutput(args: PermissionGroupsOutputArgs, opts?: InvokeOptions): Output<PermissionGroupsResult>def permission_groups(filters: Optional[Sequence[PermissionGroupsFilter]] = None,
                      output_file: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> PermissionGroupsResult
def permission_groups_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[PermissionGroupsFilterArgs]]]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[PermissionGroupsResult]func PermissionGroups(ctx *Context, args *PermissionGroupsArgs, opts ...InvokeOption) (*PermissionGroupsResult, error)
func PermissionGroupsOutput(ctx *Context, args *PermissionGroupsOutputArgs, opts ...InvokeOption) PermissionGroupsResultOutputpublic static class PermissionGroups 
{
    public static Task<PermissionGroupsResult> InvokeAsync(PermissionGroupsArgs args, InvokeOptions? opts = null)
    public static Output<PermissionGroupsResult> Invoke(PermissionGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<PermissionGroupsResult> permissionGroups(PermissionGroupsArgs args, InvokeOptions options)
public static Output<PermissionGroupsResult> permissionGroups(PermissionGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:nas:PermissionGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<PermissionGroups Filter> 
- Filter permission groups for specified characteristics.
- OutputFile string
- File name where to save data source results.
- Filters
[]PermissionGroups Filter 
- Filter permission groups for specified characteristics.
- OutputFile string
- File name where to save data source results.
- filters
List<PermissionGroups Filter> 
- Filter permission groups for specified characteristics.
- outputFile String
- File name where to save data source results.
- filters
PermissionGroups Filter[] 
- Filter permission groups for specified characteristics.
- outputFile string
- File name where to save data source results.
- filters
Sequence[PermissionGroups 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.
- outputFile String
- File name where to save data source results.
PermissionGroups Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- PermissionGroups List<PermissionGroups Permission Group> 
- The list of permissions groups.
- TotalCount int
- The total count of nas permission groups query.
- Filters
List<PermissionGroups Filter> 
- OutputFile string
- Id string
- The provider-assigned unique ID for this managed resource.
- PermissionGroups []PermissionGroups Permission Group 
- The list of permissions groups.
- TotalCount int
- The total count of nas permission groups query.
- Filters
[]PermissionGroups Filter 
- OutputFile string
- id String
- The provider-assigned unique ID for this managed resource.
- permissionGroups List<PermissionGroups Permission Group> 
- The list of permissions groups.
- totalCount Integer
- The total count of nas permission groups query.
- filters
List<PermissionGroups Filter> 
- outputFile String
- id string
- The provider-assigned unique ID for this managed resource.
- permissionGroups PermissionGroups Permission Group[] 
- The list of permissions groups.
- totalCount number
- The total count of nas permission groups query.
- filters
PermissionGroups Filter[] 
- outputFile string
- id str
- The provider-assigned unique ID for this managed resource.
- permission_groups Sequence[PermissionGroups Permission Group] 
- The list of permissions groups.
- total_count int
- The total count of nas permission groups query.
- filters
Sequence[PermissionGroups Filter] 
- output_file str
- id String
- The provider-assigned unique ID for this managed resource.
- permissionGroups List<Property Map>
- The list of permissions groups.
- totalCount Number
- The total count of nas permission groups query.
- filters List<Property Map>
- outputFile String
Supporting Types
PermissionGroupsFilter  
PermissionGroupsPermissionGroup   
- CreateTime string
- The creation time of the permission group.
- Description string
- The description of the permission group.
- FileSystem intCount 
- The number of the file system.
- FileSystem stringType 
- The file system type of the permission group.
- MountPoints List<PermissionGroups Permission Group Mount Point> 
- The list of the mount point.
- PermissionGroup stringId 
- The id of the permission group.
- PermissionGroup stringName 
- The name of the permission group.
- PermissionRule intCount 
- The number of the permission rule.
- PermissionRules List<PermissionGroups Permission Group Permission Rule> 
- The list of permissions rules.
- CreateTime string
- The creation time of the permission group.
- Description string
- The description of the permission group.
- FileSystem intCount 
- The number of the file system.
- FileSystem stringType 
- The file system type of the permission group.
- MountPoints []PermissionGroups Permission Group Mount Point 
- The list of the mount point.
- PermissionGroup stringId 
- The id of the permission group.
- PermissionGroup stringName 
- The name of the permission group.
- PermissionRule intCount 
- The number of the permission rule.
- PermissionRules []PermissionGroups Permission Group Permission Rule 
- The list of permissions rules.
- createTime String
- The creation time of the permission group.
- description String
- The description of the permission group.
- fileSystem IntegerCount 
- The number of the file system.
- fileSystem StringType 
- The file system type of the permission group.
- mountPoints List<PermissionGroups Permission Group Mount Point> 
- The list of the mount point.
- permissionGroup StringId 
- The id of the permission group.
- permissionGroup StringName 
- The name of the permission group.
- permissionRule IntegerCount 
- The number of the permission rule.
- permissionRules List<PermissionGroups Permission Group Permission Rule> 
- The list of permissions rules.
- createTime string
- The creation time of the permission group.
- description string
- The description of the permission group.
- fileSystem numberCount 
- The number of the file system.
- fileSystem stringType 
- The file system type of the permission group.
- mountPoints PermissionGroups Permission Group Mount Point[] 
- The list of the mount point.
- permissionGroup stringId 
- The id of the permission group.
- permissionGroup stringName 
- The name of the permission group.
- permissionRule numberCount 
- The number of the permission rule.
- permissionRules PermissionGroups 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[PermissionGroups 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[PermissionGroups Permission Group Permission Rule] 
- The list of permissions rules.
- createTime String
- The creation time of the permission group.
- description String
- The description of the permission group.
- fileSystem NumberCount 
- The number of the file system.
- fileSystem StringType 
- The file system type of the permission group.
- mountPoints List<Property Map>
- The list of the mount point.
- permissionGroup StringId 
- The id of the permission group.
- permissionGroup StringName 
- The name of the permission group.
- permissionRule NumberCount 
- The number of the permission rule.
- permissionRules List<Property Map>
- The list of permissions rules.
PermissionGroupsPermissionGroupMountPoint     
- FileSystem stringId 
- The id of the file system.
- MountPoint stringId 
- The id of the mount point.
- MountPoint stringName 
- The name of the mount point.
- FileSystem stringId 
- The id of the file system.
- MountPoint stringId 
- The id of the mount point.
- MountPoint stringName 
- The name of the mount point.
- fileSystem StringId 
- The id of the file system.
- mountPoint StringId 
- The id of the mount point.
- mountPoint StringName 
- The name of the mount point.
- fileSystem stringId 
- The id of the file system.
- mountPoint stringId 
- The id of the mount point.
- mountPoint 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.
- fileSystem StringId 
- The id of the file system.
- mountPoint StringId 
- The id of the mount point.
- mountPoint StringName 
- The name of the mount point.
PermissionGroupsPermissionGroupPermissionRule     
- CidrIp string
- Client IP addresses that are allowed access.
- PermissionRule stringId 
- The id of the permission rule.
- RwMode string
- Permission group read and write rules.
- UserMode string
- Permission group user permissions.
- CidrIp string
- Client IP addresses that are allowed access.
- PermissionRule stringId 
- The id of the permission rule.
- RwMode string
- Permission group read and write rules.
- UserMode string
- Permission group user permissions.
- cidrIp String
- Client IP addresses that are allowed access.
- permissionRule StringId 
- The id of the permission rule.
- rwMode String
- Permission group read and write rules.
- userMode String
- Permission group user permissions.
- cidrIp string
- Client IP addresses that are allowed access.
- permissionRule stringId 
- The id of the permission rule.
- rwMode string
- Permission group read and write rules.
- userMode 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.
- cidrIp String
- Client IP addresses that are allowed access.
- permissionRule StringId 
- The id of the permission rule.
- rwMode String
- Permission group read and write rules.
- userMode String
- Permission group user permissions.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.