User Actions
Operations Summary
Core CRUD
List User Actions
| http \
GET \
https://api.example.com/api/user-actions/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.user_actions import user_actions_list # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = user_actions_list.sync(client=client)
for item in response:
print(item)
|
- API Source:
user_actions_list
| import { userActionsList } from 'waldur-js-client';
try {
const response = await userActionsList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
action_type |
string |
|
created_after |
string (date-time) |
|
created_before |
string (date-time) |
|
due_within_days |
number |
|
include_silenced |
boolean |
|
is_silenced |
boolean |
|
o |
string |
Which field to use when ordering the results. |
overdue |
boolean |
|
page |
integer |
A page number within the paginated result set. |
page_size |
integer |
Number of results to return per page. |
urgency |
string |
Enum: high, low, medium |
200 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
uuid |
string (uuid) |
|
action_type |
string |
Type of action, e.g. 'pending_order', 'expiring_resource' |
title |
string |
|
description |
string |
|
urgency |
string |
Enum: low, medium, high |
due_date |
string (date-time) |
|
is_silenced |
boolean |
|
silenced_until |
string (date-time) |
|
is_temporarily_silenced |
boolean |
|
is_effectively_silenced |
boolean |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
related_object_name |
string |
|
related_object_type |
string |
|
corrective_actions |
array of objects |
|
corrective_actions.label |
string |
|
corrective_actions.category |
string |
Enum: view, approve, reject, extend, terminate, backup, migrate, contact, escalate, configure, repair, monitor |
corrective_actions.severity |
string |
Enum: safe, low, medium, high, critical |
corrective_actions.method |
string |
|
corrective_actions.api_endpoint |
boolean |
|
corrective_actions.confirmation_required |
boolean |
|
corrective_actions.permissions_required |
array of strings |
|
corrective_actions.metadata |
object (free-form) |
|
corrective_actions.route_name |
string |
|
corrective_actions.route_params |
object (free-form) |
|
days_until_due |
integer |
|
route_name |
string |
UI-Router state name for navigation |
route_params |
object (free-form) |
|
project_name |
string |
|
project_uuid |
string (uuid) |
|
organization_name |
string |
|
organization_uuid |
string (uuid) |
|
offering_name |
string |
|
offering_uuid |
string (uuid) |
|
offering_type |
string |
|
resource_name |
string |
|
resource_uuid |
string (uuid) |
|
order_type |
string |
|
Retrieve
| http \
GET \
https://api.example.com/api/user-actions/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.user_actions import user_actions_retrieve # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = user_actions_retrieve.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client
)
print(response)
|
- API Source:
user_actions_retrieve
1
2
3
4
5
6
7
8
9
10
11
12
13 | import { userActionsRetrieve } from 'waldur-js-client';
try {
const response = await userActionsRetrieve({
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) |
|
action_type |
string |
Type of action, e.g. 'pending_order', 'expiring_resource' |
title |
string |
|
description |
string |
|
urgency |
string |
Enum: low, medium, high |
due_date |
string (date-time) |
|
is_silenced |
boolean |
|
silenced_until |
string (date-time) |
|
is_temporarily_silenced |
boolean |
|
is_effectively_silenced |
boolean |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
related_object_name |
string |
|
related_object_type |
string |
|
corrective_actions |
array of objects |
|
corrective_actions.label |
string |
|
corrective_actions.category |
string |
Enum: view, approve, reject, extend, terminate, backup, migrate, contact, escalate, configure, repair, monitor |
corrective_actions.severity |
string |
Enum: safe, low, medium, high, critical |
corrective_actions.method |
string |
|
corrective_actions.api_endpoint |
boolean |
|
corrective_actions.confirmation_required |
boolean |
|
corrective_actions.permissions_required |
array of strings |
|
corrective_actions.metadata |
object (free-form) |
|
corrective_actions.route_name |
string |
|
corrective_actions.route_params |
object (free-form) |
|
days_until_due |
integer |
|
route_name |
string |
UI-Router state name for navigation |
route_params |
object (free-form) |
|
project_name |
string |
|
project_uuid |
string (uuid) |
|
organization_name |
string |
|
organization_uuid |
string (uuid) |
|
offering_name |
string |
|
offering_uuid |
string (uuid) |
|
offering_type |
string |
|
resource_name |
string |
|
resource_uuid |
string (uuid) |
|
order_type |
string |
|
Trigger update of user actions
Trigger update of user actions
Other Actions
Get action summary counts
Get action summary counts
Bulk silence actions by filters
Bulk silence actions by filters
Execute a corrective action
Execute a corrective action
Silence an action temporarily or permanently
Silence an action temporarily or permanently
Remove silence from an action
Remove silence from an action