Backup Targets
Create Backup Target
Creates the backup target
POST
https://<wlm_api_endpoint>/backup_targets
Input Parameters:
Path:
Parameter Name
Description
The endpoint URL of the Workloadmgr
service
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"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>
"metadata": <dictionary of key-value pair denotes metadata of backup target>
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:25:14 GMT'
'Content-Type': 'application/json'
'Content-Length': '430'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-5730cced-949b-4567-827e-8349a023e716'
{"backup_targets": {"id": "4720baae-5422-466d-a4b2-a4a2c94400f3", "type": "s3", "created_at": "2025-01-30T12:32:27.000000", "updated_at": "2025-01-30T12:32:27.000000", "version": "5.2.8.15", "filesystem_export": "cephs3.triliodata.demo/object-locked-cephs3-2", "filesystem_export_mount_path": "/var/trilio/triliovault-mounts/Y2VwaHMzLnRyaWxpb2RhdGEuZGVtby9vYmplY3QtbG9ja2VkLWNlcGhzMy0y", "is_default": false, "capacity": null, "used": null, "status": "offline", "backup_target_types": [{"created_at": "2025-01-30T12:32:27.000000", "updated_at": null, "version": "5.2.8.15", "user_id": "a62bf1546cdf4b02a3fc08b7aad79acb", "name": "cephs3.triliodata.demo/object-locked-cephs3-2", "description": null, "is_public": true, "is_default": false}], "backup_target_metadata": []}}
Delete a Backup Target
Deleting an existing backup target
Removing Backup Target from an active Workload can lead to inconsistent behavior and potential backup operation failures.
DELETE
https://<wlm_api_endpoint>/backup_targets/<backup_target_id>
Input Parameters:
Path:
Parameter Name
Description
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 202 OK
'Server': 'nginx/1.20.1'
'Date': 'Thu, 30 Jan 2025 13:04:32 GMT'
'Content-Type': 'text/html; charset=UTF-8'
'Content-Length': '0'
'Connection': 'keep-alive'
List Backup Targets
Provides the list of all backup targets
GET
https://<wlm_api_endpoint>/backup_targets
Input Parameters:
Path:
Parameter Name
Description
The endpoint URL of the Workloadmgr
service
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:15:16 GMT',
'Content-Type': 'application/json',
'Content-Length': '1808',
'Connection': 'keep-alive',
'X-Compute-Request-Id': 'req-739464e0-3b84-4e94-866a-f34476915a38'
{
"backup_targets": [
{
"id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"type": "nfs",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "192.168.1.34:/mnt/tvault/162",
"nfs_export_mount_path": "/var/triliovault-mounts/L21udC90dmF1bHQvMTYy",
"is_default": true,
"capacity": "2.4 TB",
"used": "1.2 TB",
"status": "available",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "nfs_1",
"description": null,
"is_public": true,
"is_default": true
}
]
},
{
"id": "2af5f2db-3267-453f-bc57-19884837e274",
"type": "s3",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "https://cephs3.triliodata.demo/trilio-qamanual",
"nfs_export_mount_path": "/var/triliovault-mounts/Y2VwaHMzLnRyaWxpb2RhdGEuZGVtby90cmlsaW8tcWFtYW51YWw=",
"is_default": false,
"capacity": null,
"used": null,
"status": "offline",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "s3_2",
"description": null,
"is_public": true,
"is_default": false
}
]
},
{
"id": "1fd7af34-d723-428d-90f5-35d31bf24884",
"type": "nfs",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "192.168.1.34:/mnt/tvault/tvm",
"nfs_export_mount_path": "/var/triliovault-mounts/L21udC90dmF1bHQvdHZt",
"is_default": false,
"capacity": "2.4 TB",
"used": "1.2 TB",
"status": "available",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "nfs_2",
"description": null,
"is_public": true,
"is_default": false
}
]
}
]
}
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
The endpoint URL of the Workloadmgr
service
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:15:16 GMT',
'Content-Type': 'application/json',
'Content-Length': '1808',
'Connection': 'keep-alive',
'X-Compute-Request-Id': 'req-739464e0-3b84-4e94-866a-f34476915a38'
{
"backup_targets": [
{
"id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"type": "nfs",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "192.168.1.34:/mnt/tvault/162",
"nfs_export_mount_path": "/var/triliovault-mounts/L21udC90dmF1bHQvMTYy",
"is_default": true,
"capacity": "2.4 TB",
"used": "1.2 TB",
"status": "available",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "nfs_1",
"description": null,
"is_public": true,
"is_default": true
}
]
},
{
"id": "2af5f2db-3267-453f-bc57-19884837e274",
"type": "s3",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "https://cephs3.triliodata.demo/trilio-qamanual",
"nfs_export_mount_path": "/var/triliovault-mounts/Y2VwaHMzLnRyaWxpb2RhdGEuZGVtby90cmlsaW8tcWFtYW51YWw=",
"is_default": false,
"capacity": null,
"used": null,
"status": "offline",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "s3_2",
"description": null,
"is_public": true,
"is_default": false
}
]
},
{
"id": "1fd7af34-d723-428d-90f5-35d31bf24884",
"type": "nfs",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "192.168.1.34:/mnt/tvault/tvm",
"nfs_export_mount_path": "/var/triliovault-mounts/L21udC90dmF1bHQvdHZt",
"is_default": false,
"capacity": "2.4 TB",
"used": "1.2 TB",
"status": "available",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "nfs_2",
"description": null,
"is_public": true,
"is_default": false
}
]
}
]
}
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
The endpoint URL of the Workloadmgr
service
ID of the Backup Target to be fetched
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:21:14 GMT'
'Content-Type': 'application/json'
'Content-Length': '600'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-0b298919-f2e8-4c50-aa55-ce88b4569f2a'
{
"backup_targets": {
"id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"type": "nfs",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"nfs_export": "192.168.1.34:/mnt/tvault/162",
"nfs_export_mount_path": "/var/triliovault-mounts/L21udC90dmF1bHQvMTYy",
"is_default": true,
"capacity": "2.4 TB",
"used": "1.2 TB",
"status": "available",
"backup_target_types": [
{
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": null,
"version": "5.0.204",
"user_id": null,
"name": "nfs_1",
"description": null,
"is_public": true,
"is_default": true
}
]
}
}
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
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy 'x-compute-request-id': 'req-295c03f7-8dfb-4b72-a654-9f06a51d9b0c'
'content-type': 'application/json'
'content-length': '911'
'date': 'Tue, 04 Feb 2025 14:19:05 GMT'
{"backup_targets": {"id": "0dcc632a-aed7-45ab-a40e-7cc2deae3994", "type": "s3", "created_at": "2025-02-04T10:43:37.000000", "updated_at": "2025-02-04T10:43:37.000000", "version": "5.2.8.15", "filesystem_export": "cephs3.triliodata.demo/object-locked-cephs3-2", "filesystem_export_mount_path": "/var/trilio/triliovault-mounts/Y2VwaHMzLnRyaWxpb2RhdGEuZGVtby9vYmplY3QtbG9ja2VkLWNlcGhzMy0y", "is_default": true, "capacity": null, "used": null, "status": "offline", "backup_target_types": [{"created_at": "2025-02-04T10:43:37.000000", "updated_at": "2025-02-04T14:19:05.000000", "version": "5.2.8.15", "user_id": "a62bf1546cdf4b02a3fc08b7aad79acb", "name": "cephs3.triliodata.demo/object-locked-cephs3-2", "description": null, "is_public": true, "is_default": true}], "backup_target_metadata": [{"key": "bucket", "value": "s3-object-lock"}, {"key": "immutable", "value": "1"}, {"key": "object_lock", "value": "1"}]}}```
</details>
***
## Backup Target Types: <a href="#backup-target-types" id="backup-target-types"></a>
### **List Backup Target Types** 
Provides the list of all backup target types
 <mark style="color:green;">`GET`</mark> `https://<wlm_api_endpoint>/backup_target_types` 
