Marketplace Offering Estimated Cost Policies
Operations Summary
Core CRUD
List Marketplace Offering Estimated Cost Policies
Retrieve
Create
| http \
POST \
https://api.example.com/api/marketplace-offering-estimated-cost-policies/ \
Authorization:"Token YOUR_API_TOKEN" \
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
actions="string-value" \
limit_cost=123 \
organization_groups:='[]'
|
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.offering_estimated_cost_policy_request import OfferingEstimatedCostPolicyRequest # (1)
from waldur_api_client.api.marketplace_offering_estimated_cost_policies import marketplace_offering_estimated_cost_policies_create # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = OfferingEstimatedCostPolicyRequest(
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
actions="string-value",
limit_cost=123,
organization_groups=[]
)
response = marketplace_offering_estimated_cost_policies_create.sync(
client=client,
body=body_data
)
print(response)
|
- Model Source:
OfferingEstimatedCostPolicyRequest
- API Source:
marketplace_offering_estimated_cost_policies_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | import { marketplaceOfferingEstimatedCostPoliciesCreate } from 'waldur-js-client';
try {
const response = await marketplaceOfferingEstimatedCostPoliciesCreate({
auth: "Token YOUR_API_TOKEN",
body: {
"scope": "https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"actions": "string-value",
"limit_cost": 123,
"organization_groups": []
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Field |
Type |
Required |
Description |
scope |
string (uri) |
✓ |
|
actions |
string |
✓ |
|
options |
any |
|
Fields for saving actions extra data. Keys are name of actions. |
limit_cost |
integer |
✓ |
|
period |
any |
|
|
organization_groups |
array of string (uri)s |
✓ |
|
201 -
| 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. |
limit_cost |
integer |
|
period |
any |
|
period_name |
string |
|
organization_groups |
array of string (uri)s |
|
Update
| http \
PUT \
https://api.example.com/api/marketplace-offering-estimated-cost-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" \
limit_cost=123 \
organization_groups:='[]'
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.offering_estimated_cost_policy_request import OfferingEstimatedCostPolicyRequest # (1)
from waldur_api_client.api.marketplace_offering_estimated_cost_policies import marketplace_offering_estimated_cost_policies_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = OfferingEstimatedCostPolicyRequest(
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
actions="string-value",
limit_cost=123,
organization_groups=[]
)
response = marketplace_offering_estimated_cost_policies_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
OfferingEstimatedCostPolicyRequest
- API Source:
marketplace_offering_estimated_cost_policies_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | import { marketplaceOfferingEstimatedCostPoliciesUpdate } from 'waldur-js-client';
try {
const response = await marketplaceOfferingEstimatedCostPoliciesUpdate({
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",
"limit_cost": 123,
"organization_groups": []
}
});
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. |
limit_cost |
integer |
✓ |
|
period |
any |
|
|
organization_groups |
array of string (uri)s |
✓ |
|
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. |
limit_cost |
integer |
|
period |
any |
|
period_name |
string |
|
organization_groups |
array of string (uri)s |
|
Partial Update
Delete
Other Actions
List available actions for OfferingEstimatedCostPolicy
List available actions for OfferingEstimatedCostPolicy