- Home
- API Enriched
- Tenant And Identity
- web
- Analyze For Deletion.
Analyze For Deletion.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/web/custom/namespaces/system/user_groups/analyze_for_deletion';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"namespace_name_identifier":{"object_name":"example","object_namespace":"example"},"object_uid":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/web/custom/namespaces/system/user_groups/analyze_for_deletion \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "namespace_name_identifier": { "object_name": "example", "object_namespace": "example" }, "object_uid": "example" }'AnalyzeForDeletion checks the references of the object to make sure it is deletable.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Analyze For Deletion Request.
AnalyzeForDeletionRequest is for the checking whether the object is deletable by going through it’s references in other objects.
object
object
Name of the specific object.
Namespace of the specific object.
Exclusive with [namespace_name_identifier] Uid of the specific object.
Examplegenerated
{ "namespace_name_identifier": { "object_name": "example", "object_namespace": "example" }, "object_uid": "example"}Responses
Section titled “Responses”A successful response.
Response holds the references of the object and also talks about the object is deletable or not.
object
BackReferencingItems holds the details of the objects which are referencing the deletion candidate.
object
ReferencedItems holds the details of the objects which are referenced in the deletion candidate.
object
Example
{ "deletion_analysis": "Unknown"}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example