
This patch implements the changes in the API required for the skipped action blueprint. It includes: - New field `status_message` is visible in API get calls for Audits, ActionPlans and Audits. - New Patch call is added to `/actions/{action_id}` which allows to manually move actions in PENDING state to SKIPPED for ActionPlans which have not been started. - A new API microversion 1.5 is added for these changes. It also adds requried tests and documentation. Implements: blueprint add-skip-actions Assisted-By: Cursor (claude-4-sonnet) Change-Id: I71fb9af76085e5941a7fd3e9e4c89d6f3a3ada47 Signed-off-by: Alfredo Moralejo <amoralej@redhat.com>
32 lines
1.0 KiB
JSON
32 lines
1.0 KiB
JSON
{
|
|
"actions": [
|
|
{
|
|
"state": "PENDING",
|
|
"description": "Wait for a given interval in seconds.",
|
|
"parents": [
|
|
"8119d16e-b419-4729-b015-fc04c4e45783"
|
|
],
|
|
"links": [
|
|
{
|
|
"rel": "self",
|
|
"href": "http://controller:9322/v1/actions/7182a988-e6c4-4152-a0d6-067119475c83"
|
|
},
|
|
{
|
|
"rel": "bookmark",
|
|
"href": "http://controller:9322/actions/7182a988-e6c4-4152-a0d6-067119475c83"
|
|
}
|
|
],
|
|
"action_plan_uuid": "c6bba9ed-a7eb-4370-9993-d873e5e22cba",
|
|
"uuid": "7182a988-e6c4-4152-a0d6-067119475c83",
|
|
"deleted_at": null,
|
|
"updated_at": null,
|
|
"input_parameters": {
|
|
"duration": 3.2
|
|
},
|
|
"action_type": "sleep",
|
|
"created_at": "2018-03-26T11:56:08.235226+00:00",
|
|
"status_message": null
|
|
}
|
|
]
|
|
}
|