Diagnostics API

Below you can find API requests and additional information for different health checks:

URLIDResponse STATUSPOST types
Disk Health:
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/degraded_disks.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/data_stores/:data_store_id/repair.json -H 'Accept: application/json' -H 'Content-type: application/json'
3. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/degraded_disks/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
degraded_disks200/204/201repair ID / repair ALL
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/partial_memberlist_disks.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/data_stores/:data_store_id/repair.json -H 'Accept: application/json' -H 'Content-type: application/json'
3. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/partial_memberlist_disks/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
partial_memberlist_disks200/204/201repair ID / repair ALL
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/disks_with_no_stripe_replicas.json -H 'Accept: application/json' -H 'Content-type: application/json'disks_with_no_stripe_replicas200No repair action available.
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/disks_with_no_redundancy.json -H 'Accept: application/json' -H 'Content-type: application/json'disks_with_no_redundancy200rebalance ID:
GET "/storage/:hypervisor_group_id/data_stores/l538vcsdg0eq4x/disks/b8fzygu7642p0n
just leads to the rebalance vdisk page
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/partially_online_disks.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -d '{"disk_id":"0xid79cm43hla2"}' -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/partially_online_disks/repairs.json -H 'Accept: application/json' -H 'Content-type: application/json'
partially_online_disks200/204repair ID
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/degraded_snapshots.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/degraded_snapshots/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
degraded_snapshots200/201repair ALL

1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/zombie_snapshots.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/zombie_snapshots/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'

zombie_snapshots200/204delete ALL
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/zombie_disks.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/zombie_disks/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
zombie_disks200/204delete ALL
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/disks_with_inactive_cache.json -H 'Accept: application/json' -H 'Content-type: application/json'disks_with_inactive_cache200No repair action available
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/disks_with_other_degradations.json -H 'Accept: application/json' -H 'Content-type: application/json'disks_with_other_degradations (Disks in other degraded states)200No repair action available
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/stale_cache_volumes.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -d '{"disk_id":"qy3dlb1a06xp79", "node_id":10407142}' -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/stale_cache_volumes/repairs.json -H 'Accept: application/json' -H 'Content-type: application/json'
3. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/stale_cache_volumes/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
stale_cache_volumes200Forget ID / Forget ALL
Drive Health:
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/partial_nodes.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -d '{"node_id":911788171}' -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/partial_nodes/repairs.json -H 'Accept: application/json' -H 'Content-type: application/json'
partial_nodes200/204Repair ID
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_check/inactive_nodes.json -H 'Accept: application/json' -H 'Content-type: application/json'inactive_nodes
no repair action available
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/delayed_ping_nodes.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -d '{"node_id":911788171}' -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/delayed_ping_nodes/repairs.json -H 'Accept: application/json' -H 'Content-type: application/json'

delayed_ping_nodes200/204repair ID
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/high_utilization_nodes.json -H 'Accept: application/json' -H 'Content-type: application/json'high_utilization_nodes200rebalance button just leads to disks page
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/out_of_space_nodes.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -d '{"node_id":3857498339}' -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/out_of_space_nodes/repairs.json -H 'Accept: application/json' -H 'Content-type: application/json'
out_of_space_nodes200/204repair ID
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/missing_drives.json -H 'Accept: application/json' -H 'Content-type: application/json'missing_drives200No repair action available
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/extra_drives.json -H 'Accept: application/json' -H 'Content-type: application/json'extra_drives200No repair action available
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/inactive_controllers.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -d '{"hypervisor_id":146, "id":0}' -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/inactive_controllers/repairs.json -H 'Accept: application/json' -H 'Content-type: application/json'
inactive_controllers200/204restart ID
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/unreferenced_nbds.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/unreferenced_nbds/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
unreferenced_nbds200/204repair ALL
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/reused_nbds.json -H 'Accept: application/json' -H 'Content-type: application/json'reused_nbds200No repair action available from UI.
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/dangling_device_mappers.json -H 'Accept: application/json' -H 'Content-type: application/jsondangling_device_mappers200

No repair action available from UI.
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/smart_failures.json -H 'Accept: application/json' -H 'Content-type: application/json'smart_failures200No repair action available from UI.
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/smart_warnings.json -H 'Accept: application/json' -H 'Content-type: application/json'smart_warnings200No repair action available from UI.
Content Balance:
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/uniform_node_capacity.json -H 'Accept: application/json' -H 'Content-type: application/json'uniform_node_capacity200No repair action available from UI.
curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/uniform_node_structure.json -H 'Accept: application/json' -H 'Content-type: application/json'uniform_node_structure200No repair action available from UI.
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/disk_content_distribution.json -H 'Accept: application/json' -H 'Content-type: application/json
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/disk_content_distribution/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
disk_content_distribution200/204repair ALL
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/inter_hypervisor_balance.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/inter_hypervisor_balance/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
inter_hypervisor_balance200/204repair ALL
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/intra_hypervisor_balance.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/intra_hypervisor_balance/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
intra_hypervisor_balance200/204repair ALL
1. curl -i -X GET -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/virtual_machine_placement_optimization.json -H 'Accept: application/json' -H 'Content-type: application/json'
2. curl -i -X POST -u admin:password http://onapp.test.com/storage/:hypervisor_group_id/health_checks/virtual_machine_placement_optimization/repair_all.json -H 'Accept: application/json' -H 'Content-type: application/json'
virtual_machine_placement_optimization200/204repair ALL -> local_read_policy(migrate)