ディスクの名前、説明、インスタンスに追随してリリースするかどうか、削除時に自動スナップショットを削除するかどうか、自動スナップショットポリシーを有効にするか、またはバースト機能を有効にするかなど、ディスクの属性を変更します。
操作説明
この操作は、ディスクの名前、説明、インスタンスに追随してリリースするかどうかなど、ディスクの属性を変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
rds:ModifyRCDiskAttribute |
update |
*All Resource
|
なし | なし |
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
リージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを取得できます。 |
cn-hangzhou |
| DiskId |
string |
必須 |
変更するディスクの ID。 |
rcd-wz9c8isqly8637zw**** |
| DiskName |
string |
任意 |
ディスクの新しい名前。 名前は 2~128 文字である必要があります。 名前に使用できる文字は、英字 (英語と中国語を含む)、数字、コロン (:)、アンダースコア (_)、ピリオド (.)、ハイフン (-) です。 |
testDisk |
| Description |
string |
任意 |
ディスクの新しい説明。 説明は 2~256 文字である必要があり、`http://` または `https://` で始めることはできません。 |
test |
| DeleteWithInstance |
boolean |
任意 |
インスタンスのリリース時にディスクをリリースするかどうかを指定します。 このパラメーターを指定しない場合、現在の設定が維持されます。 このパラメーターは、マルチアタッチ機能が有効になっているクラウドディスクではサポートされていません。 次の場合に `DeleteWithInstance` を `false` に設定すると、エラーが返されます。 ディスクが一時ディスク (カテゴリ: `ephemeral`) である場合。 |
false |
| BurstingEnabled |
boolean |
任意 |
バースト機能を有効にするかどうかを指定します。 有効な値: `true`:バースト機能を有効にします。 |
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスボディ。 |
||
| RequestId |
string |
リクエスト ID。 |
1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC |
例
成功レスポンス
JSONJSON
{
"RequestId": "1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidRegionId.MalFormed | The specified parameter RegionId is not valid. | 指定されたレジストリidが不正です。 |
| 400 | InvalidDiskName.Malformed | The specified disk name is wrongly formed. | |
| 400 | NoAttributeToModify | No attribute to be modified in this request. | |
| 400 | IncompleteParamter | Some fields can not be null in this request. | |
| 400 | MissingParameter.DiskIdOrDiskIds | Specified parameter DiskId or DiskIds is missing. | |
| 400 | BurstingEnabledForDiskCategoryUnsupported | The specified disk category does not support bursting enabled. | |
| 400 | BurstingEnabledForMultiAttachDiskUnsupported | The multi attach disk does not support bursting enabled. | |
| 400 | BurstingEnabledForModifyingDiskUnsupported | The modifying disk does not support bursting enabled. | |
| 400 | InvalidBurstingEnabled.DiskSizeTooSmall | The disk size must be greater than 3 GiB to enable burst. | |
| 403 | QuotaExceed.Snapshot | The snapshot quota exceeds. | |
| 403 | DiskNotPortable | The specified disk is not a portable disk. | |
| 403 | IncorrectDiskStatus | The operation is not supported in this status. | |
| 403 | UserNotInTheWhiteList | The user is not in disk white list. | |
| 403 | DeleteWithInstance.Conflict | Multi attach disk cannot be set to DeleteWithInstance attribute. | |
| 404 | InvalidDiskId.NotFound | The specified disk does not exist. | |
| 404 | InvalidDescription.Malformed | The specified description is wrongly formed. | |
| 404 | InvalidInstanceId.NotFound | Specified attached instance does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。