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

Update Resource

Description

Implementation Notes:

  • When updating a Resource, if the Resource Identifiers that are unique and required are not specified, the API would return an error with HTTP status code of 500 and an error message indicating the set of missing Resource Identifiers.
  • When updating a Resource, if the Resource Identifiers that are unique but not required are not specified, the Resource is updated where the uniquely identifying Resource Identifiers that were not specified will have their value as an empty string.

Request

Request

URL

URL


put
https://localhost/suite-api/api/resources
Copy

Request Body

Request Body

resource of type(s) application/json, application/xml Required

The Resource object that needs to be updated

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns Resource of type(s) application/json, application/xml

The updated Resource object

Errors

Errors

404

No Resource is found in the system corresponding to the identifier in the Request Body


500

The ResourceKey of the Resource is missing the uniquely identifying and required Resource Identifiers

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"badges":[{"color":"GREEN","score":0,"type":"ANOMALY"}],"creationTime":0,"credentialInstanceId":"string","description":"string","dtEnabled":false,"extension":{"anyObjects":{}},"geoLocation":{"latitude":0,"longitude":0},"identifier":"string","links":[{"description":"string","href":"string","name":"string","rel":"NEXT"}],"monitoringInterval":0,"monitoringIntervalMinutes":0,"monitoringIntervalSeconds":0,"relatedResources":["string"],"resourceHealth":"GREEN","resourceHealthValue":0,"resourceKey":{"adapterKindKey":"string","extension":{"anyObjects":{}},"links":[{"description":"string","href":"string","name":"string","rel":"NEXT"}],"name":"string","resourceIdentifiers":[{"identifierType":{"dataType":"STRING","extension":{"anyObjects":{}},"isPartOfUniqueness":false,"links":[{"description":"string","href":"string","name":"string","rel":"NEXT"}],"name":"string"},"key":"string","links":[{"description":"string","href":"string","name":"string","rel":"NEXT"}],"name":"string","uniquelyIdentifying":false,"value":"string"}],"resourceKindKey":"string"},"resourceStatusStates":[{"adapterInstanceId":"string","resourceState":"STOPPED","resourceStatus":"NONE","statusMessage":"string"}]}' https://localhost/suite-api/api/resources


Feedback

Was this page helpful?