alicloud.nas.AccessGroup
Explore with Pulumi AI
Provides a NAS Access Group resource.
In NAS, the permission group acts as a whitelist that allows you to restrict file system access. You can allow specified IP addresses or CIDR blocks to access the file system, and assign different levels of access permission to different IP addresses or CIDR blocks by adding rules to the permission group. For information about NAS Access Group and how to use it, see What is NAS Access Group
NOTE: Available in v1.33.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var foo = new AliCloud.Nas.AccessGroup("foo", new()
{
AccessGroupName = "terraform-example",
AccessGroupType = "Vpc",
Description = "terraform-example",
FileSystemType = "extreme",
});
});
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 {
_, err := nas.NewAccessGroup(ctx, "foo", &nas.AccessGroupArgs{
AccessGroupName: pulumi.String("terraform-example"),
AccessGroupType: pulumi.String("Vpc"),
Description: pulumi.String("terraform-example"),
FileSystemType: pulumi.String("extreme"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.AccessGroup;
import com.pulumi.alicloud.nas.AccessGroupArgs;
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 AccessGroup("foo", AccessGroupArgs.builder()
.accessGroupName("terraform-example")
.accessGroupType("Vpc")
.description("terraform-example")
.fileSystemType("extreme")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.nas.AccessGroup("foo",
access_group_name="terraform-example",
access_group_type="Vpc",
description="terraform-example",
file_system_type="extreme")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.nas.AccessGroup("foo", {
accessGroupName: "terraform-example",
accessGroupType: "Vpc",
description: "terraform-example",
fileSystemType: "extreme",
});
resources:
foo:
type: alicloud:nas:AccessGroup
properties:
accessGroupName: terraform-example
accessGroupType: Vpc
description: terraform-example
fileSystemType: extreme
Create AccessGroup Resource
new AccessGroup(name: string, args?: AccessGroupArgs, opts?: CustomResourceOptions);
@overload
def AccessGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_group_name: Optional[str] = None,
access_group_type: Optional[str] = None,
description: Optional[str] = None,
file_system_type: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None)
@overload
def AccessGroup(resource_name: str,
args: Optional[AccessGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewAccessGroup(ctx *Context, name string, args *AccessGroupArgs, opts ...ResourceOption) (*AccessGroup, error)
public AccessGroup(string name, AccessGroupArgs? args = null, CustomResourceOptions? opts = null)
public AccessGroup(String name, AccessGroupArgs args)
public AccessGroup(String name, AccessGroupArgs args, CustomResourceOptions options)
type: alicloud:nas:AccessGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AccessGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccessGroup resource accepts the following input properties:
- Access
Group stringName A Name of one Access Group.
- Access
Group stringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- Description string
The Access Group description.
- File
System stringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- Name string
Replaced by
access_group_name
after version 1.92.0.- Type string
Replaced by
access_group_type
after version 1.92.0.
- Access
Group stringName A Name of one Access Group.
- Access
Group stringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- Description string
The Access Group description.
- File
System stringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- Name string
Replaced by
access_group_name
after version 1.92.0.- Type string
Replaced by
access_group_type
after version 1.92.0.
- access
Group StringName A Name of one Access Group.
- access
Group StringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- description String
The Access Group description.
- file
System StringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name String
Replaced by
access_group_name
after version 1.92.0.- type String
Replaced by
access_group_type
after version 1.92.0.
- access
Group stringName A Name of one Access Group.
- access
Group stringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- description string
The Access Group description.
- file
System stringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name string
Replaced by
access_group_name
after version 1.92.0.- type string
Replaced by
access_group_type
after version 1.92.0.
- access_
group_ strname A Name of one Access Group.
- access_
group_ strtype A Type of one Access Group. Valid values:
Vpc
andClassic
.- description str
The Access Group description.
- file_
system_ strtype The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name str
Replaced by
access_group_name
after version 1.92.0.- type str
Replaced by
access_group_type
after version 1.92.0.
- access
Group StringName A Name of one Access Group.
- access
Group StringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- description String
The Access Group description.
- file
System StringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name String
Replaced by
access_group_name
after version 1.92.0.- type String
Replaced by
access_group_type
after version 1.92.0.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessGroup resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing AccessGroup Resource
Get an existing AccessGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccessGroupState, opts?: CustomResourceOptions): AccessGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_group_name: Optional[str] = None,
access_group_type: Optional[str] = None,
description: Optional[str] = None,
file_system_type: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None) -> AccessGroup
func GetAccessGroup(ctx *Context, name string, id IDInput, state *AccessGroupState, opts ...ResourceOption) (*AccessGroup, error)
public static AccessGroup Get(string name, Input<string> id, AccessGroupState? state, CustomResourceOptions? opts = null)
public static AccessGroup get(String name, Output<String> id, AccessGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Group stringName A Name of one Access Group.
- Access
Group stringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- Description string
The Access Group description.
- File
System stringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- Name string
Replaced by
access_group_name
after version 1.92.0.- Type string
Replaced by
access_group_type
after version 1.92.0.
- Access
Group stringName A Name of one Access Group.
- Access
Group stringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- Description string
The Access Group description.
- File
System stringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- Name string
Replaced by
access_group_name
after version 1.92.0.- Type string
Replaced by
access_group_type
after version 1.92.0.
- access
Group StringName A Name of one Access Group.
- access
Group StringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- description String
The Access Group description.
- file
System StringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name String
Replaced by
access_group_name
after version 1.92.0.- type String
Replaced by
access_group_type
after version 1.92.0.
- access
Group stringName A Name of one Access Group.
- access
Group stringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- description string
The Access Group description.
- file
System stringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name string
Replaced by
access_group_name
after version 1.92.0.- type string
Replaced by
access_group_type
after version 1.92.0.
- access_
group_ strname A Name of one Access Group.
- access_
group_ strtype A Type of one Access Group. Valid values:
Vpc
andClassic
.- description str
The Access Group description.
- file_
system_ strtype The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name str
Replaced by
access_group_name
after version 1.92.0.- type str
Replaced by
access_group_type
after version 1.92.0.
- access
Group StringName A Name of one Access Group.
- access
Group StringType A Type of one Access Group. Valid values:
Vpc
andClassic
.- description String
The Access Group description.
- file
System StringType The type of file system. Valid values:
standard
andextreme
. Default tostandard
. Note that the extreme only support Vpc Network.- name String
Replaced by
access_group_name
after version 1.92.0.- type String
Replaced by
access_group_type
after version 1.92.0.
Import
NAS Access Group can be imported using the id, e.g.
$ pulumi import alicloud:nas/accessGroup:AccessGroup foo tf_testAccNasConfig:standard
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.