#### Input Parameters:
Path:
<table><thead><tr><th width="219">Parameter Name</th><th>Description</th></tr></thead><tbody><tr><td>wlm_api_endpoint</td><td>The endpoint URL of the <code>Workloadmgr</code> service</td></tr></tbody></table>
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` |
<details>
<summary>Sample Response</summary>
```json5
HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:29:09 GMT'
'Content-Type': 'application/json'
'Content-Length': '1628'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-dd23df0a-37a6-4769-882a-40e67431d997'
{
"backup_target_types": [
{
"id": "13dd2bf2-12c5-4eb8-98a3-0f1dd9f8579f",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "nfs_1",
"is_default": true,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
},
{
"id": "51f11fc5-854b-4cb7-9b64-0a0ace33b0d5",
"backup_targets_id": "1fd7af34-d723-428d-90f5-35d31bf24884",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "nfs_2",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
},
{
"id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"backup_targets_id": "2af5f2db-3267-453f-bc57-19884837e274",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "s3_2",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
},
{
"id": "fdae1b10-9852-4c68-8879-64ead0aed31b",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-13T10:25:14.000000",
"updated_at": "2024-03-13T10:25:14.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "BTT-name",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": [
{
"key": "nfs",
"value": "secondary"
}
]
}
]
}
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
The endpoint URL of the Workloadmgr
service
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:29:09 GMT'
'Content-Type': 'application/json'
'Content-Length': '1628'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-dd23df0a-37a6-4769-882a-40e67431d997'
{
"backup_target_types": [
{
"id": "13dd2bf2-12c5-4eb8-98a3-0f1dd9f8579f",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "nfs_1",
"is_default": true,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
},
{
"id": "51f11fc5-854b-4cb7-9b64-0a0ace33b0d5",
"backup_targets_id": "1fd7af34-d723-428d-90f5-35d31bf24884",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "nfs_2",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
},
{
"id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"backup_targets_id": "2af5f2db-3267-453f-bc57-19884837e274",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "s3_2",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
},
{
"id": "fdae1b10-9852-4c68-8879-64ead0aed31b",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-13T10:25:14.000000",
"updated_at": "2024-03-13T10:25:14.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "BTT-name",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": [
{
"key": "nfs",
"value": "secondary"
}
]
}
]
}
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
The endpoint URL of the Workloadmgr
service
ID of the Backup Target Type to be fetched
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:30:31 GMT'
'Content-Type': 'application/json'
'Content-Length': '406'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-f20d2e28-a083-47fe-8eda-a702ac484865'
{
"backup_target_types": {
"id": "13dd2bf2-12c5-4eb8-98a3-0f1dd9f8579f",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-04T10:59:51.000000",
"updated_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": null,
"name": "nfs_1",
"is_default": true,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": []
}
}
Create a Backup Target Type
Creates the backup target type
POST
https://<wlm_api_endpoint>/backup_target_types
Input Parameters:
Path:
Parameter Name
Description
The endpoint URL of the Workloadmgr
service
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"backup_target_type" :
{
"name": <name of the backup target type>,
"description": <description of backup target type>,
"backup_targets_id": <ID of the backup target>,
"is_default": <integer value 0|1 to specify if default or non-default>,
"is_public": <integer value 0|1 to specify if public or non-public>,
"project_list": [
<list of project IDs on which backup target type will be assigned>
],
"metadata": [
<list of dictionaries of key-value pair >
{
"key":<meta-key>,
"value":<meta-value>
},
]
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:25:14 GMT'
'Content-Type': 'application/json'
'Content-Length': '430'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-5730cced-949b-4567-827e-8349a023e716'
{
"backup_target_types": {
"id": "fdae1b10-9852-4c68-8879-64ead0aed31b",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-13T10:25:14.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "BTT-name",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": [
{
"key": "nfs",
"value": "primary"
}
]
}
}
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
The endpoint URL of the Workloadmgr
service
Id of the Backup Target Type to be modified
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"backup_target_type" :
{
"name": <name of the backup target type>,
"description": <description of backup target type>,
"is_default": <integer value 0|1 to specify if default or non-default>,
"is_public": <integer value 0|1 to specify if public or non-public>,
"project_list": [
<list of project IDs on which backup target type will be assigned>
],
"purge_projects": True <if All the assigned projects need to be purged>,
"metadata": [
<list of dictionaries of key-value pair >
{
"key":<meta-key>,
"value":<meta-value>
},
],
"purge_metadata": True <if All the metadata needs to be purged>
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:27:49 GMT'
'Content-Type': 'application/json'
'Content-Length': '432'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-14b39336-bc84-414a-a128-1d71e7dfb3cf'
{
"backup_target_types": {
"id": "fdae1b10-9852-4c68-8879-64ead0aed31b",
"backup_targets_id": "b39847c8-bf65-4cec-9af6-dd65303ca485",
"created_at": "2024-03-13T10:25:14.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "BTT-name",
"is_default": false,
"description": null,
"is_public": true,
"backup_target_type_projects": [],
"backup_target_type_metadata": [
{
"key": "nfs",
"value": "secondary"
}
]
}
}
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
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target Type
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"backup_target_type" :
{
"backup_target_type_id": <ID of the backup target type>,
"project_list": [
<list of project IDs on which backup target type will be assigned>
]
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:40:05 GMT'
'Content-Type': 'application/json'
'Content-Length': '921'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-3dd1a577-ef35-4997-83bc-b2e50afaea73'
{
"backup_target_types": {
"id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"backup_targets_id": "2af5f2db-3267-453f-bc57-19884837e274",
"created_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "s3_2",
"is_default": false,
"description": null,
"is_public": false,
"backup_target_type_projects": [
{
"created_at": "2024-03-13T10:39:14.000000",
"updated_at": null,
"version": "5.0.204",
"id": "5a14a688-e16f-45f9-91c2-6906fb200825",
"backup_target_types_id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"project_id": "fc439373e340459fb28202b2412e26c0"
},
{
"created_at": "2024-03-13T10:40:05.000000",
"updated_at": null,
"version": "5.0.204",
"id": "c0fe123e-e566-465a-acf2-56e2b27ae9b2",
"backup_target_types_id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"project_id": "0920f871077c4c079057ce940d8105a8"
}
],
"backup_target_type_metadata": [
{
"key": "dg1",
"value": "dg2"
}
]
}
}
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
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target Type
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"backup_target_type" :
{
"backup_target_type_id": <ID of the backup target type>,
"project_list": [
<list of assigned project IDs that needs to be unassigned>
]
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:41:18 GMT'
'Content-Type': 'application/json'
'Content-Length': '671'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-9dfe92c3-5b82-4062-98b0-b00294147b02'
{
"backup_target_types": {
"id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"backup_targets_id": "2af5f2db-3267-453f-bc57-19884837e274",
"created_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "s3_2",
"is_default": false,
"description": null,
"is_public": false,
"backup_target_type_projects": [
{
"created_at": "2024-03-13T10:39:14.000000",
"updated_at": null,
"version": "5.0.204",
"id": "5a14a688-e16f-45f9-91c2-6906fb200825",
"backup_target_types_id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"project_id": "fc439373e340459fb28202b2412e26c0"
}
],
"backup_target_type_metadata": [
{
"key": "dg1",
"value": "dg2"
}
]
}
}
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
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target Type
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"backup_target_type" :
{
"backup_target_type_id": <ID of the backup target type>,
"metadata": [
<list of dictionaries of key-value pair to be added >
{
"key":<meta-key>,
"value":<meta-value>
},
],
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:44:02 GMT'
'Content-Type': 'application/json'
'Content-Length': '671'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-870c776b-a160-41c0-82a9-d9e7131d77aa'
{
"backup_target_types": {
"id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"backup_targets_id": "2af5f2db-3267-453f-bc57-19884837e274",
"created_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "s3_2",
"is_default": false,
"description": null,
"is_public": false,
"backup_target_type_projects": [
{
"created_at": "2024-03-13T10:39:14.000000",
"updated_at": null,
"version": "5.0.204",
"id": "5a14a688-e16f-45f9-91c2-6906fb200825",
"backup_target_types_id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"project_id": "fc439373e340459fb28202b2412e26c0"
}
],
"backup_target_type_metadata": [
{
"key": "dg1",
"value": "dg2"
}
]
}
}
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
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target Type
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Body Format:
Copy {
"backup_target_type" :
{
"backup_target_type_id": <ID of the backup target type>,
"metadata": [
<list of dictionaries of key-value pair to be removed >
{
"key":<meta-key>,
"value":<meta-value>
},
],
}
}
Sample Response
Copy HTTP/1.1 200 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:45:12 GMT'
'Content-Type': 'application/json'
'Content-Length': '671'
'Connection': 'keep-alive'
'X-Compute-Request-Id': 'req-7eee91f0-d02f-41e1-afe2-ebcbe39aaa85'
{
"backup_target_types": {
"id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"backup_targets_id": "2af5f2db-3267-453f-bc57-19884837e274",
"created_at": "2024-03-04T10:59:51.000000",
"version": "5.0.204",
"user_id": "2b1189be3add4806bcb7e0c259b03597",
"name": "s3_2",
"is_default": false,
"description": null,
"is_public": false,
"backup_target_type_projects": [
{
"created_at": "2024-03-13T10:39:14.000000",
"updated_at": null,
"version": "5.0.204",
"id": "5a14a688-e16f-45f9-91c2-6906fb200825",
"backup_target_types_id": "c65625c1-50bf-4ab7-aa26-f625001e60f1",
"project_id": "fc439373e340459fb28202b2412e26c0"
}
],
"backup_target_type_metadata": [
{
"key": "dg1",
"value": "dg2"
}
]
}
}
Delete a Backup Target Type
Deleting an existing backup target type
Removing Backup Target Types from an active Workload can lead to inconsistent behavior and potential backup operation failures.
DELETE
https://<wlm_api_endpoint>/backup_target_types/<backup_target_type_id>
Input Parameters:
Path:
Parameter Name
Description
The endpoint URL of the Workloadmgr
service
Id of the required Backup Target Type
Headers:
Header Name
Value/Description
Project ID to run the authentication against
Authentication token to use
Sample Response
Copy HTTP/1.1 202 OK
'Server': 'nginx/1.20.1'
'Date': 'Wed, 13 Mar 2024 10:33:02 GMT'
'Content-Type': 'text/html; charset=UTF-8'
'Content-Length': '0'
'Connection': 'keep-alive'