REST Resources
-
/ -
/add-fabric-node -
/delete-fabric-node -
/fabric-health-reports -
/fabric-health-reports /{id} -
/fabric-jboss-reboot-details -
/fabric-jboss-reboot-details /{id} -
/fabric-large-tables -
/fabric-large-tables /{id} -
/fabric-nodes -
/fabric-nodes /{id} -
/fabric-nodes /{id} /fabric-node-status -
/generate-key -
/high-cpu-usages -
/high-cpu-usages /{id} -
/hprof-files -
/hprof-files /{id} -
/node-device-management-sessions -
/node-device-management-sessions /{id} -
/run-purging-operations
/api/space/fabric-management/run-purging-operations
The following operation is supported on this resource:
- POST - Schedule Purging Job
POST /run-purging-operations | Version 1 |
Trigger a "Purging Task" in Junos Space to clean up server disk space. The job deletes old database backups, configuration files, reports and other files. Old files, which are no longer needed are deleted from all Junos Space cluster nodes. The job will retain the number of files configured by a threshold value. If the number of files found on each server is at or below the threshold value, no files will be deleted.
Sample Usage
This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:
POST /run-purging-operations?queue=<queue>&schedule=<schedule>
Note: The queue URL denoted by <queue> must have been created already.
- Parameters:
Name Type URI Type Description Required queue Queue URL Query A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) N schedule cron-like-expression Query Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) N
- Content-Type Headers:
application/vnd.net.juniper.space.fabric-management.schedule-purging-job-request+xml;version=1;charset=UTF-8
application/vnd.net.juniper.space.fabric-management.schedule-purging-job-request+json;version=1;charset=UTF-8 - Accept Headers:
application/vnd.net.juniper.space.job-management.task+xml;version=1
application/vnd.net.juniper.space.job-management.task+json;version=1
<schedule-purging-job-request>
<category-ids>
<category-id>String</category-id>
</category-ids>
<ipaddress>String</ipaddress>
</schedule-purging-job-request>
{
"schedule-purging-job-request" : {
"category-ids" : {
"category-id" : "String"
} ,
"ipaddress" : "String"
}
}
Access Control
The following capabilities are required to access this API: ModifyPurgingPolicy