Marketplace Category Components
Operations Summary
List category components
Returns a paginated list of all components defined at the category level. These act as templates for components in offerings.
Retrieve a category component
Returns the details of a specific category component, identified by its ID.
| http \
GET \
https://api.example.com/api/marketplace-category-components/123/ \
Authorization:"Token YOUR_API_TOKEN"
|
1
2
3
4
5
6
7
8
9
10
11
12 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_category_components import marketplace_category_components_retrieve # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_category_components_retrieve.sync(
id=123,
client=client
)
print(response)
|
- API Source:
marketplace_category_components_retrieve
1
2
3
4
5
6
7
8
9
10
11
12
13 | import { marketplaceCategoryComponentsRetrieve } from 'waldur-js-client';
try {
const response = await marketplaceCategoryComponentsRetrieve({
auth: "Token YOUR_API_TOKEN",
path: {
"id": 123
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
Description |
id |
integer |
✓ |
A unique integer value identifying this category component. |
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
type |
string |
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
measured_unit |
string |
Unit of measurement, for example, GB. |
category |
object |
|
category.url |
string (uri) |
|
category.uuid |
string (uuid) |
|
category.title |
string |
|
Create a category component
Creates a new component for a category. Requires staff permissions.
| http \
POST \
https://api.example.com/api/marketplace-category-components/ \
Authorization:"Token YOUR_API_TOKEN" \
type="string-value" \
name="my-awesome-marketplace-category-component" \
category:='{}'
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.category_components_request import CategoryComponentsRequest # (1)
from waldur_api_client.api.marketplace_category_components import marketplace_category_components_create # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = CategoryComponentsRequest(
type="string-value",
name="my-awesome-marketplace-category-component",
category={}
)
response = marketplace_category_components_create.sync(
client=client,
body=body_data
)
print(response)
|
- Model Source:
CategoryComponentsRequest
- API Source:
marketplace_category_components_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | import { marketplaceCategoryComponentsCreate } from 'waldur-js-client';
try {
const response = await marketplaceCategoryComponentsCreate({
auth: "Token YOUR_API_TOKEN",
body: {
"type": "string-value",
"name": "my-awesome-marketplace-category-component",
"category": {}
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Field |
Type |
Required |
Description |
type |
string |
✓ |
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
✓ |
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
|
measured_unit |
string |
|
Unit of measurement, for example, GB. |
category |
object |
✓ |
|
category.title |
string |
✓ |
|
201 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
type |
string |
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
measured_unit |
string |
Unit of measurement, for example, GB. |
category |
object |
|
category.url |
string (uri) |
|
category.uuid |
string (uuid) |
|
category.title |
string |
|
Update a category component
Updates an existing category component. Requires staff permissions.
| http \
PUT \
https://api.example.com/api/marketplace-category-components/123/ \
Authorization:"Token YOUR_API_TOKEN" \
type="string-value" \
name="my-awesome-marketplace-category-component" \
category:='{}'
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.category_components_request import CategoryComponentsRequest # (1)
from waldur_api_client.api.marketplace_category_components import marketplace_category_components_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = CategoryComponentsRequest(
type="string-value",
name="my-awesome-marketplace-category-component",
category={}
)
response = marketplace_category_components_update.sync(
id=123,
client=client,
body=body_data
)
print(response)
|
- Model Source:
CategoryComponentsRequest
- API Source:
marketplace_category_components_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | import { marketplaceCategoryComponentsUpdate } from 'waldur-js-client';
try {
const response = await marketplaceCategoryComponentsUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"id": 123
},
body: {
"type": "string-value",
"name": "my-awesome-marketplace-category-component",
"category": {}
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
Description |
id |
integer |
✓ |
A unique integer value identifying this category component. |
| Field |
Type |
Required |
Description |
type |
string |
✓ |
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
✓ |
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
|
measured_unit |
string |
|
Unit of measurement, for example, GB. |
category |
object |
✓ |
|
category.title |
string |
✓ |
|
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
type |
string |
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
measured_unit |
string |
Unit of measurement, for example, GB. |
category |
object |
|
category.url |
string (uri) |
|
category.uuid |
string (uuid) |
|
category.title |
string |
|
Partially update a category component
Partially updates an existing category component. Requires staff permissions.
| http \
PATCH \
https://api.example.com/api/marketplace-category-components/123/ \
Authorization:"Token YOUR_API_TOKEN"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_category_components_request import PatchedCategoryComponentsRequest # (1)
from waldur_api_client.api.marketplace_category_components import marketplace_category_components_partial_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = PatchedCategoryComponentsRequest()
response = marketplace_category_components_partial_update.sync(
id=123,
client=client,
body=body_data
)
print(response)
|
- Model Source:
PatchedCategoryComponentsRequest
- API Source:
marketplace_category_components_partial_update
1
2
3
4
5
6
7
8
9
10
11
12
13 | import { marketplaceCategoryComponentsPartialUpdate } from 'waldur-js-client';
try {
const response = await marketplaceCategoryComponentsPartialUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"id": 123
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
Description |
id |
integer |
✓ |
A unique integer value identifying this category component. |
| Field |
Type |
Required |
Description |
type |
string |
|
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
|
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
|
measured_unit |
string |
|
Unit of measurement, for example, GB. |
category |
object |
|
|
category.title |
string |
✓ |
|
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
type |
string |
Unique internal name of the measured unit, for example floating_ip. |
name |
string |
Display name for the measured unit, for example, Floating IP. |
description |
string |
|
measured_unit |
string |
Unit of measurement, for example, GB. |
category |
object |
|
category.url |
string (uri) |
|
category.uuid |
string (uuid) |
|
category.title |
string |
|
Delete a category component
Deletes a category component. Requires staff permissions.