Delete a snapshot
delete
/api/20210901/snapshots/{snapshotId}
Remove a snapshot resource from an Analytics instance. This operation deregisters a snapshot that's currently registered with an Analytics instance. The delete operation doesn't delete the snapshot (BAR file) from Oracle Cloud Infrastructure storage.
Request
Path Parameters
-
snapshotId(required): string
Snapshot id.
There's no request body for this operation.
Back to TopResponse
200 Response
Successful operation.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Root Schema : Error
Type:
Show Source
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
404 Response
Not Found. The requested resource was not found.
Root Schema : Error
Type:
Show Source
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
Examples
In this example, you deregister a snapshot that's associated with your Oracle Analytics instance. The ID of the snapshot is
ac6fdab7-9c16-4d22-a56f-cb7b5d15505a
. You can use
Get all snapshots to find the snapshot ID.
Note:
This delete operation doesn't delete the snapshot from Oracle Cloud Infrastructure Object Storage. The BAR file associated with the snapshot remains available in cloud storage.
cURL Example:
curl -i \ --header 'Authorization: Bearer <token>' \ --request DELETE 'https://<hostname>/api/20210901/snapshots/ac6fdab7-9c16-4d22-a56f-cb7b5d15505a'
Example of Request Body
Not applicable.
Example of Response Body
Not applicable.