Remediation Service

Remediation Service Approve Remediation

POST
/compute/clusters/{cluster_id}/instances/{instance_id}/remediations/{remediation_id}/approve

Approves a pending remediation.

Only remediations with state PENDING_APPROVAL can be approved.

On APPROVE: state changes to PENDING and the remediation process begins. The reviewed_by, review_time, and review_comment fields are populated on the remediation after approval.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

cluster_id*string
instance_id*string
remediation_id*string

Request Body

application/json

Request body for approving a pending remediation.

comment?string

Approval comment explaining the decision.

mode?string

Remediation mode to use after approval. When omitted, the remediation keeps its existing mode.

  • REMEDIATION_MODE_VM_ONLY: Deletes the VM and provisions a new one on any available host.
  • REMEDIATION_MODE_HOST_AWARE: Cordons the host, deletes the VM, and provisions a new one on a different host.
  • REMEDIATION_MODE_EVICT_WITHOUT_REPLACEMENT: Evicts the VM without provisioning a replacement.
  • REMEDIATION_MODE_REBOOT_VM: Reboots the VM in place.
  • REMEDIATION_MODE_HOST_POWER_CYCLE: Power-cycles the bare-metal host after cordoning it. This mode cannot be set as an approval override; create a host power-cycle remediation directly.

Value in

  • "REMEDIATION_MODE_VM_ONLY"
  • "REMEDIATION_MODE_HOST_AWARE"
  • "REMEDIATION_MODE_EVICT_WITHOUT_REPLACEMENT"
  • "REMEDIATION_MODE_REBOOT_VM"
  • "REMEDIATION_MODE_HOST_POWER_CYCLE"

Response Body

application/json

curl -X POST "https://example.com/compute/clusters/string/instances/string/remediations/string/approve" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "cluster_id": "string",  "instance_id": "string",  "mode": "REMEDIATION_MODE_VM_ONLY",  "trigger": "REMEDIATION_TRIGGER_MANUAL",  "state": "PENDING_APPROVAL",  "reason": "string",  "active_health_check_run_id": "string",  "passive_health_check_event_id": "string",  "requested_by": "string",  "create_time": "2019-08-24T14:15:22Z",  "reviewed_by": "string",  "review_time": "2019-08-24T14:15:22Z",  "review_comment": "string",  "start_time": "2019-08-24T14:15:22Z",  "end_time": "2019-08-24T14:15:22Z",  "error_message": "string",  "update_time": "2019-08-24T14:15:22Z",  "instance_name": "string",  "linked_alerts": [    {      "passive_health_check_alert_id": "string",      "instance_id": "string",      "cluster_id": "string",      "target_vm": "string",      "alert_name": "string",      "severity": "PHC_SEVERITY_INFO",      "annotations": {        "property1": "string",        "property2": "string"      },      "started_at": "2019-08-24T14:15:22Z",      "resolved_at": "2019-08-24T14:15:22Z",      "node_remediation_intent_id": "string",      "annotation": {        "title": "string",        "description": "string",        "summary_line": "string",        "xid": {          "events": [            {              "xid_code": "string",              "mnemonic": "string",              "count": 0            }          ]        },        "slurm_node_unavailable": {          "reason": "string"        }      }    }  ]}