Marketplace Customer Component Usage Policies
Operations Summary
| Method |
Endpoint |
Description |
| Core CRUD |
|
|
| GET |
/api/marketplace-customer-component-usage-policies/ |
List Marketplace Customer Component Usage Policies |
| GET |
/api/marketplace-customer-component-usage-policies/{uuid}/ |
Retrieve |
| POST |
/api/marketplace-customer-component-usage-policies/ |
Create |
| PUT |
/api/marketplace-customer-component-usage-policies/{uuid}/ |
Update |
| PATCH |
/api/marketplace-customer-component-usage-policies/{uuid}/ |
Partial Update |
| DELETE |
/api/marketplace-customer-component-usage-policies/{uuid}/ |
Delete |
| Other Actions |
|
|
| GET |
/api/marketplace-customer-component-usage-policies/actions/ |
Actions |
Core CRUD
List Marketplace Customer Component Usage Policies
Retrieve
Create
Update
| http \
PUT \
https://api.example.com/api/marketplace-customer-component-usage-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
actions="string-value" \
component_limits_set:='[]'
|
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.customer_component_usage_policy_request import CustomerComponentUsagePolicyRequest # (1)
from waldur_api_client.api.marketplace_customer_component_usage_policies import marketplace_customer_component_usage_policies_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = CustomerComponentUsagePolicyRequest(
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
actions="string-value",
component_limits_set=[]
)
response = marketplace_customer_component_usage_policies_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
CustomerComponentUsagePolicyRequest
- API Source:
marketplace_customer_component_usage_policies_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | import { marketplaceCustomerComponentUsagePoliciesUpdate } from 'waldur-js-client';
try {
const response = await marketplaceCustomerComponentUsagePoliciesUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"scope": "https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"actions": "string-value",
"component_limits_set": []
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
Description |
scope |
string (uri) |
✓ |
|
actions |
string |
✓ |
|
options |
any |
|
Fields for saving actions extra data. Keys are name of actions. |
component_limits_set |
array of objects |
✓ |
|
component_limits_set.limit |
integer |
✓ |
|
component_limits_set.period |
any |
|
|
component_limits_set.component |
string (uuid) |
✓ |
|
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
scope |
string (uri) |
|
scope_name |
string |
|
scope_uuid |
string (uuid) |
|
actions |
string |
|
created |
string (date-time) |
|
created_by_full_name |
string |
|
created_by_username |
string |
|
has_fired |
boolean |
|
fired_datetime |
string (date-time) |
|
options |
any |
Fields for saving actions extra data. Keys are name of actions. |
component_limits_set |
array of objects |
|
component_limits_set.type |
string |
|
component_limits_set.limit |
integer |
|
component_limits_set.period |
any |
|
component_limits_set.period_name |
string |
|
component_limits_set.component |
string (uuid) |
|
Partial Update
Delete
Other Actions
Actions