alicloud.nas.AccessGroup
Explore with Pulumi AI
Provides a NAS Access Group resource. File system Access Group.
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 since v1.33.0.
Example Usage
Basic Usage
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",
});
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")
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
})
}
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 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());
}
}
resources:
foo:
type: alicloud:nas:AccessGroup
properties:
accessGroupName: terraform-example
accessGroupType: Vpc
description: terraform-example
fileSystemType: extreme
Create AccessGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessGroup(name: string, args?: AccessGroupArgs, opts?: CustomResourceOptions);
@overload
def AccessGroup(resource_name: str,
args: Optional[AccessGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudAccessGroupResource = new AliCloud.Nas.AccessGroup("alicloudAccessGroupResource", new()
{
AccessGroupName = "string",
AccessGroupType = "string",
Description = "string",
FileSystemType = "string",
});
example, err := nas.NewAccessGroup(ctx, "alicloudAccessGroupResource", &nas.AccessGroupArgs{
AccessGroupName: pulumi.String("string"),
AccessGroupType: pulumi.String("string"),
Description: pulumi.String("string"),
FileSystemType: pulumi.String("string"),
})
var alicloudAccessGroupResource = new AccessGroup("alicloudAccessGroupResource", AccessGroupArgs.builder()
.accessGroupName("string")
.accessGroupType("string")
.description("string")
.fileSystemType("string")
.build());
alicloud_access_group_resource = alicloud.nas.AccessGroup("alicloudAccessGroupResource",
access_group_name="string",
access_group_type="string",
description="string",
file_system_type="string")
const alicloudAccessGroupResource = new alicloud.nas.AccessGroup("alicloudAccessGroupResource", {
accessGroupName: "string",
accessGroupType: "string",
description: "string",
fileSystemType: "string",
});
type: alicloud:nas:AccessGroup
properties:
accessGroupName: string
accessGroupType: string
description: string
fileSystemType: string
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 - The name of the permission group.
- Access
Group stringType - Permission group types, including Vpc.
- Description string
- Permission group description information.
- File
System stringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- Name string
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- Type string
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- Access
Group stringName - The name of the permission group.
- Access
Group stringType - Permission group types, including Vpc.
- Description string
- Permission group description information.
- File
System stringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- Name string
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- Type string
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access
Group StringName - The name of the permission group.
- access
Group StringType - Permission group types, including Vpc.
- description String
- Permission group description information.
- file
System StringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name String
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type String
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access
Group stringName - The name of the permission group.
- access
Group stringType - Permission group types, including Vpc.
- description string
- Permission group description information.
- file
System stringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name string
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type string
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access_
group_ strname - The name of the permission group.
- access_
group_ strtype - Permission group types, including Vpc.
- description str
- Permission group description information.
- file_
system_ strtype - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name str
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type str
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access
Group StringName - The name of the permission group.
- access
Group StringType - Permission group types, including Vpc.
- description String
- Permission group description information.
- file
System StringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name String
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type String
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessGroup resource produces the following output properties:
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - Creation time.
- 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,
create_time: 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 - The name of the permission group.
- Access
Group stringType - Permission group types, including Vpc.
- Create
Time string - Creation time.
- Description string
- Permission group description information.
- File
System stringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- Name string
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- Type string
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- Access
Group stringName - The name of the permission group.
- Access
Group stringType - Permission group types, including Vpc.
- Create
Time string - Creation time.
- Description string
- Permission group description information.
- File
System stringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- Name string
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- Type string
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access
Group StringName - The name of the permission group.
- access
Group StringType - Permission group types, including Vpc.
- create
Time String - Creation time.
- description String
- Permission group description information.
- file
System StringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name String
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type String
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access
Group stringName - The name of the permission group.
- access
Group stringType - Permission group types, including Vpc.
- create
Time string - Creation time.
- description string
- Permission group description information.
- file
System stringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name string
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type string
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access_
group_ strname - The name of the permission group.
- access_
group_ strtype - Permission group types, including Vpc.
- create_
time str - Creation time.
- description str
- Permission group description information.
- file_
system_ strtype - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name str
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type str
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
- access
Group StringName - The name of the permission group.
- access
Group StringType - Permission group types, including Vpc.
- create
Time String - Creation time.
- description String
- Permission group description information.
- file
System StringType - File system type. Value:
- standard (default): Universal NAS
- extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
- name String
- . Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
- type String
- . Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.
Import
NAS Access Group can be imported using the id, e.g.
$ pulumi import alicloud:nas/accessGroup:AccessGroup example <access_group_name>:<file_system_type>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.