CPC G06F 9/5005 (2013.01) [G06F 9/547 (2013.01)] | 20 Claims |
1. A computer-implemented method, comprising:
receiving a first application programming interface (API) request from a client to identify resources associated with a service environment, the first API request encoding an identifier for a root entity of the service environment;
providing, as a first response, a list of resources associated with the service environment;
receiving a second API request from the client specifying at least a portion of the first list of resources to validate for deletion;
processing the second API request by:
obtaining a first resource of the at least a portion of the first list of resources;
determining, based on a first resource type of the first resource, a resource type-specific validation task;
executing the resource type-specific validation task to determine whether the first resource is unused;
recording a first result of the execution of the resource type-specific validation task indicating whether the first resource is unused; and
providing the first result to the client;
receiving a third API request from the client to delete at least the first resource;
processing the third API request by:
determining, based on a first resource type of the first resource, a resource type-specific deletion task;
executing the resource type-specific deletion task to disable or deactivate the first resource in a recoverable manner and schedule the first resource to be deleted in an unrecoverable manner after a predetermined period of time has elapsed;
recording a second result of the execution of the resource type-specific deletion task; and
providing the second result to the client.
|