Task Sources
API Key Scope: task_sources / index
Pass the username and password of a user in the authorization header. This currently gives full access.
ID or name of task. Task names are not unique, it's recommended to use ID.
The number of items to display for pagination.
The number of items to skip for pagination.
List of task sources.
1GET /api/v2/tasks/{task_id}/task_sources HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of task sources.
{
"count": 1,
"task_sources": [
{
"id": "text",
"type": "primary_nas",
"node_paths": [
"text"
],
"range": [
150000,
290000
],
"pool_id": 1,
"parent_storage_id": 1,
"storage_id": 1,
"storage_name": "text",
"pool": {
"id": 6,
"name": "offline-pools",
"comment": "",
"type": "offline_archive",
"content": "cloud",
"storage_id": 2
}
}
]
}API Key Scope: task_sources / create
Pass the username and password of a user in the authorization header. This currently gives full access.
ID or name of task. Task names are not unique, it's recommended to use ID.
[150000,290000]A specific task source.
[150000,290000]The received resource was not correctly formatted.
POST /api/v2/tasks/{task_id}/task_sources HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"type": "primary_nas",
"node_paths": [
"text"
],
"range": [
150000,
290000
],
"pool_id": 1,
"parent_storage_id": 1,
"storage_id": 1,
"storage_name": "text"
}{
"id": "text",
"type": "primary_nas",
"node_paths": [
"text"
],
"range": [
150000,
290000
],
"pool_id": 1,
"parent_storage_id": 1,
"storage_id": 1,
"storage_name": "text",
"pool": {
"id": 6,
"name": "offline-pools",
"comment": "",
"type": "offline_archive",
"content": "cloud",
"storage_id": 2
}
}API Key Scope: task_sources / show
Pass the username and password of a user in the authorization header. This currently gives full access.
ID or name of task. Task names are not unique, it's recommended to use ID.
ID of task source.
A specific task source.
[150000,290000]The requested resource was not found. The detailed error will be of type not_found.
GET /api/v2/tasks/{task_id}/task_sources/{task_source_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"id": "text",
"type": "primary_nas",
"node_paths": [
"text"
],
"range": [
150000,
290000
],
"pool_id": 1,
"parent_storage_id": 1,
"storage_id": 1,
"storage_name": "text",
"pool": {
"id": 6,
"name": "offline-pools",
"comment": "",
"type": "offline_archive",
"content": "cloud",
"storage_id": 2
}
}API Key Scope: task_sources / update
Pass the username and password of a user in the authorization header. This currently gives full access.
ID or name of task. Task names are not unique, it's recommended to use ID.
ID of task source.
[150000,290000]A specific task source.
[150000,290000]The received resource was not correctly formatted.
PUT /api/v2/tasks/{task_id}/task_sources/{task_source_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"type": "primary_nas",
"node_paths": [
"text"
],
"range": [
150000,
290000
],
"pool_id": 1,
"parent_storage_id": 1,
"storage_id": 1,
"storage_name": "text"
}{
"id": "text",
"type": "primary_nas",
"node_paths": [
"text"
],
"range": [
150000,
290000
],
"pool_id": 1,
"parent_storage_id": 1,
"storage_id": 1,
"storage_name": "text",
"pool": {
"id": 6,
"name": "offline-pools",
"comment": "",
"type": "offline_archive",
"content": "cloud",
"storage_id": 2
}
}API Key Scope: task_sources / destroy
Pass the username and password of a user in the authorization header. This currently gives full access.
ID or name of task. Task names are not unique, it's recommended to use ID.
ID of task source.
Task source destroyed.
No content
DELETE /api/v2/tasks/{task_id}/task_sources/{task_source_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
Task source destroyed.
No content
Last updated
Was this helpful?