[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations

Mark Resource As Being Maintained

Description

The Resource can end up in two maintenance states - MAINTAINED OR MAINTAINED_MANUAL - depending upon the inputs specified.

  • If duration/end time is specified, the resource will be placed in MAINTAINED state and after the duration/end time expires, the resource state is automatically set to the state it was in before entering the maintenance window.
  • If duration/end time is not specified, the resource will be placed in MAINTAINED_MANUAL state. Callers have to execute DELETE /suite-api/api/resources/{id}/maintained API to set the Resource back to whatever state it was in.
  • If both duration and end time are specified, end time takes preference over duration.

Request

Request

URL

URL


put
https://localhost/suite-api/api/resources/{id}/maintained
Copy

Path Parameters

Path Parameters

string
id Required

The Resource identifier


Query Parameters

Query Parameters

integer
duration Optional

Duration for which this resource will be in maintenance (In Minutes)


integer
end Optional

End time of the maintenance window as a long value (Epoch time)


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

200 OK

The resource is put in maintenance successfully

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X PUT https://localhost/suite-api/api/resources/{id}/maintained


Feedback

Was this page helpful?