| http \
GET \
https://api.example.com/api/marketplace-plan-components/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_plan_components import marketplace_plan_components_list # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_plan_components_list.sync(client=client)
for item in response:
print(item)
|
- API Source:
marketplace_plan_components_list
| import { marketplacePlanComponentsList } from 'waldur-js-client';
try {
const response = await marketplacePlanComponentsList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
archived |
boolean |
|
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. |
plan_uuid |
string (uuid) |
Plan UUID |
shared |
boolean |
|
200 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
offering_name |
string |
|
plan_name |
string |
|
plan_unit |
any |
|
component_name |
string |
Display name for the measured unit, for example, Floating IP. |
measured_unit |
string |
Unit of measurement, for example, GB. |
billing_type |
any |
|
amount |
integer |
|
price |
string (decimal) |
|
future_price |
string (decimal) |
|
discount_threshold |
integer |
Minimum amount to be eligible for discount. |
discount_rate |
integer |
Discount rate in percentage. |