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" : "877b40c2-70a6-40ad-8381-927119d6086d",
    "message" : "Some default warning message",
    "remediationMessage" : "Message with key [null.remedy]. Arguments:",
    "resourceId" : "94be067e-1205-4272-9fd2-a04c764bee9a",
    "resourceType" : "HOST",
    "resourceName" : "esxi-1.vrack.vsphere.local",
    "warningType" : "VALIDATION",
    "severity" : "MINOR",
    "occurredAtTimestamp" : "2023-08-08T21:54:46.000Z"
  }, {
    "id" : "feaffc65-085e-4e01-b4b8-9a1a04836c65",
    "message" : "Some default warning message",
    "remediationMessage" : "Message with key [null.remedy]. Arguments:",
    "resourceId" : "c8e31f4b-389a-4030-b5e2-eae58a43245b",
    "resourceType" : "HOST",
    "resourceName" : "esxi-1.vrack.vsphere.local",
    "warningType" : "VALIDATION",
    "severity" : "MINOR",
    "occurredAtTimestamp" : "2023-08-08T21:54:46.000Z"
  }, {
    "id" : "4b703072-9916-45a9-8450-4c4fed8dbdfb",
    "message" : "Some default warning message",
    "remediationMessage" : "Message with key [null.remedy]. Arguments:",
    "resourceId" : "0db1401a-56a1-4165-8d6a-187325764ac0",
    "resourceType" : "HOST",
    "resourceName" : "esxi-1.vrack.vsphere.local",
    "warningType" : "VALIDATION",
    "severity" : "MINOR",
    "occurredAtTimestamp" : "2023-08-08T21:54:46.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/256291a2-1c8e-4433-be00-39af0da2ef32' -i -X GET \
    -H 'Accept-Language: fr' \
    -H 'Authorization: Bearer etYWRta....'

HTTP Request

GET /v1/resource-warnings/256291a2-1c8e-4433-be00-39af0da2ef32 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" : "256291a2-1c8e-4433-be00-39af0da2ef32",
  "message" : "Some default warning message",
  "remediationMessage" : "Message with key [null.remedy]. Arguments:",
  "resourceId" : "6f61d839-8780-4505-96bf-f66060bb2eb9",
  "resourceType" : "HOST",
  "resourceName" : "esxi-1.vrack.vsphere.local",
  "warningType" : "VALIDATION",
  "severity" : "MINOR",
  "occurredAtTimestamp" : "2023-08-08T21:54:46.000Z"
}

Last updated 2023-09-23 19:05:04 -0700

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