Workloads
Field Descriptions
Below are some of the most common fields you will find in the request and response bodies while working with these APIs.
Workload Fields
name
String
Name of the workload.
description
String
Description of the workload.
workload_type_id
String
Unique identifier for the selected workload type.
source_platform
String
Specifies the source platform (e.g., openstack).
Instance List
instance-id
String
Unique identifier of the instance to be included in the workload.
Job Schedule
timezone
String
Time zone for the job schedule.
start_date
String
Start date of the schedule (Format: MM/DD/YYYY).
end_date
String
End date of the schedule (Format: MM/DD/YYYY).
start_time
String
Time when the schedule begins (Format: HH:MM AM/PM).
enabled
Boolean
True if scheduling is enabled, False otherwise.
Scheduling Types
Hourly
interval
Integer
Backup interval in hours (1, 2, 3, 4, 6, 12, 24).
if schedule enabledis set to true, you must provide Hourly field.
retention
Integer
Retention period in backups.
snapshot_type
String
Snapshot type (incremental or full).
Daily
backup_time
List of String
List of specific times (HH:MM, 24-hour format).
Requires hourly
retention
Integer
Retention period in backups.
snapshot_type
String
Snapshot type (incremental or full).
Weekly
backup_day
List of String
Days of the week (mon, tue, wed, thu, fri, sat, sun).
Requires daily
retention
Integer
Retention period in backups.
snapshot_type
String
Only supports full backups.
Monthly
month_backup_day
List of Integer
Days of the month (1-31).
Requires daily
retention
Integer
Retention period in backups.
snapshot_type
String
Only supports full backups.
Yearly
backup_month
List of String
List of months (jan, feb, mar, ... dec).
Requires monthly
retention
Integer
Retention period in backups.
snapshot_type
String
Only supports full backups.
Manual
retention
Integer
Retention period in backups.
retentionmanual
retentionmanual
Integer
Number of days to keep backups manually triggered.
Metadata
<key>
String
Custom metadata key-value pairs.
policy_id
String
ID of the backup policy associated with the workload.
Backup Target Types
backup_target_types
String
Backup target type ID specifying where the backups will be stored.
List Workloads
GET https://<wlm_api_endpoint>/workloads
Provides the list of all workloads for the given tenant/project ID
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
Query Parameters
nfs_share
string
lists workloads located on a specific nfs-share
all_workloads
boolean
admin role required - True lists workloads of all tenants/projects
Headers
X-Auth-Project-Id
string
project to run the authentication against
X-Auth-Token
string
Authentication token to use
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Create Workload
POST https://<wlm_api_endpoint>/workloads
Creates a workload in the provided Tenant/Project with the given details.
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication token to use
Content-Type
string
application/json
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Body format
Workload Create requires a Body in json format, to provide the requested information.
Using a policy-id will pull the following information from the policy. Values provided in the Body will be overwritten with the values from the Policy.
Show Workload
GET https://<wlm_api_endpoint>/workloads/<workload_id>
Shows all details of a specified workload
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
workload_id
ID of the Workload to show
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication token to use
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Modify Workload
PUT https://<wlm_api_endpoint>/workloads/<workload_id>
Modifies a workload in the provided Tenant/Project with the given details.
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
workload_id
ID of the Workload
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication token to use
Content-Type
string
application/json
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Body format
Workload modify requires a Body in json format, to provide the information about the values to modify.
Using a policy-id will pull the following information from the policy. Values provided in the Body will be overwritten with the values from the Policy.
Field Descriptions
Workload Fields
name
String
Name of the workload.
description
String
Description of the workload.
workload_type_id
String
Unique identifier for the selected workload type.
source_platform
String
Specifies the source platform (e.g., openstack).
Instance List
instance-id
String
Unique identifier of the instance to be included in the workload.
Job Schedule
timezone
String
Time zone for the job schedule.
start_date
String
Start date of the schedule (Format: MM/DD/YYYY).
end_date
String
End date of the schedule (Format: MM/DD/YYYY).
start_time
String
Time when the schedule begins (Format: HH:MM AM/PM).
enabled
Boolean
True if scheduling is enabled, False otherwise.
Scheduling Types
Hourly
interval
Integer
Backup interval in hours (1, 2, 3, 4, 6, 12, 24).
if schedule enabledis set to true, you must provide Hourly field.
retention
Integer
Retention period in backups.
snapshot_type
String
Snapshot type (incremental or full).
Daily
backup_time
List of String
List of specific times (HH:MM, 24-hour format).
Requires hourly
retention
Integer
Retention period in backups.
snapshot_type
String
Snapshot type (incremental or full).
Weekly
backup_day
List of String
Days of the week (mon, tue, wed, thu, fri, sat, sun).
Requires daily
retention
Integer
Retention period in backups.
snapshot_type
String
Only supports full backups.
Monthly
month_backup_day
List of Integer
Days of the month (1-31).
Requires daily
retention
Integer
Retention period in backups.
snapshot_type
String
Only supports full backups.
Yearly
backup_month
List of String
List of months (jan, feb, mar, ... dec).
Requires monthly
retention
Integer
Retention period in backups.
snapshot_type
String
Only supports full backups.
Manual
retention
Integer
Retention period in backups.
retentionmanual
retentionmanual
Integer
Number of days to keep backups manually triggered.
Metadata
<key>
String
Custom metadata key-value pairs.
policy_id
String
ID of the backup policy associated with the workload.
Delete Workload
DELETE https://<wlm_api_endpoint>/workloads/<workload_id>
Deletes the specified Workload.
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
workload_id
ID of the Workload
Query Parameters
database_only
boolean
True leaves the Workload data on the Backup Target
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication Token to use
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Unlock Workload
POST https://<wlm_api_endpoint>/workloads/<workload_id>/unlock
Unlocks the specified Workload
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
workload_id
ID of the Workload
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication Token to use
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Reset Workload
POST https://<wlm_api_endpoint>/workloads/<workload_id>/reset
Resets the defined workload
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
workload_id
ID of the Workload
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication Token to use
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Generate Tenant Storage Usage CSV
GET https://<wlm_api_endpoint>/workloads/metrics/tenants_chargeback?download=1
Requests asynchronous generation of a tenant storage usage CSV dump. When the download=1 query parameter is set on the existing tenants_chargeback endpoint, wlm-api creates a dms_job (action tenants-chargeback-csv) and dispatches the heavy tenant storage usage aggregation to wlm-workloads via the scheduler. The request returns a jobid immediately instead of timing out on large deployments. The CSV is later retrieved via the Get Job Details endpoint, which renders the JSON result (stored in job_details.data) as a CSV document on demand, reusing the Tenant Storage Usage column layout and storage formatting used by the Horizon dashboard.
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
Query Parameters
download
integer
Required. Set to 1 to switch the endpoint into async CSV-generation mode and receive a jobid instead of an inline JSON response.
project_id
string
Optional. Restrict the report to a single project.
project_list
string
Optional. Comma-separated list of project IDs to restrict the report to (for example project_list=p1,p2).
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication Token to use
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Get Job Details
POST https://<wlm_api_endpoint>/workloads/job_details
Returns the details of a previously created asynchronous dms_job, identified by its jobid. The same endpoint is used to retrieve the result of any async job. For a tenants-chargeback-csv job, the response carries the rendered CSV body in csv_content once the job has completed successfully; the document follows the Tenant Storage Usage column layout and storage formatting from the Horizon dashboard download.
Path Parameters
wlm_api_endpoint
The endpoint URL of the Workloadmgr service
Headers
X-Auth-Project-Id
string
Project to run the authentication against
X-Auth-Token
string
Authentication Token to use
Content-Type
string
application/json
Accept
string
application/json
User-Agent
string
python-workloadmgrclient
Body format
Last updated
Was this helpful?
