Delete Row from an Array

post

/rest/v7/prodFamVarName.prodLineVarName.modelVarName/_set_arraySetVarName/actions/_delete

This action deletes a specified index or row in a payload from the given Array set.

Request

Supported Media Types
Body ()
Root Schema : _set_arraySetVarName-_deleteRequest
Type: object
Show Source
  • Title: Cache Instance Id
    The unique identifier for the entry of configuration data stored in the cache. This is obtained from actions that launch configuration and passed along in subsequent actions.
  • Title: Remove Index
    Index which has to be removed from the array set.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : _set_arraySetVarName-_deleteResponse
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : applicationSoftwareCounter array key
Type: object
Title: applicationSoftwareCounter array key
applicationSoftwareCounter array key
Show Source
Back to Top

Examples

The following example shows how to delete an index or row for a given Array set by submitting a POST request to the REST resource using cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v7/configvision.servers.ultraPowerSolutionPackage/_set_array_key_applicationSoftwareCounter/actions/_delete

Request Body Sample

{
  "cacheInstanceId": "WOSeTwyqtdOO2BnrSShDZoRTTVq4oj1tSfGP3bjdSTUxJFiU4SkYcTgUuC8QZgZW",
  "removeIndex": 1
}
         

Response Body Sample

The following example shows the contents of the response body in JSON format:

{
  "items": [{
      "_index": 0,
      "softwarePackage_array": {
        "value": "Cloud Management",
        "displayValue": "Cloud Management"
      },
      "licenses_array": 1,
      "maintenance_array": "Data Protection Software Maintenance",
      "qty_array": 1,
      "startDate_array": "2018-12-06",
      "endDate_array": "2021-12-05"
    }
  ],
  "cacheInstanceId": "WOSeTwyqtdOO2BnrSShDZoRTTVq4oj1tSfGP3bjdSTUxJFiU4SkYcTgUuC8QZgZW"
}
Back to Top