huawei-cloud-api-definitions-ECS 0.1.20250919

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"AttachServerVolumeOption":{"description":"","properties":{"count":{"description":"云硬盘的个数。\n\n该字段于dry_run为true并且volumeId不存在时有效,如果该字段不存在,默认为1。","format":"int32","type":"integer"},"device":{"description":"磁盘挂载点。\n\n> 说明:\n\n- 新增加的磁盘挂载点不能和已有的磁盘挂载点相同。\n\n- 对于采用XEN虚拟化类型的弹性云服务器,device为必选参数;系统盘挂载点请指定/dev/sda;数据盘挂载点请按英文字母顺序依次指定,如/dev/sdb,/dev/sdc,如果指定了以“/dev/vd”开头的挂载点,系统默认改为“/dev/sd”。\n\n- 对于采用KVM虚拟化类型的弹性云服务器,系统盘挂载点请指定/dev/vda;数据盘挂载点可不用指定,也可按英文字母顺序依次指定,如/dev/vdb,/dev/vdc,如果指定了以“/dev/sd”开头的挂载点,系统默认改为“/dev/vd”。","example":"/dev/sda","type":"string"},"hw:passthrough":{"description":"- true: 表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令\n- false: 表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,VBD只能支持简单的SCSI读写命令。\n该字段于dry_run为true并且volumeId不存在时有效且为必选字段。","type":"string"},"volumeId":{"description":"待挂载磁盘的磁盘ID,UUID格式。","example":"a26887c6-c47b-4654-abb5-dfadf7d3f803","type":"string"},"volume_type":{"description":"云硬盘类型。\n\n该字段于dry_run为true并且volumeId不存在时有效且为必选字段。","type":"string"}},"required":["volumeId"]},"AttachServerVolumeRequestBody":{"description":"This is a auto create Body Object","properties":{"dry_run":{"description":"是否只预检此次请求。\n\n- true:发送检查请求,不会挂载磁盘。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应结果。\n- false:发送正常请求,通过检查后并且进行挂载磁盘请求。\n默认值:false","example":false,"type":"boolean"},"volumeAttachment":{"$ref":"#/definitions/AttachServerVolumeOption","description":"云服务器挂载信息。"}},"required":["volumeAttachment"]},"JobResult":{"description":"任务类响应通用返回体。","properties":{"job_id":{"description":"提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。","example":"70a599e0-31e7-49b7-b260-868f44166666","type":"string"}},"required":["job_id"]}},"description":null,"group_id":"395cf9dd07ff44ddb50f92797b2a85de","host":"ecs.cn-north-4.myhuaweicloud.com","id":"d58507b609b24402a816aad6b91c9327","info_version":"v2","method":"post","name":"AttachServerVolume","parameters":{"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},"project_id":{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},"server_id":{"description":"云服务器ID。","in":"path","name":"server_id","required":true,"type":"string","x-example":"e6b99563-xxxx-xxxx-xxxx-1820d4fd2a67"}},"paths":{"/v1/{project_id}/cloudservers/{server_id}/attachvolume":{"post":{"consumes":[],"deprecated":false,"description":"把磁盘挂载到弹性云服务器上。","operationId":"AttachServerVolume","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/server_id"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"This is a auto create Body Object","in":"body","name":"AttachServerVolumeRequestBody","required":true,"schema":{"$ref":"#/definitions/AttachServerVolumeRequestBody"}}],"produces":[],"responses":{"200":{"description":"OK","examples":{"application/json":{"job_id":"70a599e0-31e7-49b7-b260-868f441e862b"}},"schema":{"$ref":"#/definitions/JobResult"}}},"summary":"弹性云服务器挂载磁盘","tags":["磁盘管理"],"x-apiexplorer-hide":"false","x-constraint":"无","x-first-open-time":"2018-3-30","x-hybridcloud":"true","x-is-registered":"Y","x-name":"弹性云服务器挂载磁盘","x-open-region-cloud":"hc,hk,otc,tlf,ctc","x-order":35,"x-publishpath":"","x-registered_to":"apicom","x-request-examples-1":{"volumeAttachment":{"device":"/dev/sda","volumeId":"a26887c6-c47b-4654-abb5-dfadf7d3f803"}},"x-request-examples-description-1":"","x-request-examples-text-1":"{ \n    \"volumeAttachment\": { \n         \"volumeId\": \"a26887c6-c47b-4654-abb5-dfadf7d3f803\", \n         \"device\": \"/dev/sda\" \n    } \n}\n","x-request-examples-url-1":"POST https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/attachvolume","x-scope":"Commercial","x-source":"SelfDeveloped","x-support-sdk":"Y","x-version":"v1"}}},"product_short":"ECS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"弹性云服务器挂载磁盘","tags":"磁盘管理","uri":null,"version":"2.0"}