Menghapus file snapshot yang ditentukan.
Deskripsi operasi
Operasi ini mendukung penghapusan file snapshot yang dihasilkan dalam satu tahun terakhir.
Batas QPS
Anda dapat memanggil operasi ini hingga 30 kali per detik per akun. Permintaan yang melebihi batas ini akan dibuang dan dapat menyebabkan gangguan layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DeleteSnapshotFiles |
delete |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| CreateTimestampList |
array |
Yes |
Daftar timestamp snapshot yang akan dihapus. |
1653641526637 |
|
integer |
No |
Timestamp, dalam milidetik, saat snapshot yang akan dihapus dihasilkan. Anda dapat memperoleh nilai ini dari parameter CreateTimestamp dalam respons operasi DescribeLiveStreamSnapshotInfo. |
1653641526637 |
|
| DomainName |
string |
Yes |
Domain streaming. |
example.com |
| AppName |
string |
Yes |
AppName dari aliran live. |
liveApp**** |
| StreamName |
string |
Yes |
Nama stream. |
liveStream**** |
| RemoveFile |
boolean |
Yes |
Menentukan apakah file snapshot juga dihapus dari OSS. Nilai yang valid:
Catatan
Untuk menghapus file dari OSS, Anda harus memiliki izin yang diperlukan untuk operasi file OSS. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| FailureCount |
integer |
Jumlah snapshot yang gagal dihapus. |
1 |
| RequestId |
string |
ID permintaan. |
90F60327-ABEC-5A93-BF1F-**** |
| SnapshotDeleteInfoList |
object |
||
| SnapshotDeleteInfo |
array<object> |
Detail penghapusan snapshot. |
|
|
object |
Detail penghapusan snapshot. |
||
| CreateTimestamp |
integer |
Timestamp, dalam milidetik, dari snapshot yang diminta untuk dihapus. |
1653641526637 |
| Message |
string |
Hasil operasi penghapusan untuk setiap snapshot. Nilai yang valid:
|
OK |
| SuccessCount |
integer |
Jumlah snapshot yang berhasil dihapus. |
1 |
Contoh
Respons sukses
JSONformat
{
"FailureCount": 1,
"RequestId": "90F60327-ABEC-5A93-BF1F-****",
"SnapshotDeleteInfoList": {
"SnapshotDeleteInfo": [
{
"CreateTimestamp": 1653641526637,
"Message": "OK"
}
]
},
"SuccessCount": 1
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | %s, please check and try again later. | |
| 400 | Cannot find task | %s, please check and try again later. | |
| 400 | MissingParams | %s, please check and try again later. | |
| 500 | InternalError | Server internal error | |
| 403 | OSSAccessDenied | OSS bucket not authorised |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.