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

Backup Targets

This page contains the API guide for various operations on Backup Targets and Backup Target Types.


Backup Targets

Create Backup Target

Creates the backup target

POST https://<wlm_api_endpoint>/backup_targets

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

{
    "backup_target" :
    {
        "s3_endpoint_url": <s3 endpint url>,
        "s3_bucket": <s3 bucket name>,
        "filesystem_export": <filesystem export required for NFS type>,
        "type": <Backup Target type Eg. nfs, s3>,
        "is_default": <integer value 0|1 to specify if default or non-default>,
        "btt_name": <Backup Target Type name, using filesystem_export if not provided>,
        "immutable": <integer value 0|1 to specify if s3 Backup Target has object locked enabled>,
        "secret_ref": <Barbican secret URL holding the S3 access credentials, required for type=s3>,
        "nfs_mount_opts": <NFS mount options string, required for type=nfs>,
        "metadata": <dictionary of key-value pair denotes metadata of backup target>
    }
}

6.2 and later: S3 credentials are not sent in the request body. Instead, store the access key, secret key, bucket, and endpoint in an OpenStack Barbican secret and pass the secret's URL as secret_ref. See Backup Targets — admin guide for the required Barbican payload shape and worked examples. The Dynamic Mount Service (DMS) retrieves the credentials from Barbican at mount time.

Status field. Starting in 6.2, mount state on a backup target is owned by the Dynamic Mount Service rather than by node-local startup logic. Treat the status field as read-only from the client side. The status reflects backend reachability only and takes one of two values: online (the backup-target endpoint is reachable — NFS server responds to rpcinfo or the S3 endpoint accepts a TCP connection) or offline (the endpoint cannot be reached). Local mount state does not affect status; mounts are performed on demand by DMS at backup/restore time, so a reachable target that is not currently mounted is still reported as online.

Deprecated (6.1) — Request body without secret_ref

In Trilio for OpenStack 6.1 and earlier, S3 access credentials were submitted directly in the create-backup-target request body and the secret_ref/nfs_mount_opts fields did not exist. The 6.1 request body shape was:

This shape is deprecated in 6.2. New deployments must use secret_ref (S3) and nfs_mount_opts (NFS) as documented above. 6.1-shape requests are not accepted by 6.2 wlm-api.

Sample Response

Update a Backup Target

Updates an existing backup target. Only the credential / mount-option fields can be modified; type, endpoint, and bucket are immutable after create.

  • For S3 targets, pass a new secret_ref to rotate the Barbican-stored credentials. The new secret_ref is normalized against the Barbican endpoint in the service catalog and validated before being stored.

  • For NFS targets, pass nfs_mount_opts to change the mount options used at mount time.

PUT https://<wlm_api_endpoint>/backup_targets/<backup_target_id>

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

backup_target_id

Id of the Backup Target to be modified

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

6.2 and later: Updating a backup target is the supported way to rotate S3 credentials — store the new access key, secret key, bucket, and endpoint in a fresh OpenStack Barbican secret and PUT its URL as secret_ref. The old Barbican secret is not touched by this call and should be deleted separately once no in-flight job references it. The next mount issued by the Dynamic Mount Service (DMS) will pick up the new credentials.

Sample Response

Delete a Backup Target

Deleting an existing backup target

DELETE https://<wlm_api_endpoint>/backup_targets/<backup_target_id>

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_id

Id of the required Backup Target

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

List Backup Targets

Provides the list of all backup targets

GET https://<wlm_api_endpoint>/backup_targets

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Detailed List of all Backup Targets

Provides a detailed list of all backup targets

GET https://<wlm_api_endpoint>/backup_targets/detail

Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Show Details of a Backup Target

Provides all details of a specific backup target

GET https://<wlm_api_endpoint>/backup_targets/<backup_target_id>

Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

backup_target_id

ID of the Backup Target to be fetched

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Backup Target Set Default

Sets the given Backup target as default

GET https://<wlm_api_endpoint>/backup_targets/<backup_target_id>/set_default

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_id

Id of the required Backup Target

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Detailed List of all Backup Target Types

Provides a detailed list of all backup target types

GET https://<wlm_api_endpoint>/backup_target_types/detail

Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Show Details of a Backup Target Type

Provides all details of a specific backup target type

GET https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>

Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

backup_target_type_id

ID of the Backup Target Type to be fetched

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Create a Backup Target Type

Creates the backup target type

POST https://<wlm_api_endpoint>/backup_target_types

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

Sample Response

Update the backup target type

Update an existing backup target type

PUT https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgr service

backup_target_type_id

Id of the Backup Target Type to be modified

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

Sample Response

Assign Projects to a Backup Target Type

Add projects to an existing backup target type

POST https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>/add_projects

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_type_id

Id of the required Backup Target Type

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

Sample Response

Remove Assigned Projects from a Backup Target Type

Add projects to an existing backup target type

PUT https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>/remove_projects

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_type_id

Id of the required Backup Target Type

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

Sample Response

Add Metadata to Backup Target Type

Adds metadata to an existing backup target type

POST https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>/add_metadata

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_type_id

Id of the required Backup Target Type

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

Sample Response

Remove Metadata from a Backup Target Type

Removes metadata from an existing backup target type

PUT https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>/remove_metadata

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_type_id

Id of the required Backup Target Type

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Body Format:

Sample Response

Delete a Backup Target Type

Deleting an existing backup target type

DELETE https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>

Input Parameters:

Path:

Parameter Name
Description

wlm_api_endpoint

The endpoint URL of the Workloadmgrservice

backup_target_type_id

Id of the required Backup Target Type

Headers:

Header Name
Value/Description

X-Auth-Project-Id

Project ID to run the authentication against

X-Auth-Token

Authentication token to use

Accept

application/json

User-Agent

python-workloadmgrclient

Sample Response

Last updated

Was this helpful?