Attaches shared storage to an Elastic High Performance Computing (E-HPC) cluster.
Operation description
Usage notes
When you call this operation, take note of the following items:
- The file system that you want to attach must be created in advance in the same virtual private cloud (VPC) as the destination cluster. For more information, see Create a file system and Manage mount targets.
- E-HPC clusters support Apsara File Storage NAS file systems.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
*All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ClusterId | string | Yes | The cluster ID. You can call the ListClusters operation to query the cluster ID. | ehpc-hz-FYUr32**** |
| SharedStorages | array<object> | Yes | The information about the shared storage resources that you want to attach to the cluster. | |
| object | Yes | The information about the shared storage resource that you want to attach to the cluster. | ||
| MountDirectory | string | Yes | The local mount directory of the file system that you want to attach. | /test |
| FileSystemId | string | Yes | The ID of the file system to be attached. | 0bd504b0** |
| StorageDirectory | string | Yes | The storage directory of the file system. You can mount any directory in the file system to the specified cluster directory. | /testehpc |
| MountTarget | string | Yes | The address of the mount point of the file system to be attached. | 0bd504b***-ngq26.cn-hangzhou.nas.aliyuncs.com |
| ProtocolType | string | Yes | The protocol type of the file system to be attached. Valid values:
| NFS |
| MountOptions | string | No | The attaching options of the file system to be attached. Valid values:
Default value:-t nfs -o vers=3,nolock,proto=tcp,noresvport Note
The v3 version is recommended for higher performance if multiple Elastic Compute Service (ECS) instances do not edit the same file at the same time.
| -t nfs -o vers=3,nolock,proto=tcp,noresvport |
| Location | string | No | The storage location of the file system to be attached. Valid values:
| PublicCloud |
| VolumeType | string | Yes | The type of the file system to be attached. Valid values:
| nas |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "F9B7BEF8-E42E-5090-9880-55FB7872****",
"Success": true,
"ClusterId": "ehpc-hz-FYUr32****"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| The specified parameter %s is invalid. | |||
| The specified storage does not exist. Please verify the parameter. | |||
| The specified instance does not exist. | |||
| Failed to request the NAS interface. | |||
| ECS API call error. %s | |||
| Alibaba Cloud product error. %s | |||
| The request has failed due to a temporary failure of the server. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
