Memanggil AttachDisk untuk menyambungkan disk data ke instans ENS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:AttachDisk |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DiskId |
string |
Yes |
ID disk yang akan menyambungkan. Disk (DiskId) dan instans (InstanceId) harus berada pada node yang sama. |
d-5saf13yy6sopmmg88mzsg**** |
| InstanceId |
string |
Yes |
ID instans. |
i-5rr19av7tkpgi9os52ag1**** |
| DeleteWithInstance |
string |
No |
Apakah disk yang akan menyambungkan akan dilepas bersama instans. Nilai valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode pengembalian bisnis. Nilai 0 menunjukkan keberhasilan. |
0 |
| RequestId |
string |
ID permintaan. |
916777D9-42D3-5928-92CE-373B1874B674 |
Contoh
Respons sukses
JSONformat
{
"Code": 0,
"RequestId": "916777D9-42D3-5928-92CE-373B1874B674"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | |
| 400 | NoPermission | Permission denied. | |
| 400 | NotAllowMixed | NOT ALLOW MIX ATTACH. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 403 | Target.IncorrectInstanceStatus | The current status of the instance does not support this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.