Provides a File Storage (NAS) Protocol Service resource.
For information about File Storage (NAS) Protocol Service and how to use it, see What is Protocol Service.
NOTE: Available since v1.267.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const example = new alicloud.vpc.Network("example", {
isDefault: false,
cidrBlock: "192.168.0.0/16",
vpcName: "nas-examplee1031-vpc",
enableIpv6: true,
});
const exampleSwitch = new alicloud.vpc.Switch("example", {
isDefault: false,
vpcId: example.id,
zoneId: "cn-beijing-i",
cidrBlock: "192.168.2.0/24",
vswitchName: "nas-examplee1031-vsw1sdw-F",
});
const exampleFileSystem = new alicloud.nas.FileSystem("example", {
description: name,
storageType: "advance_100",
zoneId: "cn-beijing-i",
encryptType: 0,
vpcId: example.id,
capacity: 3600,
protocolType: "cpfs",
vswitchId: exampleSwitch.id,
fileSystemType: "cpfs",
});
const _default = new alicloud.nas.ProtocolService("default", {
vpcId: example.id,
protocolType: "NFS",
protocolSpec: "General",
vswitchId: exampleSwitch.id,
dryRun: false,
fileSystemId: exampleFileSystem.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
example = alicloud.vpc.Network("example",
is_default=False,
cidr_block="192.168.0.0/16",
vpc_name="nas-examplee1031-vpc",
enable_ipv6=True)
example_switch = alicloud.vpc.Switch("example",
is_default=False,
vpc_id=example.id,
zone_id="cn-beijing-i",
cidr_block="192.168.2.0/24",
vswitch_name="nas-examplee1031-vsw1sdw-F")
example_file_system = alicloud.nas.FileSystem("example",
description=name,
storage_type="advance_100",
zone_id="cn-beijing-i",
encrypt_type=0,
vpc_id=example.id,
capacity=3600,
protocol_type="cpfs",
vswitch_id=example_switch.id,
file_system_type="cpfs")
default = alicloud.nas.ProtocolService("default",
vpc_id=example.id,
protocol_type="NFS",
protocol_spec="General",
vswitch_id=example_switch.id,
dry_run=False,
file_system_id=example_file_system.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
IsDefault: pulumi.Bool(false),
CidrBlock: pulumi.String("192.168.0.0/16"),
VpcName: pulumi.String("nas-examplee1031-vpc"),
EnableIpv6: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
IsDefault: pulumi.Bool(false),
VpcId: example.ID(),
ZoneId: pulumi.String("cn-beijing-i"),
CidrBlock: pulumi.String("192.168.2.0/24"),
VswitchName: pulumi.String("nas-examplee1031-vsw1sdw-F"),
})
if err != nil {
return err
}
exampleFileSystem, err := nas.NewFileSystem(ctx, "example", &nas.FileSystemArgs{
Description: pulumi.String(name),
StorageType: pulumi.String("advance_100"),
ZoneId: pulumi.String("cn-beijing-i"),
EncryptType: pulumi.Int(0),
VpcId: example.ID(),
Capacity: pulumi.Int(3600),
ProtocolType: pulumi.String("cpfs"),
VswitchId: exampleSwitch.ID(),
FileSystemType: pulumi.String("cpfs"),
})
if err != nil {
return err
}
_, err = nas.NewProtocolService(ctx, "default", &nas.ProtocolServiceArgs{
VpcId: example.ID(),
ProtocolType: pulumi.String("NFS"),
ProtocolSpec: pulumi.String("General"),
VswitchId: exampleSwitch.ID(),
DryRun: pulumi.Bool(false),
FileSystemId: exampleFileSystem.ID(),
})
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 config = new Config();
var name = config.Get("name") ?? "terraform-example";
var example = new AliCloud.Vpc.Network("example", new()
{
IsDefault = false,
CidrBlock = "192.168.0.0/16",
VpcName = "nas-examplee1031-vpc",
EnableIpv6 = true,
});
var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
{
IsDefault = false,
VpcId = example.Id,
ZoneId = "cn-beijing-i",
CidrBlock = "192.168.2.0/24",
VswitchName = "nas-examplee1031-vsw1sdw-F",
});
var exampleFileSystem = new AliCloud.Nas.FileSystem("example", new()
{
Description = name,
StorageType = "advance_100",
ZoneId = "cn-beijing-i",
EncryptType = 0,
VpcId = example.Id,
Capacity = 3600,
ProtocolType = "cpfs",
VswitchId = exampleSwitch.Id,
FileSystemType = "cpfs",
});
var @default = new AliCloud.Nas.ProtocolService("default", new()
{
VpcId = example.Id,
ProtocolType = "NFS",
ProtocolSpec = "General",
VswitchId = exampleSwitch.Id,
DryRun = false,
FileSystemId = exampleFileSystem.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.ProtocolService;
import com.pulumi.alicloud.nas.ProtocolServiceArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var example = new Network("example", NetworkArgs.builder()
.isDefault(false)
.cidrBlock("192.168.0.0/16")
.vpcName("nas-examplee1031-vpc")
.enableIpv6(true)
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.isDefault(false)
.vpcId(example.id())
.zoneId("cn-beijing-i")
.cidrBlock("192.168.2.0/24")
.vswitchName("nas-examplee1031-vsw1sdw-F")
.build());
var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
.description(name)
.storageType("advance_100")
.zoneId("cn-beijing-i")
.encryptType(0)
.vpcId(example.id())
.capacity(3600)
.protocolType("cpfs")
.vswitchId(exampleSwitch.id())
.fileSystemType("cpfs")
.build());
var default_ = new ProtocolService("default", ProtocolServiceArgs.builder()
.vpcId(example.id())
.protocolType("NFS")
.protocolSpec("General")
.vswitchId(exampleSwitch.id())
.dryRun(false)
.fileSystemId(exampleFileSystem.id())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
example:
type: alicloud:vpc:Network
properties:
isDefault: false
cidrBlock: 192.168.0.0/16
vpcName: nas-examplee1031-vpc
enableIpv6: true
exampleSwitch:
type: alicloud:vpc:Switch
name: example
properties:
isDefault: false
vpcId: ${example.id}
zoneId: cn-beijing-i
cidrBlock: 192.168.2.0/24
vswitchName: nas-examplee1031-vsw1sdw-F
exampleFileSystem:
type: alicloud:nas:FileSystem
name: example
properties:
description: ${name}
storageType: advance_100
zoneId: cn-beijing-i
encryptType: '0'
vpcId: ${example.id}
capacity: '3600'
protocolType: cpfs
vswitchId: ${exampleSwitch.id}
fileSystemType: cpfs
default:
type: alicloud:nas:ProtocolService
properties:
vpcId: ${example.id}
protocolType: NFS
protocolSpec: General
vswitchId: ${exampleSwitch.id}
dryRun: false
fileSystemId: ${exampleFileSystem.id}
📚 Need more examples? VIEW MORE EXAMPLES
Create ProtocolService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProtocolService(name: string, args: ProtocolServiceArgs, opts?: CustomResourceOptions);@overload
def ProtocolService(resource_name: str,
args: ProtocolServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProtocolService(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
protocol_spec: Optional[str] = None,
protocol_type: Optional[str] = None,
description: Optional[str] = None,
dry_run: Optional[bool] = None,
protocol_throughput: Optional[int] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None)func NewProtocolService(ctx *Context, name string, args ProtocolServiceArgs, opts ...ResourceOption) (*ProtocolService, error)public ProtocolService(string name, ProtocolServiceArgs args, CustomResourceOptions? opts = null)
public ProtocolService(String name, ProtocolServiceArgs args)
public ProtocolService(String name, ProtocolServiceArgs args, CustomResourceOptions options)
type: alicloud:nas:ProtocolService
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 ProtocolServiceArgs
- 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 ProtocolServiceArgs
- 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 ProtocolServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProtocolServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProtocolServiceArgs
- 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 protocolServiceResource = new AliCloud.Nas.ProtocolService("protocolServiceResource", new()
{
FileSystemId = "string",
ProtocolSpec = "string",
ProtocolType = "string",
Description = "string",
DryRun = false,
ProtocolThroughput = 0,
VpcId = "string",
VswitchId = "string",
});
example, err := nas.NewProtocolService(ctx, "protocolServiceResource", &nas.ProtocolServiceArgs{
FileSystemId: pulumi.String("string"),
ProtocolSpec: pulumi.String("string"),
ProtocolType: pulumi.String("string"),
Description: pulumi.String("string"),
DryRun: pulumi.Bool(false),
ProtocolThroughput: pulumi.Int(0),
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
})
var protocolServiceResource = new ProtocolService("protocolServiceResource", ProtocolServiceArgs.builder()
.fileSystemId("string")
.protocolSpec("string")
.protocolType("string")
.description("string")
.dryRun(false)
.protocolThroughput(0)
.vpcId("string")
.vswitchId("string")
.build());
protocol_service_resource = alicloud.nas.ProtocolService("protocolServiceResource",
file_system_id="string",
protocol_spec="string",
protocol_type="string",
description="string",
dry_run=False,
protocol_throughput=0,
vpc_id="string",
vswitch_id="string")
const protocolServiceResource = new alicloud.nas.ProtocolService("protocolServiceResource", {
fileSystemId: "string",
protocolSpec: "string",
protocolType: "string",
description: "string",
dryRun: false,
protocolThroughput: 0,
vpcId: "string",
vswitchId: "string",
});
type: alicloud:nas:ProtocolService
properties:
description: string
dryRun: false
fileSystemId: string
protocolSpec: string
protocolThroughput: 0
protocolType: string
vpcId: string
vswitchId: string
ProtocolService Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProtocolService resource accepts the following input properties:
- File
System stringId - The ID of the file system.
- Protocol
Spec string - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- Protocol
Type string The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- Description string
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- Dry
Run bool - Protocol
Throughput int - The throughput of the protocol service. Unit: MB/s.
- Vpc
Id string - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- Vswitch
Id string - The VSwitchId of the protocol service.
- File
System stringId - The ID of the file system.
- Protocol
Spec string - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- Protocol
Type string The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- Description string
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- Dry
Run bool - Protocol
Throughput int - The throughput of the protocol service. Unit: MB/s.
- Vpc
Id string - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- Vswitch
Id string - The VSwitchId of the protocol service.
- file
System StringId - The ID of the file system.
- protocol
Spec String - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol
Type String The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- description String
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry
Run Boolean - protocol
Throughput Integer - The throughput of the protocol service. Unit: MB/s.
- vpc
Id String - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch
Id String - The VSwitchId of the protocol service.
- file
System stringId - The ID of the file system.
- protocol
Spec string - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol
Type string The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- description string
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry
Run boolean - protocol
Throughput number - The throughput of the protocol service. Unit: MB/s.
- vpc
Id string - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch
Id string - The VSwitchId of the protocol service.
- file_
system_ strid - The ID of the file system.
- protocol_
spec str - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol_
type str The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- description str
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry_
run bool - protocol_
throughput int - The throughput of the protocol service. Unit: MB/s.
- vpc_
id str - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch_
id str - The VSwitchId of the protocol service.
- file
System StringId - The ID of the file system.
- protocol
Spec String - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol
Type String The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- description String
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry
Run Boolean - protocol
Throughput Number - The throughput of the protocol service. Unit: MB/s.
- vpc
Id String - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch
Id String - The VSwitchId of the protocol service.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProtocolService resource produces the following output properties:
- Create
Time string - The time when the protocol server service was created. The UTC time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Protocol
Service stringId - Protocol Service ID
- Status string
- Agreement service status.
- Create
Time string - The time when the protocol server service was created. The UTC time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Protocol
Service stringId - Protocol Service ID
- Status string
- Agreement service status.
- create
Time String - The time when the protocol server service was created. The UTC time.
- id String
- The provider-assigned unique ID for this managed resource.
- protocol
Service StringId - Protocol Service ID
- status String
- Agreement service status.
- create
Time string - The time when the protocol server service was created. The UTC time.
- id string
- The provider-assigned unique ID for this managed resource.
- protocol
Service stringId - Protocol Service ID
- status string
- Agreement service status.
- create_
time str - The time when the protocol server service was created. The UTC time.
- id str
- The provider-assigned unique ID for this managed resource.
- protocol_
service_ strid - Protocol Service ID
- status str
- Agreement service status.
- create
Time String - The time when the protocol server service was created. The UTC time.
- id String
- The provider-assigned unique ID for this managed resource.
- protocol
Service StringId - Protocol Service ID
- status String
- Agreement service status.
Look up Existing ProtocolService Resource
Get an existing ProtocolService 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?: ProtocolServiceState, opts?: CustomResourceOptions): ProtocolService@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
dry_run: Optional[bool] = None,
file_system_id: Optional[str] = None,
protocol_service_id: Optional[str] = None,
protocol_spec: Optional[str] = None,
protocol_throughput: Optional[int] = None,
protocol_type: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None) -> ProtocolServicefunc GetProtocolService(ctx *Context, name string, id IDInput, state *ProtocolServiceState, opts ...ResourceOption) (*ProtocolService, error)public static ProtocolService Get(string name, Input<string> id, ProtocolServiceState? state, CustomResourceOptions? opts = null)public static ProtocolService get(String name, Output<String> id, ProtocolServiceState state, CustomResourceOptions options)resources: _: type: alicloud:nas:ProtocolService get: id: ${id}- 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.
- Create
Time string - The time when the protocol server service was created. The UTC time.
- Description string
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- Dry
Run bool - File
System stringId - The ID of the file system.
- Protocol
Service stringId - Protocol Service ID
- Protocol
Spec string - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- Protocol
Throughput int - The throughput of the protocol service. Unit: MB/s.
- Protocol
Type string The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- Status string
- Agreement service status.
- Vpc
Id string - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- Vswitch
Id string - The VSwitchId of the protocol service.
- Create
Time string - The time when the protocol server service was created. The UTC time.
- Description string
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- Dry
Run bool - File
System stringId - The ID of the file system.
- Protocol
Service stringId - Protocol Service ID
- Protocol
Spec string - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- Protocol
Throughput int - The throughput of the protocol service. Unit: MB/s.
- Protocol
Type string The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- Status string
- Agreement service status.
- Vpc
Id string - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- Vswitch
Id string - The VSwitchId of the protocol service.
- create
Time String - The time when the protocol server service was created. The UTC time.
- description String
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry
Run Boolean - file
System StringId - The ID of the file system.
- protocol
Service StringId - Protocol Service ID
- protocol
Spec String - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol
Throughput Integer - The throughput of the protocol service. Unit: MB/s.
- protocol
Type String The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- status String
- Agreement service status.
- vpc
Id String - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch
Id String - The VSwitchId of the protocol service.
- create
Time string - The time when the protocol server service was created. The UTC time.
- description string
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry
Run boolean - file
System stringId - The ID of the file system.
- protocol
Service stringId - Protocol Service ID
- protocol
Spec string - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol
Throughput number - The throughput of the protocol service. Unit: MB/s.
- protocol
Type string The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- status string
- Agreement service status.
- vpc
Id string - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch
Id string - The VSwitchId of the protocol service.
- create_
time str - The time when the protocol server service was created. The UTC time.
- description str
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry_
run bool - file_
system_ strid - The ID of the file system.
- protocol_
service_ strid - Protocol Service ID
- protocol_
spec str - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol_
throughput int - The throughput of the protocol service. Unit: MB/s.
- protocol_
type str The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- status str
- Agreement service status.
- vpc_
id str - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch_
id str - The VSwitchId of the protocol service.
- create
Time String - The time when the protocol server service was created. The UTC time.
- description String
Description of the agreement service.
Limitations:
- Length is 2~128 English or Chinese characters.
- It must start with an uppercase or lowercase letter or Chinese, and cannot start with
http://andhttps://. - Can contain numbers, colons (:), underscores (_), or dashes (-).
- dry
Run Boolean - file
System StringId - The ID of the file system.
- protocol
Service StringId - Protocol Service ID
- protocol
Spec String - The specification of the protocol machine cluster.
- Value range: General、CL1、CL2
- Default value: General
- protocol
Throughput Number - The throughput of the protocol service. Unit: MB/s.
- protocol
Type String The protocol type supported by the protocol service.
Value range:
- NFS: Protocol Service supports NFS protocol access.
- status String
- Agreement service status.
- vpc
Id String - The VpcId of the protocol service, which must be consistent with the VPC of the file system.
- vswitch
Id String - The VSwitchId of the protocol service.
Import
File Storage (NAS) Protocol Service can be imported using the id, e.g.
$ pulumi import alicloud:nas/protocolService:ProtocolService example <file_system_id>:<protocol_service_id>
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
alicloudTerraform Provider.
