Backend Resource Requests
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/backend-resource-requests/ |
List backend resource requests |
| GET | /api/backend-resource-requests/{uuid}/ |
Retrieve a backend resource request |
| POST | /api/backend-resource-requests/ |
Create a backend resource request |
| Other Actions | ||
| POST | /api/backend-resource-requests/{uuid}/set_done/ |
Mark a request as done |
| POST | /api/backend-resource-requests/{uuid}/set_erred/ |
Mark a request as erred |
| POST | /api/backend-resource-requests/{uuid}/start_processing/ |
Start processing a request |
Core CRUD
List backend resource requests
Returns a paginated list of requests for backend resources.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
backend_resource_requests_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
created |
string (date-time) | Created after |
finished |
string (date-time) | Modified after |
modified |
string (date-time) | Modified after |
o |
array | Ordering |
offering_uuid |
string (uuid) | Offering UUID |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
started |
string (date-time) | Created after |
state |
array | Backend resource request state |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
uuid |
string (uuid) | |
created |
string (date-time) | |
modified |
string (date-time) | |
started |
string (date-time) | Time when request processing started |
finished |
string (date-time) | Time when request processing finished |
state |
any | |
offering |
string (uuid) | |
offering_name |
string | |
offering_url |
string (uri) | |
error_message |
string | |
error_traceback |
string |
Retrieve a backend resource request
Returns the details of a specific backend resource request.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
backend_resource_requests_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
uuid |
string (uuid) | |
created |
string (date-time) | |
modified |
string (date-time) | |
started |
string (date-time) | Time when request processing started |
finished |
string (date-time) | Time when request processing finished |
state |
any | |
offering |
string (uuid) | |
offering_name |
string | |
offering_url |
string (uri) | |
error_message |
string | |
error_traceback |
string |
Create a backend resource request
Creates a new request to fetch a list of importable resources from a backend. This is typically used by staff to trigger a site agent to report available resources.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
BackendResourceReqRequest - API Source:
backend_resource_requests_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
offering |
string (uuid) | ✓ |
201 -
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
uuid |
string (uuid) | |
created |
string (date-time) | |
modified |
string (date-time) | |
started |
string (date-time) | Time when request processing started |
finished |
string (date-time) | Time when request processing finished |
state |
any | |
offering |
string (uuid) | |
offering_name |
string | |
offering_url |
string (uri) | |
error_message |
string | |
error_traceback |
string |
Other Actions
Mark a request as done
Transitions the request state from 'Processing' to 'Done'. This is used by a site agent to signal that it has successfully reported all available resources.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
backend_resource_requests_set_done
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
status |
string |
Mark a request as erred
Transitions the request state to 'Erred'. This is used by a site agent to report a failure during the resource fetching process. An error message and traceback should be provided.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
BackendResourceRequestSetErredRequest - API Source:
backend_resource_requests_set_erred
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
error_message |
string | |
error_traceback |
string |
200 -
| Field | Type |
|---|---|
status |
string |
Start processing a request
Transitions the request state from 'Sent' to 'Processing'. This is used by a site agent to acknowledge that it has started fetching the resource list.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
backend_resource_requests_start_processing
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
status |
string |