[{"label":"Latest (2022-10-31)","version":"latest"}]
vrealize-operations
Create Resource Using Adapter Instance
DescriptionThe API will create the missing Adapter Kind and Resource Kind contained within the ResourceKey of the Resource if they do not exist. The API will return an error if the adapter instance specified does not exist. Additional implementation notes:
- When creating 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 creating a Resource, if the Resource Identifiers that are unique but not required are not specified, the Resource is created where the uniquely identifying Resource Identifiers that were not specified will have their value as an empty string.
Request
URLURL
https://localhost/suite-api/api/resources/adapters/{adapterInstanceId}
Path Parameters
Path Parameters
string
adapterInstanceId
Required
The adapter instance id
Request Body
Request Body
resource
of type(s) application/json, application/xml
Required
The request object that contains info necessary to create a new resource
Authentication
This operation uses the following authentication methods.
Errors
404
No Adapter Instance is found in the system corresponding to the Path Parameter that was specified
500
The ResourceKey of the Resource is missing the uniquely identifying and required Resource Identifiers
Code Samples
cURL Command
curl -X POST -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/adapters/{adapterInstanceId}
[{"label":"Latest (2022-10-31)","version":"latest"}]
vrealize-operations
On This Page
Resources Operations
post
post
delete
delete
delete
delete
get
get
get
put