| http \
GET \
https://api.example.com/api/rancher-cluster-templates/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.rancher_cluster_templates import rancher_cluster_templates_list # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = rancher_cluster_templates_list.sync(client=client)
for item in response:
print(item)
|
- API Source:
rancher_cluster_templates_list
| import { rancherClusterTemplatesList } from 'waldur-js-client';
try {
const response = await rancherClusterTemplatesList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
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 |
uuid |
string (uuid) |
name |
string |
description |
string |
created |
string (date-time) |
modified |
string (date-time) |
nodes |
array of objects |
nodes.min_vcpu |
integer |
nodes.min_ram |
integer |
nodes.system_volume_size |
integer |
nodes.preferred_volume_type |
string |
nodes.role |
string |