Menghapus sebuah resource share.
Deskripsi operasi
Setelah resource share dihapus, semua principal dalam resource share tersebut tidak dapat lagi mengakses resource yang terkait. Namun, resource tersebut tidak ikut dihapus bersama resource share-nya.
Resource share yang telah dihapus berada dalam status Deleted. Sistem akan menghapus catatan resource share tersebut dalam waktu 48 hingga 96 jam.
Topik ini memberikan contoh cara memanggil operasi API untuk menghapus resource share rs-qSkW1HBY**** di wilayah cn-hangzhou.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceShareId |
string |
Yes |
ID dari resource share. |
rs-qSkW1HBY**** |
Untuk informasi selengkapnya mengenai parameter permintaan umum, lihat Common parameters.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. |
A627EE2A-223D-4E1F-A954-394686AEA916 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A627EE2A-223D-4E1F-A954-394686AEA916"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.ResourceShareId | You must specify ResourceShareId. | |
| 400 | InvalidParameter.ResourceShareId | The ResourceShareId is invalid. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 404 | EntityNotExists.ResourceShare | The resource share does not exist in the current account. | |
| 409 | ResourceShareStatusMismatchAction | 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.