AttachVscToFilesystems - 关联VSC设备到文件系统
关联 VSC 设备到文件系统。
接口说明
仅 CPFS 智算版支持该功能。
支持批量执行,批量执行情况下,目前仅支持 1 个 VscId 关联到多个 FileSystemId,即 ResourceIds.VscId 需相等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
nas:AttachVscToFilesystems |
update |
*FileSystem
*Vsc
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceIds |
array<object> |
是 |
文件系统和虚拟存储通道的 ID 信息,每批次最多 10 个。 |
|
|
object |
否 |
文件系统和虚拟存储通道的 ID 信息,每批次最多 10 个。 |
||
| FileSystemId |
string |
否 |
文件系统 ID。 |
bmcpfs-290t15yn4uo8lid**** |
| VscId |
string |
否 |
虚拟存储通道 ID。 |
vsc-8vb864o3ppwfvh**** |
| ClientToken |
string |
否 |
保证请求幂等性,从您的客户端生成一个参数值,确保不同请求间该参数值唯一。 ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性。 说明
若用户未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
123e4567-e89b-12d3-a456-42665544**** |
| RoleChain |
array<object> |
否 |
||
|
object |
否 |
|||
| RoleType |
string |
否 |
||
| RoleArn |
string |
否 |
||
| AssumeRoleFor |
string |
否 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
BC7C825C-5F65-4B56-BEF6-98C56C7C**** |
示例
正常返回示例
JSON格式
{
"RequestId": "BC7C825C-5F65-4B56-BEF6-98C56C7C****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The parameter is invalid. | 参数非法。 |
| 400 | InvalidParameter.ResourceIds | Invalid ResourceIds, can not be empty or batch size large than 10. | |
| 400 | InvalidParameter.FileSystem | Invalid FileSystem in ResourceIds. | |
| 400 | InvalidFilesystemType.NotSupport | This Api does not support this fileSystem type. | 当前接口不支持该类型文件系统。 |
| 400 | InvalidParameter.VscId | Invalid VscId in ResourceIds. | |
| 400 | InvalidParameter.VscIds | Invalid VscId in ResourceIds.VscIds must be the same. | |
| 400 | Ram.AddRamParamFailed | Ram check has failed due to param invalid, please check param. | |
| 400 | FeatureOrAPI.NotSupported | The Feature/API is not supported in this region now. | |
| 403 | Forbbiden.Ram | User not authorized to operate on the specified resource, or this API doesn't support RAM. | 用户没有授权去操作指定的资源,或者此API不支持RAM。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。