This documentation and the Cisco Observability Platform functionalities it describes are subject to change. Data saved on the platform may disappear and APIs may change without notice.
Check the Solution Deletion Status
This page describes how to:
- Check if the solution deletion status (in progress, failed, or successful).
- Check if the solution was successfully deleted.
Check the Solution Deletion Status
To check the deletion status of a solution, fetch the extensibility:deletion
object with the following command:
fsoc ks get --type extensibility:solutionDeletion --layer-type SOLUTION --layer-id extensibility --filter 'data.tag eq "<TAG>" and data.solutionName eq "<SOLUTION_NAME>"'
curl --location 'https://fso-devplat.saas.appd-test.com/knowledge-store/v1/objects/extensibility:solutionDeletion?max=1' --header 'accept: application/json' --header 'Content-Type: application/json' --header 'layer-type: SOLUTION' --header 'layer-id: extensibility' --header 'Authorization: Bearer $TOKEN'
On the returned extensibility:deletion
object, check the status field to determine the deletion status:
Status | Description |
---|---|
inProgress |
The solution is in the process of being deleted. |
successful |
The solution has been successfully deleted. |
failed |
The solution deletion failed. The deleteMessage field displays a message that describes the reason it failed. |
Sample output:
{
"total": 12,
"items": [
{
"layerType": "SOLUTION",
"id": "extensibility:/solutionId=test.test;/deleteTime=2024-03-19T00:48:40.241Z",
"layerId": "extensibility",
"data": {
"tag": "test",
"status": "successful",
"deleteTime": "2024-03-19T00:48:40.241Z",
"solutionId": "test.test",
"deleteTxnId": "721da34f-59b6-4227-8bb8-d53b9f7e28aa",
"solutionName": "test",
"deleteMessage": "The solution has been deleted successfully.",
"solutionVersion": "1.0.0"
},
"objectMimeType": "application/json",
"targetObjectId": null,
"patch": null,
"objectVersion": 2,
"createdAt": "2024-03-19T00:48:40.423Z",
"updatedAt": "2024-03-19T00:48:47.369Z",
"objectType": "extensibility:solutionDeletion"
}
]
}
Check if the Solution Deletion was Successful
Note: This command can only be used to confirm if a solution was successfully deleted. If the solution has not been fully deleted,
fsoc solution status
will not provide any output related to the deletion.
To check if a solution was successfully deleted, run the following command:
fsoc solution status <solution-name> --tag <solution-tag>
Sample output for a successful execution:
fsoc solution status <solution-name> --tag <solution-tag>
Solution with name: <solution-name> and tag: <solution-tag> previously deleted successfully.
A new solution with this name and tag can be uploaded.