Menghapus objek entitas metadata secara Batch. Mendukung penghapusan entitas kustom dan objek tipe tabel ekstensi (Database/Tabel). Tidak mendukung penghapusan kolom secara individual. Anda dapat menghapus objek Column yang terkait dengan menghapus Tabel.
Deskripsi operasi
Memerlukan DataWorks Edisi Profesional atau edisi yang lebih tinggi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:BatchDeleteMetaEntities |
delete |
*Semua Sumber daya.
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Ids |
array |
Yes |
Daftar ID entitas untuk dihapus. Maksimal 10 ID didukung. Semua entitas dalam batch yang sama harus memiliki entityType yang sama. |
|
|
string |
No |
Daftar ID parameter. |
custom_entity-demo:entitas_01 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
1FC02D76-4A94-5D97-B52C-00A031B95359 |
| Success |
boolean |
Apakah permintaan berhasil. Ketika beberapa entitas gagal, bidang ini tetap mengembalikan true. Periksa Results[].Success dan Results[].ErrorMessage untuk hasil individual. |
[] |
| Results |
array |
Daftar hasil penghapusan entitas, yang mengembalikan status keberhasilan dan alasan kegagalan untuk setiap entitas. |
|
| MetaEntityWriteResult |
Hasil penghapusan Batch. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1FC02D76-4A94-5D97-B52C-00A031B95359",
"Success": true,
"Results": [
{
"Name": "entity_01",
"EntityType": "custom_entity-demo",
"Id": "custom_entity-demo:entity_01",
"Success": true,
"ErrorMessage": "The specified parameters are invalid."
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.