From 8df78ba5f473b23f3f0cfdd9a5f95b8f09814b65 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Wed, 12 Jul 2023 17:14:36 -0400 Subject: [PATCH] dropping references to vm lifecycle events --- api/appendices/soap_to_rest.md | 1 - api/examples/add_lifecycle_event_vm.md | 30 -------------------------- api/examples/compliance_policy_flow.md | 5 ----- api/reference/custom_actions.md | 10 --------- api/reference/vms.md | 17 --------------- 5 files changed, 63 deletions(-) delete mode 100644 api/examples/add_lifecycle_event_vm.md diff --git a/api/appendices/soap_to_rest.md b/api/appendices/soap_to_rest.md index 0b119ea32..d35082b17 100644 --- a/api/appendices/soap_to_rest.md +++ b/api/appendices/soap_to_rest.md @@ -88,7 +88,6 @@ | EVMActionList | GET | /api/policies/:id/policy\_actions | | [Policy Actions](../reference/policy_collections.html#policy-actions) | | | GET | /api/policies/:id?expand=policy\_actions | | | | | GET | /api/policies?filter\[\]=guid='…​.'\&expand=resources,policy\_actions | | | -| EVMAddLifecycleEvent | POST | /api/vms/:id | add\_lifecycle\_event | [Add Lifecycle Event to VM](../examples/add_lifecycle_event_vm.html) | | EVMAssignPolicy | POST | /api/hosts/:id/policies | assign | [Assigning Policies](../reference/policies.html#assigning-policies-to-a-resource) | | EVMConditionList | GET | /api/policies/:id/conditions | | [Policy Conditions](../reference/policy_collections.html#policy-conditions) | | | GET | /api/policies/:id?expand=conditions | | | diff --git a/api/examples/add_lifecycle_event_vm.md b/api/examples/add_lifecycle_event_vm.md deleted file mode 100644 index c92109cc2..000000000 --- a/api/examples/add_lifecycle_event_vm.md +++ /dev/null @@ -1,30 +0,0 @@ ---- ---- - -### Add Lifecycle Event to VM - -#### Request: - - POST /api/vms/1921 - -``` json -{ - "action" : "add_lifecycle_event", - "resource" : { - "event" : "event_name", - "status" : "event_status", - "message" : "Message about the event", - "created_by" : "user_name" - } -} -``` - -#### Response: - -``` json -{ - "success": true, - "message": "VM id:1921 name:'aab_demo_vm' adding lifecycle event=event_name message=Message about the event", - "href": "http://localhost:3000/api/vms/1921" -} -``` diff --git a/api/examples/compliance_policy_flow.md b/api/examples/compliance_policy_flow.md index 5f3f8a15e..34afb445d 100644 --- a/api/examples/compliance_policy_flow.md +++ b/api/examples/compliance_policy_flow.md @@ -637,11 +637,6 @@ task generated for it and look for the state attribute as follows: "method": "post", "href": "http://localhost:3000/api/vms/171" }, - { - "name": "add_lifecycle_event", - "method": "post", - "href": "http://localhost:3000/api/vms/171" - }, { "name": "add_event", "method": "post", diff --git a/api/reference/custom_actions.md b/api/reference/custom_actions.md index c0296f6d7..237dc9bf7 100644 --- a/api/reference/custom_actions.md +++ b/api/reference/custom_actions.md @@ -253,11 +253,6 @@ returned are the common ones defined by the system: "method": "post", "href": "https://172.16.30.129/api/vms/173" }, - { - "name": "add_lifecycle_event", - "method": "post", - "href": "https://172.16.30.129/api/vms/173" - }, { "name": "add_event", "method": "post", @@ -310,11 +305,6 @@ and *ping* defined: "method": "post", "href": "https://172.16.30.129/api/vms/173" }, - { - "name": "add_lifecycle_event", - "method": "post", - "href": "https://172.16.30.129/api/vms/173" - }, { "name": "add_event", "method": "post", diff --git a/api/reference/vms.md b/api/reference/vms.md index 1a1854708..2baa1e53e 100644 --- a/api/reference/vms.md +++ b/api/reference/vms.md @@ -19,7 +19,6 @@ Management of virtual machines adds support of the following actions: | set\_miq\_server | Sets the server of a virtual machine | | set\_owner | Sets the owner of a virtual machine | | add\_event | Adding an event to a virtual machine | -| add\_lifecycle\_event | Add a life cycle event to a virtual machine | | edit | Edits a virtual machine | | delete | Deletes a virtual machine in the appliance | @@ -51,8 +50,6 @@ Management of virtual machines adds support of the following actions: - [Adding an Event to a VM](#add-event-vm) - - [Adding a Lifecycle Event to a VM](#add-lifecycle-event-vm) - - [Editing a VM](#edit-vm) - [Deleting a VM](#delete-vm) @@ -250,20 +247,6 @@ reference as follows: event\_time above is optional. If skipped, current time will be used. -### Adding a Lifecycle Event to a Virtual Machine - -``` json -{ - "action" : "add_lifecycle_event", - "resource" : { - "event" : "...", - "status" : "...", - "message" : "...", - "created_by" : "..." - } -} -``` - ### Editing a Virtual Machine Basic information of virtual machines can be edited. This includes the