Updated on 2022-02-22 GMT+08:00

SFS.FileSystem

Element Description

SFS provides high-performance file storage which supports on-demand scaling. It can be shared by multiple ECSs.

Element Properties

Table 1 Property Description

Property

Mandatory

Descripiton

size

Yes

Storage space size (unit: GB). The minimum value is 1 and the maximum value is 511800.

Type: integer

Value Description: The value ranges from 1 to 511800.

Default: 1

Value Constraint: [1, 511800]

vpcId

Yes

ID of the belonged VPC. Only ECSs in the VPC can access the SFS file system.

Type: Cloud.VPC.VPC.Id

Value Description: Use the ID of an existing VPC or a new VPC.

Value Constraint: The value must satisfy the UUID generation rule.

Suggestion: 1. Use the get_input function to set this field, and then the value can be automatically selected on the AOS console. 2. Obtain the ID of the created VPC from the VPC console.

description

Yes

Shared description

Type: string

Value Description: Customize the value.

Default: ""

Value Constraint: [0, 255]

name

Yes

SFS instance name

Type: string

Value Description: Customize the value.

Default: ""

Value Constraint: [0, 255]

availabilityZone

Yes

AZ to which the file system belongs

Type: Cloud.ECS.AvailabilityZone.Name

Value Description: AZ where the to-be-shared file system is located. The name of the AZ needs to be specified.

Value Constraint: The value varies depending on regions.

accessLevel

Yes

Permission level of the shared access

Type: string

Value Description: Customize the value.

Default: rw

Value Constraint: The options are ro and rw. ro indicates read-only, and rw indicates read and write.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Inclusion

VPC.VPC

Return Value

Property

Type

Description

ShareAccessId

string

UUID of a share access rule

export_location

string

Sharing path

refID

string

SFS ID

export_locations

string

Sharing path

Blueprint Example

tosca_definitions_version: cloud_tosca_version_1_0
inputs:
  name:
    default: my-sfs
  availabilityZone:
    type: Cloud.ECS.AvailabilityZone.Name
  vpcId:
    type: Cloud.VPC.VPC.Id
  accessLevel:
    default: "ro"
  size:
    default: 10
node_templates:
  my-sfs:
    type: Cloud.SFS.FileSystem
    properties:
      name: {get_input: name}
      size: {get_input: size}
      availabilityZone: {get_input: availabilityZone}
      accessLevel: {get_input: accessLevel}
      vpcId: {get_input: vpcId}