Resource Warnings APIs

Resource Warnings APIs

APIs for managing Resource Warnings

Table of Contents

1. Get Resource Warnings

1.1. Prerequisites

The following data is optional

  • ResourceType

  • ResourceIds

1.2. Steps

  • Invoke the API.

cURL Request

$ curl 'https://sfo-vcf01.rainpole.io/v1/resource-warnings' -i -X GET \
    -H 'Accept-Language: fr' \
    -H 'Authorization: Bearer etYWRta....'

HTTP Request

GET /v1/resource-warnings HTTP/1.1
Accept-Language: fr
Host: sfo-vcf01.rainpole.io
Authorization: Bearer etYWRta....

HTTP Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1320

{
  "elements" : [ {
    "id" : "d3151b57-2c54-4877-ae09-d01dc723f97d",
    "message" : "Some default warning message",
    "remediationMessage" : "Message with key [null.remedy]. Arguments:",
    "resourceId" : "3d5219c2-e50e-47f3-8ff7-dbb2e53d679f",
    "resourceType" : "HOST",
    "resourceName" : "esxi-1.vrack.vsphere.local",
    "warningType" : "VALIDATION",
    "severity" : "MINOR",
    "occurredAtTimestamp" : "2022-09-28T06:38:00.000Z"
  }, {
    "id" : "1aa3fca1-4489-4d99-bb6a-422fb4ead718",
    "message" : "Some default warning message",
    "remediationMessage" : "Message with key [null.remedy]. Arguments:",
    "resourceId" : "e20bfb3c-4069-461c-a231-b6df8401de04",
    "resourceType" : "HOST",
    "resourceName" : "esxi-1.vrack.vsphere.local",
    "warningType" : "VALIDATION",
    "severity" : "MINOR",
    "occurredAtTimestamp" : "2022-09-28T06:38:00.000Z"
  }, {
    "id" : "9481669a-c74d-4659-912a-154c73e436cb",
    "message" : "Some default warning message",
    "remediationMessage" : "Message with key [null.remedy]. Arguments:",
    "resourceId" : "fbce6c04-9da3-4584-bb8d-fab1d7d91189",
    "resourceType" : "HOST",
    "resourceName" : "esxi-1.vrack.vsphere.local",
    "warningType" : "VALIDATION",
    "severity" : "MINOR",
    "occurredAtTimestamp" : "2022-09-28T06:38:00.000Z"
  } ]
}

2. Get a Resource Warning by ID

2.1. Prerequisites

The following data is required

  • ID of the Resource Warning

2.2. Steps

  • Invoke the API.

cURL Request

$ curl 'https://sfo-vcf01.rainpole.io/v1/resource-warnings/15e59097-aa03-4579-b87d-cea02d161caa' -i -X GET \
    -H 'Accept-Language: fr' \
    -H 'Authorization: Bearer etYWRta....'

HTTP Request

GET /v1/resource-warnings/15e59097-aa03-4579-b87d-cea02d161caa HTTP/1.1
Accept-Language: fr
Host: sfo-vcf01.rainpole.io
Authorization: Bearer etYWRta....

HTTP Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 411

{
  "id" : "15e59097-aa03-4579-b87d-cea02d161caa",
  "message" : "Some default warning message",
  "remediationMessage" : "Message with key [null.remedy]. Arguments:",
  "resourceId" : "454d687a-cc35-4881-80ac-24c35ba310c0",
  "resourceType" : "HOST",
  "resourceName" : "esxi-1.vrack.vsphere.local",
  "warningType" : "VALIDATION",
  "severity" : "MINOR",
  "occurredAtTimestamp" : "2022-09-28T06:38:00.000Z"
}

Last updated 2023-04-27 11:11:39 PDT

Operations
GET
Get Resource Warning
Get a Resource Warning by ID
GET
Get Resource Warnings
Get Resource Warnings