共有ユニットを削除します。
操作説明
共有ユニットが削除されると、その共有ユニットに関連付けられているすべてのプリンシパルは、共有リソースへのアクセス権限を失います。共有ユニットを削除しても、共有リソースは削除されません。
正常に削除された共有ユニットのステータスは Deleted となり、その Record は 48 時間から 96 時間以内にシステムによって自動的に削除されます。
この Topic では、cn-hangzhou リージョンで共有ユニット rs-qSkW1HBY**** を削除する例を示します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcesharing:DeleteResourceShare |
delete |
*すべてのリソース。
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceShareId |
string |
必須 |
共有ユニットの ID。 |
rs-qSkW1HBY**** |
共通リクエストパラメーターの詳細については、「共通パラメーター」を参照してください。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答。 |
||
| RequestId |
string |
リクエスト ID。 |
A627EE2A-223D-4E1F-A954-394686AEA916 |
例
成功レスポンス
JSONJSON
{
"RequestId": "A627EE2A-223D-4E1F-A954-394686AEA916"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.ResourceShareId | You must specify ResourceShareId. | You must specify ResourceShareId. |
| 400 | InvalidParameter.ResourceShareId | The ResourceShareId is invalid. | The ResourceShareId is invalid. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 404 | EntityNotExists.ResourceShare | The resource share does not exist in the current account. | The resource share does not exist in the current account. |
| 409 | ResourceShareStatusMismatchAction | The status of the resource share does not allow the specified operation. | The status of the resource share does not allow the specified operation. |
| 409 | DeleteResourceShareConflict | You cannot delete a resource share while there are unfinished tasks. | You cannot delete a resource share while there are unfinished tasks. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。