Delete Logical Asset¶
Delete a specified logical asset.
Operation Permissions¶
Before invoking this API, ensure that the application has been authorized the permission to invoke this API. For how to authorize the application, see Getting API Calling Permissions.
Request Format¶
POST https://{apigw-address}/asset-service/v2.1/logical-assets?action=delete
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Mandatory |
String |
The organization ID which the asset belongs to. How to get orgId>> |
assetId |
Query |
Mandatory |
String |
The asset ID. How to get assetId>> |
Error Codes¶
Code |
Message |
Description |
---|---|---|
17404 |
Logical asset does not exist |
The |
Samples¶
Request Sample¶
url: https://{apigw-address}/asset-service/v2.1/logical-assets?action=delete&orgId=yourOrgId&assetId=yourAssetId
method: POST
Return Sample¶
{
"code": 0,
"msg": "OK",
"requestId": "01b5477a-374e-49a0-8b68-7dbfe8f0b74f"
}
SDK Samples¶
You can access the SDK samples for Asset Service on GitHub: