Marketplace Slurm Periodic Usage Policies
Operations Summary
| Method |
Endpoint |
Description |
| Core CRUD |
|
|
| GET |
/api/marketplace-slurm-periodic-usage-policies/ |
List Marketplace Slurm Periodic Usage Policies |
| GET |
/api/marketplace-slurm-periodic-usage-policies/{uuid}/ |
Retrieve |
| POST |
/api/marketplace-slurm-periodic-usage-policies/ |
Create |
| PUT |
/api/marketplace-slurm-periodic-usage-policies/{uuid}/ |
Update |
| PATCH |
/api/marketplace-slurm-periodic-usage-policies/{uuid}/ |
Partial Update |
| DELETE |
/api/marketplace-slurm-periodic-usage-policies/{uuid}/ |
Delete |
| Other Actions |
|
|
| GET |
/api/marketplace-slurm-periodic-usage-policies/actions/ |
Actions |
Core CRUD
List Marketplace Slurm Periodic Usage Policies
Retrieve
Create
| http \
POST \
https://api.example.com/api/marketplace-slurm-periodic-usage-policies/ \
Authorization:"Token YOUR_API_TOKEN" \
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
actions="string-value" \
organization_groups:='[]' \
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.slurm_periodic_usage_policy_request import SlurmPeriodicUsagePolicyRequest # (1)
from waldur_api_client.api.marketplace_slurm_periodic_usage_policies import marketplace_slurm_periodic_usage_policies_create # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = SlurmPeriodicUsagePolicyRequest(
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
actions="string-value",
organization_groups=[],
component_limits_set=[]
)
response = marketplace_slurm_periodic_usage_policies_create.sync(
client=client,
body=body_data
)
print(response)
|
- Model Source:
SlurmPeriodicUsagePolicyRequest
- API Source:
marketplace_slurm_periodic_usage_policies_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | import { marketplaceSlurmPeriodicUsagePoliciesCreate } from 'waldur-js-client';
try {
const response = await marketplaceSlurmPeriodicUsagePoliciesCreate({
auth: "Token YOUR_API_TOKEN",
body: {
"scope": "https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"actions": "string-value",
"organization_groups": [],
"component_limits_set": []
}
});
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. |
organization_groups |
array of string (uri)s |
✓ |
|
component_limits_set |
array of objects |
✓ |
|
component_limits_set.type |
string |
✓ |
|
component_limits_set.limit |
integer |
✓ |
|
period |
any |
|
|
limit_type |
any |
|
SLURM limit type to apply |
tres_billing_enabled |
boolean |
|
Use TRES billing units instead of raw TRES values |
tres_billing_weights |
any |
|
TRES billing weights (e.g., {"CPU": 0.015625, "Mem": 0.001953125, "GRES/gpu": 0.25}) |
fairshare_decay_half_life |
integer |
|
Fairshare decay half-life in days (matches SLURM PriorityDecayHalfLife) |
grace_ratio |
number (double) |
|
Grace period ratio (0.2 = 20% overconsumption allowed) |
carryover_enabled |
boolean |
|
Enable unused allocation carryover to next period |
raw_usage_reset |
boolean |
|
Reset raw usage at period transitions (PriorityUsageResetPeriod=None) |
qos_strategy |
any |
|
QoS management strategy |
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. |
organization_groups |
array of string (uri)s |
|
component_limits_set |
array of objects |
|
component_limits_set.type |
string |
|
component_limits_set.limit |
integer |
|
period |
any |
|
period_name |
string |
|
limit_type |
any |
SLURM limit type to apply |
tres_billing_enabled |
boolean |
Use TRES billing units instead of raw TRES values |
tres_billing_weights |
any |
TRES billing weights (e.g., {"CPU": 0.015625, "Mem": 0.001953125, "GRES/gpu": 0.25}) |
fairshare_decay_half_life |
integer |
Fairshare decay half-life in days (matches SLURM PriorityDecayHalfLife) |
grace_ratio |
number (double) |
Grace period ratio (0.2 = 20% overconsumption allowed) |
carryover_enabled |
boolean |
Enable unused allocation carryover to next period |
raw_usage_reset |
boolean |
Reset raw usage at period transitions (PriorityUsageResetPeriod=None) |
qos_strategy |
any |
QoS management strategy |
Update
| http \
PUT \
https://api.example.com/api/marketplace-slurm-periodic-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" \
organization_groups:='[]' \
component_limits_set:='[]'
|
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.slurm_periodic_usage_policy_request import SlurmPeriodicUsagePolicyRequest # (1)
from waldur_api_client.api.marketplace_slurm_periodic_usage_policies import marketplace_slurm_periodic_usage_policies_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = SlurmPeriodicUsagePolicyRequest(
scope="https://api.example.com/api/scope/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
actions="string-value",
organization_groups=[],
component_limits_set=[]
)
response = marketplace_slurm_periodic_usage_policies_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
SlurmPeriodicUsagePolicyRequest
- API Source:
marketplace_slurm_periodic_usage_policies_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | import { marketplaceSlurmPeriodicUsagePoliciesUpdate } from 'waldur-js-client';
try {
const response = await marketplaceSlurmPeriodicUsagePoliciesUpdate({
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",
"organization_groups": [],
"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. |
organization_groups |
array of string (uri)s |
✓ |
|
component_limits_set |
array of objects |
✓ |
|
component_limits_set.type |
string |
✓ |
|
component_limits_set.limit |
integer |
✓ |
|
period |
any |
|
|
limit_type |
any |
|
SLURM limit type to apply |
tres_billing_enabled |
boolean |
|
Use TRES billing units instead of raw TRES values |
tres_billing_weights |
any |
|
TRES billing weights (e.g., {"CPU": 0.015625, "Mem": 0.001953125, "GRES/gpu": 0.25}) |
fairshare_decay_half_life |
integer |
|
Fairshare decay half-life in days (matches SLURM PriorityDecayHalfLife) |
grace_ratio |
number (double) |
|
Grace period ratio (0.2 = 20% overconsumption allowed) |
carryover_enabled |
boolean |
|
Enable unused allocation carryover to next period |
raw_usage_reset |
boolean |
|
Reset raw usage at period transitions (PriorityUsageResetPeriod=None) |
qos_strategy |
any |
|
QoS management strategy |
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. |
organization_groups |
array of string (uri)s |
|
component_limits_set |
array of objects |
|
component_limits_set.type |
string |
|
component_limits_set.limit |
integer |
|
period |
any |
|
period_name |
string |
|
limit_type |
any |
SLURM limit type to apply |
tres_billing_enabled |
boolean |
Use TRES billing units instead of raw TRES values |
tres_billing_weights |
any |
TRES billing weights (e.g., {"CPU": 0.015625, "Mem": 0.001953125, "GRES/gpu": 0.25}) |
fairshare_decay_half_life |
integer |
Fairshare decay half-life in days (matches SLURM PriorityDecayHalfLife) |
grace_ratio |
number (double) |
Grace period ratio (0.2 = 20% overconsumption allowed) |
carryover_enabled |
boolean |
Enable unused allocation carryover to next period |
raw_usage_reset |
boolean |
Reset raw usage at period transitions (PriorityUsageResetPeriod=None) |
qos_strategy |
any |
QoS management strategy |
Partial Update
| http \
PATCH \
https://api.example.com/api/marketplace-slurm-periodic-usage-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_slurm_periodic_usage_policy_request import PatchedSlurmPeriodicUsagePolicyRequest # (1)
from waldur_api_client.api.marketplace_slurm_periodic_usage_policies import marketplace_slurm_periodic_usage_policies_partial_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = PatchedSlurmPeriodicUsagePolicyRequest()
response = marketplace_slurm_periodic_usage_policies_partial_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
PatchedSlurmPeriodicUsagePolicyRequest
- API Source:
marketplace_slurm_periodic_usage_policies_partial_update
1
2
3
4
5
6
7
8
9
10
11
12
13 | import { marketplaceSlurmPeriodicUsagePoliciesPartialUpdate } from 'waldur-js-client';
try {
const response = await marketplaceSlurmPeriodicUsagePoliciesPartialUpdate({
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. |
organization_groups |
array of string (uri)s |
|
|
component_limits_set |
array of objects |
|
|
component_limits_set.type |
string |
✓ |
|
component_limits_set.limit |
integer |
✓ |
|
period |
any |
|
|
limit_type |
any |
|
SLURM limit type to apply |
tres_billing_enabled |
boolean |
|
Use TRES billing units instead of raw TRES values |
tres_billing_weights |
any |
|
TRES billing weights (e.g., {"CPU": 0.015625, "Mem": 0.001953125, "GRES/gpu": 0.25}) |
fairshare_decay_half_life |
integer |
|
Fairshare decay half-life in days (matches SLURM PriorityDecayHalfLife) |
grace_ratio |
number (double) |
|
Grace period ratio (0.2 = 20% overconsumption allowed) |
carryover_enabled |
boolean |
|
Enable unused allocation carryover to next period |
raw_usage_reset |
boolean |
|
Reset raw usage at period transitions (PriorityUsageResetPeriod=None) |
qos_strategy |
any |
|
QoS management strategy |
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. |
organization_groups |
array of string (uri)s |
|
component_limits_set |
array of objects |
|
component_limits_set.type |
string |
|
component_limits_set.limit |
integer |
|
period |
any |
|
period_name |
string |
|
limit_type |
any |
SLURM limit type to apply |
tres_billing_enabled |
boolean |
Use TRES billing units instead of raw TRES values |
tres_billing_weights |
any |
TRES billing weights (e.g., {"CPU": 0.015625, "Mem": 0.001953125, "GRES/gpu": 0.25}) |
fairshare_decay_half_life |
integer |
Fairshare decay half-life in days (matches SLURM PriorityDecayHalfLife) |
grace_ratio |
number (double) |
Grace period ratio (0.2 = 20% overconsumption allowed) |
carryover_enabled |
boolean |
Enable unused allocation carryover to next period |
raw_usage_reset |
boolean |
Reset raw usage at period transitions (PriorityUsageResetPeriod=None) |
qos_strategy |
any |
QoS management strategy |
Delete
Other Actions
Actions