V Sanhealth Check APIs
APIs for managing vSAN health checks
Table of Contents
1. Get vSAN health check status
- Get vSAN health check status API is used to fetch vSAN health check status.
1.1. Prerequisites API
The following data is required:
- ID of a domain
The following data is optional:
- Status of health check [ENABLED / DISABLED]
1.2. Steps API
- Invoke the API.
cURL Request
$ curl 'https://sfo-vcf01.rainpole.io/v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer etYWRta....'
HTTP Request
GET /v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: sfo-vcf01.rainpole.io
Authorization: Bearer etYWRta....
HTTP Response
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 102
{
"resultId" : "1d08a0d7-61e7-4251-b137-65cf5a1c3221",
"status" : "INPROGRESS",
"result" : [ ]
}
- Poll the vSAN health check status with the ID from the response of the previous API.
cURL Request
$ curl 'https://sfo-vcf01.rainpole.io/v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks/queries/1d08a0d7-61e7-4251-b137-65cf5a1c3221' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer etYWRta....'
HTTP Request
GET /v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks/queries/1d08a0d7-61e7-4251-b137-65cf5a1c3221 HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: sfo-vcf01.rainpole.io
Authorization: Bearer etYWRta....
HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 434
{
"resultId" : "1d08a0d7-61e7-4251-b137-65cf5a1c3221",
"status" : "SUCCESS",
"result" : [ {
"id" : "objecthealth",
"name" : "vSAN object health",
"description" : "Checks the health status of all vSAN objects.",
"type" : "VSAN",
"status" : "ENABLED",
"resourceType" : "CLUSTER",
"resourceId" : "bf0566fd-d2a9-4a76-8121-587f5e9730c9",
"resourceName" : "3802ba86-6393-45f7-b12d-3b80f63aab07"
} ]
}
1.3. Related APIs API
[_getvsanhealthcheckbydomain] API [_getvsanhealthcheckbyqueryid] API [_updatevsanhealthcheckbydomain] API [_getvsanhealthcheckbytaskid] API
2. Update vSAN health check status
- Update vSAN health check status API is used to update the vSAN health check status.
2.1. Prerequisites API
The following data is required:
ID of the Domain
List of vSAN health check spec
Tip : Refer to: [HealthCheckSpec](index.html# HealthCheckSpec).
2.2. Steps API
- Invoke the API.
cURL Request
$ curl 'https://sfo-vcf01.rainpole.io/v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks' -i -X PATCH \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer etYWRta....' \
-d '[ {
"id" : "objecthealth",
"name" : "vSAN object health",
"status" : "DISABLED",
"resourceType" : "CLUSTER",
"resourceName" : "3802ba86-6393-45f7-b12d-3b80f63aab07"
} ]'
HTTP Request
PATCH /v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 178
Host: sfo-vcf01.rainpole.io
Authorization: Bearer etYWRta....
[ {
"id" : "objecthealth",
"name" : "vSAN object health",
"status" : "DISABLED",
"resourceType" : "CLUSTER",
"resourceName" : "3802ba86-6393-45f7-b12d-3b80f63aab07"
} ]
HTTP Response
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 164
{
"id" : "05236d40-f5df-49c2-a669-4418d140ccfb",
"status" : "INPROGRESS",
"resourceStatus" : {
"3802ba86-6393-45f7-b12d-3b80f63aab07" : "INPROGRESS"
}
}
- Poll the status of the vSAN health check update with the ID from the response of the previous API.
cURL Request
$ curl 'https://sfo-vcf01.rainpole.io/v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks/tasks/05236d40-f5df-49c2-a669-4418d140ccfb' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer etYWRta....'
HTTP Request
GET /v1/domains/562d4905-56fb-4bdd-adb1-c706786c7542/health-checks/tasks/05236d40-f5df-49c2-a669-4418d140ccfb HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: sfo-vcf01.rainpole.io
Authorization: Bearer etYWRta....
HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 158
{
"id" : "05236d40-f5df-49c2-a669-4418d140ccfb",
"status" : "SUCCESS",
"resourceStatus" : {
"3802ba86-6393-45f7-b12d-3b80f63aab07" : "SUCCESS"
}
}
2.3. Related APIs API
[_getvsanhealthcheckbydomain] API [_getvsanhealthcheckbyqueryid] API [_updatevsanhealthcheckbydomain] API [_getvsanhealthcheckbytaskid] API
Last updated 2024-08-27 16:13:54 -0700