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

Create Resource Using Adapter Kind

Description

This adapter kind (referred to as ‘Push’ adapter kind) will be created if it does not exist in the system and an instance of it will be associated with the Resource being created. This adapter kind if it already exists must of OPENAPI adapter kind type. The API will also create the missing Adapter Kind and Resource Kind contained within the ResourceKey of the Resource if they do 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

Request

URL

URL


post
https://localhost/suite-api/api/resources/adapterkinds/{adapterKindKey}
Copy

Path Parameters

Path Parameters

string
adapterKindKey Required

The adapter kind key


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

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created returns Resource of type(s) application/json, application/xml

The created Resource

Errors

Errors

500

The ‘Push’ adapter kind specified already exists in the system and doesn’t correspond to an Adapter Kind that is of OPENAPI type

Code Samples

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/adapterkinds/{adapterKindKey}


Feedback

Was this page helpful?