Skip to content

Marketplace Customer Estimated Cost Policies

Operations Summary

Method Endpoint Description
Core CRUD
GET /api/marketplace-customer-estimated-cost-policies/ List Marketplace Customer Estimated Cost Policies
GET /api/marketplace-customer-estimated-cost-policies/{uuid}/ Retrieve
POST /api/marketplace-customer-estimated-cost-policies/ Create
PUT /api/marketplace-customer-estimated-cost-policies/{uuid}/ Update
PATCH /api/marketplace-customer-estimated-cost-policies/{uuid}/ Partial Update
DELETE /api/marketplace-customer-estimated-cost-policies/{uuid}/ Delete
Other Actions
GET /api/marketplace-customer-estimated-cost-policies/actions/ Actions

Core CRUD

List Marketplace Customer Estimated Cost Policies

1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-customer-estimated-cost-policies/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_list # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_customer_estimated_cost_policies_list.sync(client=client)

for item in response:
    print(item)
  1. API Source: marketplace_customer_estimated_cost_policies_list
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { marketplaceCustomerEstimatedCostPoliciesList } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesList({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
customer string
customer_uuid string (uuid)
page integer A page number within the paginated result set.
page_size integer Number of results to return per page.
scope string
scope_uuid string (uuid)

200 -

The response body is an array of objects, where each object has the following structure:

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
customer_credit integer
billing_price_estimate any

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-customer-estimated-cost-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  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_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_customer_estimated_cost_policies_retrieve.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: marketplace_customer_estimated_cost_policies_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { marketplaceCustomerEstimatedCostPoliciesRetrieve } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid 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.
limit_cost integer
period any
period_name string
customer_credit integer
billing_price_estimate any

Create

1
2
3
4
5
6
7
http \
  POST \
  https://api.example.com/api/marketplace-customer-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
 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.customer_estimated_cost_policy_request import CustomerEstimatedCostPolicyRequest # (1)
from waldur_api_client.api.marketplace_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_create # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = CustomerEstimatedCostPolicyRequest(
    scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    actions="string-value",
    limit_cost=123
)
response = marketplace_customer_estimated_cost_policies_create.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: CustomerEstimatedCostPolicyRequest
  2. API Source: marketplace_customer_estimated_cost_policies_create
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import { marketplaceCustomerEstimatedCostPoliciesCreate } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesCreate({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "scope": "https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "actions": "string-value",
    "limit_cost": 123
  }
});
  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

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
customer_credit integer
billing_price_estimate any

Update

1
2
3
4
5
6
7
http \
  PUT \
  https://api.example.com/api/marketplace-customer-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
 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_estimated_cost_policy_request import CustomerEstimatedCostPolicyRequest # (1)
from waldur_api_client.api.marketplace_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = CustomerEstimatedCostPolicyRequest(
    scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    actions="string-value",
    limit_cost=123
)
response = marketplace_customer_estimated_cost_policies_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: CustomerEstimatedCostPolicyRequest
  2. API Source: marketplace_customer_estimated_cost_policies_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import { marketplaceCustomerEstimatedCostPoliciesUpdate } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesUpdate({
  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
  }
});
  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

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
customer_credit integer
billing_price_estimate any

Partial Update

1
2
3
4
http \
  PATCH \
  https://api.example.com/api/marketplace-customer-estimated-cost-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  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_customer_estimated_cost_policy_request import PatchedCustomerEstimatedCostPolicyRequest # (1)
from waldur_api_client.api.marketplace_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_partial_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = PatchedCustomerEstimatedCostPolicyRequest()
response = marketplace_customer_estimated_cost_policies_partial_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: PatchedCustomerEstimatedCostPolicyRequest
  2. API Source: marketplace_customer_estimated_cost_policies_partial_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { marketplaceCustomerEstimatedCostPoliciesPartialUpdate } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesPartialUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  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

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
customer_credit integer
billing_price_estimate any

Delete

1
2
3
4
http \
  DELETE \
  https://api.example.com/api/marketplace-customer-estimated-cost-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  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_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_destroy # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_customer_estimated_cost_policies_destroy.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: marketplace_customer_estimated_cost_policies_destroy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { marketplaceCustomerEstimatedCostPoliciesDestroy } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesDestroy({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

204 - No response body


Other Actions

Actions

1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-customer-estimated-cost-policies/actions/ \
  Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_customer_estimated_cost_policies import marketplace_customer_estimated_cost_policies_actions_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_customer_estimated_cost_policies_actions_retrieve.sync(client=client)

print(response)
  1. API Source: marketplace_customer_estimated_cost_policies_actions_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { marketplaceCustomerEstimatedCostPoliciesActionsRetrieve } from 'waldur-js-client';

try {
  const response = await marketplaceCustomerEstimatedCostPoliciesActionsRetrieve({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}

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
customer_credit integer
billing_price_estimate any