Updated on 2023-08-11 GMT+08:00

EVS.NonSharedVolume

Element Description

EVS.NonSharedVolume is used to deploy non-shared Elastic Volume Service (EVS) disks at the IaaS layer of HUAWEI CLOUD. Such disks provide scalable block storage that features high reliability, high performance, and rich specifications for servers.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

availabilityZone

Yes

AZ

Type: HuaweiCloud.ECS.AvailabilityZone.Name

Value Description: Indicates the AZ where the to-be-created ECS is located. The name of the AZ needs to be specified, for example, cn-north-1a.

Value Constraint: The value must be selected as required. If the value of backupId is not empty, the AZ must be the same as the AZ where the backup is located.

Suggestion: 1. Use the get_input function to import this field. The value can be automatically selected on the AOS page. 2. For details about the AZ of each region.

description

No

EVS disk description

Type: string

Value Description: Supports customization.

image

No

ID of the image used by the EVS disk

Type: HuaweiCloud.ECS.Image.Id

Value Description: Indicates the IMS image ID of an EVS disk. If you specify this parameter, the EVS disk is created from an image. Specifying either two of the image, snapshotId, and backupId fields is not supported.

Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters.

Suggestion: You are advised to use the get_input function to assign values so that you can select a value when using the template.

volumeType

Yes

EVS disk type

Type: HuaweiCloud.EVS.Volume.Type.Name

Value Description: The value can be SSD (ultra-high I/O disk), SAS (high I/O disk), or SATA (common I/O disk). When creating a disk from a snapshot, set volumeType to the same value as that of the disk of the snapshot.

Suggestion: Set the value based on specifications and requirements. For more information on different disk types, see https://support.huaweicloud.com/eu/productdesc-evs/en-us_topic_0014580744.html.

name

No

EVS disk name

Type: string

Value Description: Supports customization, for example, share.

Value Constraint: The following requirement must be met: {"regex":"^[a-zA-Z][0-9a-zA-Z-_]*$","min_length":1,"max_length":250}.

Suggestion: Customize the value.

passthrough

No

equipment type about the created EVS disk

Type: string

Value Description: The default value is false, which indicates that the disk is a virtual block device (VBD). VBDs support only simple SCSI read/write commands. When creating an SCSI EVS disk, which allows ECS to directly access underlying storage media, set this property to true. SCSI reservation command is supported.

Value Constraint: The value must be true or false

Suggestion: For details, see the EVS documentation at https://support.huaweicloud.com/eu/api-evs/evs_04_2013.html.

backupId

No

EVS disk backup ID

Type: string

Value Description: Indicates the existing backup ID of an EVS disk. Specifying either two of the image, snapshotId, and backupId fields is not supported.When you create a disk from a backup, this property is required.

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

size

Yes

EVS disk size

Type: integer

Value Description: The size of a system disk and a data disk ranges from 1 GB to 1,024 GB and 10 GB to 32,768 GB, respectively. When creating a blank disk or a disk from an image or snapshot, set this property to a value larger than the image or snapshot size. When creating a disk from a backup, you can leave this property unspecified. In this case, the disk will be the same size as the backup.

Default: 40

Suggestion: Set the value based on requirements.When you try to create an EVS disk from a backup disk, image, or snapshot, the size of the EVS disk cannot be smaller than that of the backup disk, image, or snapshot.

snapshotId

No

Snapshot ID of the EVS disk

Type: string

Value Description: When creating a disk from a snapshot, specify a snapshot ID for this property. Specifying either two of the image, snapshotId, and backupId fields is not supported.

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

Relationships Between Elements

None.

Return Value

Property

Type

Description

volume

Array

EVS disk information list

refName

string

EVS disk name

volumeIDs

string

Set of EVS disk IDs, which are separated by commas (,)

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  availabilityZone:
    description: AZ
  size:
    description: EVS disk size
    default: 10
  volumeType:
    description: EVS disk type
    default: SATA
  name:
    description: EVS disk name
    default: my-evs
node_templates:
  my-evs:
    type: HuaweiCloud.EVS.NonSharedVolume
    properties:
      size:
        get_input: size
      availabilityZone:
        get_input: availabilityZone
      volumeType:
        get_input: volumeType
      name:
        get_input: name
outputs:
  evs-id:
    description: cloud server ID
    value:
      get_attribute:
        - my-evs
        - volumeIDs