Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.nas.PermissionGroups
Explore with Pulumi AI
Use this data source to query detailed information of nas permission groups
Example Usage
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 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
})
}
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());
}
}
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,
)])
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,
}],
});
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) PermissionGroupsResultOutput
public 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:nas:PermissionGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Permission
Groups Filter> - Filter permission groups for specified characteristics.
- Output
File string - File name where to save data source results.
- Filters
[]Permission
Groups Filter - Filter permission groups for specified characteristics.
- Output
File string - File name where to save data source results.
- filters
List<Permission
Groups Filter> - Filter permission groups for specified characteristics.
- output
File String - File name where to save data source results.
- filters
Permission
Groups Filter[] - Filter permission groups for specified characteristics.
- output
File string - File name where to save data source results.
- filters
Sequence[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.
PermissionGroups Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Groups List<PermissionGroups Permission Group> - The list of permissions groups.
- Total
Count int - The total count of nas permission groups query.
- Filters
List<Permission
Groups Filter> - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Permission
Groups []PermissionGroups Permission Group - The list of permissions groups.
- Total
Count int - The total count of nas permission groups query.
- Filters
[]Permission
Groups Filter - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- permission
Groups List<PermissionGroups Permission Group> - The list of permissions groups.
- total
Count Integer - The total count of nas permission groups query.
- filters
List<Permission
Groups Filter> - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- permission
Groups PermissionGroups Permission Group[] - The list of permissions groups.
- total
Count number - The total count of nas permission groups query.
- filters
Permission
Groups Filter[] - output
File 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[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
PermissionGroupsFilter
PermissionGroupsPermissionGroup
- 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<PermissionGroups 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<PermissionGroups 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 []PermissionGroups 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 []PermissionGroups 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<PermissionGroups 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<PermissionGroups 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 PermissionGroups 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 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.
- 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.
PermissionGroupsPermissionGroupMountPoint
- 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.
PermissionGroupsPermissionGroupPermissionRule
- 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.