Menghapus instans.
Deskripsi operasi
API operations provided by Alibaba Cloud are used to manage and query resources of Alibaba Cloud services. We recommend that you integrate these API operations only in management systems. Do not use these API operations in the core system of messaging services. Otherwise, system risks may occur.
After an instance is deleted, the instance cannot be restored. Exercise caution when you call this operation.
This operation is used to delete a pay-as-you-go instance. A subscription instance is automatically released after it expires. You do not need to manually delete a subscription instance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:DeleteInstance |
delete |
*Instance
|
None | None |
Sintaks permintaan
DELETE /instances/{instanceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans ApsaraMQ for RocketMQ yang ingin dihapus. |
rmq-cn-7e22ody0129 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
The ID of the request. Each request has a unique ID. You can use this ID to troubleshoot issues. |
048242AA-BADA-5F29-B2CD-ED9FA344467F |
| success |
boolean |
Indicates whether the call was successful. |
true |
| data |
boolean |
The returned result. |
true |
| code |
string |
The error code returned if the call failed. |
MissingInstanceId |
| message |
string |
The error message. |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
The HTTP status code returned. |
400 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "048242AA-BADA-5F29-B2CD-ED9FA344467F",
"success": true,
"data": true,
"code": "MissingInstanceId",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 400,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.