| http \
GET \
https://api.example.com/api/booking-resources/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.booking_resources import booking_resources_list # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = booking_resources_list.sync(client=client)
for item in response:
print(item)
|
- API Source:
booking_resources_list
| import { bookingResourcesList } from 'waldur-js-client';
try {
const response = await bookingResourcesList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
backend_id |
string |
Backend ID |
category_uuid |
string (uuid) |
|
component_count |
number |
Filter by exact number of components |
connected_customer_uuid |
string (uuid) |
|
created |
string (date-time) |
Created after |
customer |
string |
|
customer_uuid |
string (uuid) |
|
downscaled |
boolean |
|
field |
array |
|
has_terminate_date |
boolean |
Has termination date |
lexis_links_supported |
boolean |
LEXIS links supported |
limit_based |
boolean |
Filter by limit-based offerings |
limit_component_count |
number |
Filter by exact number of limit-based components |
modified |
string (date-time) |
Modified after |
name |
string |
|
name_exact |
string |
|
o |
array |
Ordering
|
offering |
string |
|
offering_billable |
boolean |
|
offering_shared |
boolean |
Offering shared |
offering_slug |
array |
Multiple values may be separated by commas. |
offering_type |
string |
|
offering_uuid |
array |
Multiple values may be separated by commas. |
only_limit_based |
boolean |
Filter resources with only limit-based components |
only_usage_based |
boolean |
Filter resources with only usage-based components |
page |
integer |
A page number within the paginated result set. |
page_size |
integer |
Number of results to return per page. |
parent_offering_uuid |
string (uuid) |
|
paused |
boolean |
|
plan_uuid |
string (uuid) |
|
project_name |
string |
|
project_uuid |
string (uuid) |
|
provider_uuid |
string (uuid) |
|
query |
string |
Search by resource UUID, name, slug, backend ID, effective ID, IPs or hypervisor |
restrict_member_access |
boolean |
|
runtime_state |
string |
Runtime state |
service_manager_uuid |
string (uuid) |
Service Manager UUID |
state |
array |
|
usage_based |
boolean |
Filter by usage-based offerings |
visible_to_username |
string |
Visible to username |
200 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
offering |
string (uri) |
|
offering_name |
string |
|
offering_uuid |
string (uuid) |
|
offering_description |
string |
|
offering_image |
string (uri) |
|
offering_thumbnail |
string (uri) |
|
offering_type |
string |
|
offering_shared |
boolean |
Accessible to all customers. |
offering_billable |
boolean |
Purchase and usage is invoiced. |
offering_plugin_options |
any |
Public data used by specific plugin, such as storage mode for OpenStack. |
provider_name |
string |
|
provider_uuid |
string (uuid) |
|
provider_slug |
string |
|
category_title |
string |
|
category_uuid |
string (uuid) |
|
category_icon |
string (uri) |
|
plan |
string (uri) |
|
plan_unit |
any |
|
plan_name |
string |
|
plan_uuid |
string (uuid) |
|
plan_description |
string |
|
attributes |
object (free-form) |
|
limits |
object (free-form) |
|
uuid |
string (uuid) |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
url |
string (uri) |
|
scope |
string |
|
description |
string |
|
state |
any |
|
resource_uuid |
string (uuid) |
|
backend_id |
string |
|
effective_id |
string |
|
resource_type |
string |
|
project |
string (uri) |
|
project_uuid |
string (uuid) |
|
project_name |
string |
|
project_description |
string |
|
project_end_date |
string (date) |
The date is inclusive. Once reached, all project resource will be scheduled for termination. |
project_end_date_requested_by |
string (uri) |
|
customer_uuid |
string (uuid) |
|
customer_name |
string |
|
offering_slug |
string |
|
parent_offering_uuid |
string (uuid) |
|
parent_offering_name |
string |
|
parent_offering_slug |
string |
|
parent_uuid |
string (uuid) |
|
parent_name |
string |
|
backend_metadata |
any |
|
is_usage_based |
boolean |
|
is_limit_based |
boolean |
|
name |
string |
|
slug |
string |
|
current_usages |
object (free-form) |
|
can_terminate |
boolean |
|
report |
array of objects |
|
report.header |
string |
|
report.body |
string |
|
end_date |
string (date) |
The date is inclusive. Once reached, a resource will be scheduled for termination. |
end_date_requested_by |
string (uri) |
|
username |
string |
|
limit_usage |
object (free-form) |
|
downscaled |
boolean |
|
restrict_member_access |
boolean |
|
paused |
boolean |
|
endpoints |
array of objects |
|
endpoints.uuid |
string (uuid) |
|
endpoints.name |
string |
|
endpoints.url |
string |
|
error_message |
string |
|
error_traceback |
string |
|
options |
any |
|
available_actions |
array of strings |
|
last_sync |
string (date-time) |
|
order_in_progress |
any |
|
creation_order |
any |
|
service_settings_uuid |
string (uuid) |
|
project_slug |
string |
|
customer_slug |
string |
|
user_requires_reconsent |
boolean |
Check if the current user needs to re-consent for this resource's offering. |
renewal_date |
object (free-form) |
|
created_by |
string (uri) |
|
created_by_username |
string |
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
created_by_full_name |
string |
|
consumer_reviewed_by |
string (uri) |
|
consumer_reviewed_by_username |
string |
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
consumer_reviewed_by_full_name |
string |
|
slots |
array of objects |
|
slots.start |
string (date-time) |
|
slots.end |
string (date-time) |
|
slots.backend_id |
string |
|