For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Field
Type
Description

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

Field
Type
Description

instance-id

String

Unique identifier of the instance to be included in the workload.

Job Schedule

Field
Type
Description

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

Schedule Type
Field
Type
Description
Dependencies

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

Field
Type
Description

<key>

String

Custom metadata key-value pairs.

policy_id

String

ID of the backup policy associated with the workload.

Backup Target Types

Field
Type
Description

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

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Query Parameters

Name
Type
Description

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

Name
Type
Description

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

Sample Response

Create Workload

POST https://<wlm_api_endpoint>/workloads

Creates a workload in the provided Tenant/Project with the given details.

Path Parameters

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers

Name
Type
Description

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.

Sample Request Body
Sample Response

Show Workload

GET https://<wlm_api_endpoint>/workloads/<workload_id>

Shows all details of a specified workload

Path Parameters

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

workload_id

ID of the Workload to show

Headers

Name
Type
Description

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

Sample Response

Modify Workload

PUT https://<wlm_api_endpoint>/workloads/<workload_id>

Modifies a workload in the provided Tenant/Project with the given details.

Path Parameters

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

workload_id

ID of the Workload

Headers

Name
Type
Description

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.

All values in the body are optional.

Field Descriptions

Workload Fields

Field
Type
Description

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

Field
Type
Description

instance-id

String

Unique identifier of the instance to be included in the workload.

Job Schedule

Field
Type
Description

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

Schedule Type
Field
Type
Description
Dependencies

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

Field
Type
Description

<key>

String

Custom metadata key-value pairs.

policy_id

String

ID of the backup policy associated with the workload.

Sample Response

Delete Workload

DELETE https://<wlm_api_endpoint>/workloads/<workload_id>

Deletes the specified Workload.

Path Parameters

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

workload_id

ID of the Workload

Query Parameters

Name
Type
Description

database_only

boolean

True leaves the Workload data on the Backup Target

Headers

Name
Type
Description

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

Sample Response

Unlock Workload

POST https://<wlm_api_endpoint>/workloads/<workload_id>/unlock

Unlocks the specified Workload

Path Parameters

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

workload_id

ID of the Workload

Headers

Name
Type
Description

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

Sample Response

Reset Workload

POST https://<wlm_api_endpoint>/workloads/<workload_id>/reset

Resets the defined workload

Path Parameters

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

workload_id

ID of the Workload

Headers

Name
Type
Description

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

Sample Response

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

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Query Parameters

Name
Type
Description

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

Name
Type
Description

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

Sample Response

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

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers

Name
Type
Description

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

Sample Response (tenants-chargeback-csv)

While the job is still in progress, csv_content is empty and status is in-progress or running. Poll the endpoint until status becomes completed (or error) before extracting the CSV.

Last updated

Was this helpful?