Rancher Nodes
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/rancher-nodes/ |
List Rancher Nodes |
| GET | /api/rancher-nodes/{uuid}/ |
Retrieve |
| POST | /api/rancher-nodes/ |
Create |
| POST | /api/rancher-nodes/{uuid}/pull/ |
Synchronize resource state |
| POST | /api/rancher-nodes/{uuid}/unlink/ |
Unlink resource |
| POST | /api/rancher-nodes/{uuid}/unlink_openstack/ |
Unlinks node from OpenStack instance |
| DELETE | /api/rancher-nodes/{uuid}/ |
Delete |
| Other Actions | ||
| GET | /api/rancher-nodes/{uuid}/console_log/ |
Returns console log for the node |
| GET | /api/rancher-nodes/{uuid}/console/ |
Returns console URL for the node |
| POST | /api/rancher-nodes/{uuid}/link_openstack/ |
Links node to OpenStack instance |
Core CRUD
List Rancher Nodes
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
rancher_nodes_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
cluster_uuid |
string (uuid) | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
created |
string (date-time) | |
modified |
string (date-time) | |
name |
string | |
backend_id |
string | |
project_uuid |
string (uuid) | |
service_settings_name |
string | |
service_settings_uuid |
string (uuid) | |
resource_type |
string | |
state |
any | |
cluster |
string (uri) | |
cluster_name |
string | |
cluster_uuid |
string (uuid) | |
instance |
string | |
instance_name |
string | |
instance_uuid |
string (uuid) | |
instance_marketplace_uuid |
string (uuid) | |
role |
string | Enum: agent, server |
k8s_version |
string | |
docker_version |
string | |
cpu_allocated |
number (double) | |
cpu_total |
integer | |
ram_allocated |
integer | Allocated RAM in Mi. |
ram_total |
integer | Total RAM in Mi. |
pods_allocated |
integer | |
pods_total |
integer | |
labels |
any | |
annotations |
any | |
runtime_state |
string |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
created |
string (date-time) | |
modified |
string (date-time) | |
name |
string | |
backend_id |
string | |
project_uuid |
string (uuid) | |
service_settings_name |
string | |
service_settings_uuid |
string (uuid) | |
resource_type |
string | |
state |
any | |
cluster |
string (uri) | |
cluster_name |
string | |
cluster_uuid |
string (uuid) | |
instance |
string | |
instance_name |
string | |
instance_uuid |
string (uuid) | |
instance_marketplace_uuid |
string (uuid) | |
role |
string | Enum: agent, server |
k8s_version |
string | |
docker_version |
string | |
cpu_allocated |
number (double) | |
cpu_total |
integer | |
ram_allocated |
integer | Allocated RAM in Mi. |
ram_total |
integer | Total RAM in Mi. |
pods_allocated |
integer | |
pods_total |
integer | |
labels |
any | |
annotations |
any | |
runtime_state |
string |
Create
1 2 3 4 5 6 7 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
RancherCreateNodeRequest - API Source:
rancher_nodes_create
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
| Field | Type | Required |
|---|---|---|
cluster |
string (uri) | ✓ |
role |
string | ✓ |
system_volume_size |
integer | |
system_volume_type |
string (uri) | |
memory |
integer | |
cpu |
integer | |
subnet |
string (uri) | ✓ |
flavor |
string (uri) | |
data_volumes |
array of objects | |
data_volumes.size |
integer | ✓ |
data_volumes.volume_type |
string (uri) | |
data_volumes.filesystem |
string | |
data_volumes.mount_point |
string | ✓ |
ssh_public_key |
string (uri) | |
tenant |
string (uri) |
201 -
| Field | Type |
|---|---|
cluster |
string (uri) |
role |
string |
uuid |
string (uuid) |
Synchronize resource state
Schedule an asynchronous pull operation to synchronize resource state from the backend. Returns 202 if the pull was scheduled successfully, or 409 if the pull operation is not implemented for this resource type.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_pull
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
202 - No response body
409 - No response body
Unlink resource
Delete resource from the database without scheduling operations on backend and without checking current state of the resource. It is intended to be used for removing resource stuck in transitioning state.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_unlink
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Unlinks node from OpenStack instance
Unlinks node from OpenStack instance.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_unlink_openstack
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_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
Returns console log for the node
Returns console log for the node.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_console_log_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type |
|---|---|
length |
integer |
200 -
404 - No response body
Returns console URL for the node
Returns console URL for the node.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
rancher_nodes_console_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) |
Links node to OpenStack instance
Links node to OpenStack instance.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
LinkOpenstackRequest - API Source:
rancher_nodes_link_openstack
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
instance |
string (uri) | ✓ |
200 - No response body