Rancher Workloads
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/rancher-workloads/ |
List Rancher Workloads |
| GET | /api/rancher-workloads/{uuid}/ |
Retrieve |
| POST | /api/rancher-workloads/ |
Create |
| PUT | /api/rancher-workloads/{uuid}/ |
Update |
| PATCH | /api/rancher-workloads/{uuid}/ |
Partial Update |
| DELETE | /api/rancher-workloads/{uuid}/ |
Delete |
| Other Actions | ||
| GET | /api/rancher-workloads/{uuid}/yaml/ |
Yaml |
| POST | /api/rancher-workloads/{uuid}/redeploy/ |
Redeploy |
| PUT | /api/rancher-workloads/{uuid}/yaml/ |
Yaml |
Core CRUD
List Rancher Workloads
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
rancher_workloads_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
cluster_uuid |
string (uuid) | |
name |
string | |
name_exact |
string | |
namespace_uuid |
string (uuid) | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
project_uuid |
string (uuid) | |
settings |
string | |
settings_uuid |
string (uuid) |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_workloads_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |
Create
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
RancherWorkloadRequest - API Source:
rancher_workloads_create
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
| Field | Type | Required |
|---|---|---|
name |
string | ✓ |
runtime_state |
string | |
cluster |
string (uri) | |
project |
string (uri) | |
namespace |
string (uri) | |
scale |
integer | ✓ |
201 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |
Update
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
RancherWorkloadRequest - API Source:
rancher_workloads_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
name |
string | ✓ |
runtime_state |
string | |
cluster |
string (uri) | |
project |
string (uri) | |
namespace |
string (uri) | |
scale |
integer | ✓ |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedRancherWorkloadRequest - API Source:
rancher_workloads_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
name |
string | |
runtime_state |
string | |
cluster |
string (uri) | |
project |
string (uri) | |
namespace |
string (uri) | |
scale |
integer |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_workloads_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Yaml
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_workloads_yaml_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |
Redeploy
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_workloads_redeploy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body
Yaml
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
RancherWorkloadRequest - API Source:
rancher_workloads_yaml_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
name |
string | ✓ |
runtime_state |
string | |
cluster |
string (uri) | |
project |
string (uri) | |
namespace |
string (uri) | |
scale |
integer | ✓ |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
created |
string (date-time) |
modified |
string (date-time) |
runtime_state |
string |
cluster |
string (uri) |
cluster_uuid |
string (uuid) |
cluster_name |
string |
project |
string (uri) |
project_uuid |
string (uuid) |
project_name |
string |
namespace |
string (uri) |
namespace_uuid |
string (uuid) |
namespace_name |
string |
scale |
integer |