Add Properties
In this case, the adapter instance used for pushing data will default to SuiteAPI. It is recommended (though not required) to use this API when the resource was created using the API POST /api/resources/{id}/adapters/{adapterInstanceId}
. Otherwise an additional adapter instance might be created.
Note: Those properties that are specified with old timestamp will be published with current time. As a result, only one of those properties will appear in vROps (e.g. the latest one will overwrite all previous ones).
The ID of the resource
The properties for the Resource
Show optional properties
{
"property-content": [
{
"statKey": "string",
"timestamps": [
{}
]
}
]
}
"{\n \"property-content\" : [ {\n \"statKey\" : \"system|availability\",\n \"timestamps\" : [ 1119844280663 ],\n \"values\" : [ \"UP\" ]\n }, {\n \"statKey\" : \"config|num|processes\",\n \"timestamps\" : [ 1119844280663 ],\n \"data\" : [ 93.0 ]\n } ]\n}"
Collection of property contents
The properties are added successfully
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"property-content":["object"]}' https://{api_host}/suite-api/api/resources/{id}/properties