Get PickList Options

post

/rest/v7/prodFamVarName.prodLineVarName.modelVarName/_pickLists/pickListVarName/actions/getOptions

This action provides the dynamic values for the Pick List attribute available through a domain such as a Data Table or an Array. This endpoint consumes the filter value of the Pick List attribute and returns appropriate values in the response.

Request

Supported Media Types
Body ()
Root Schema : pickListVarName-getOptionsRequest
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.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : pickListVarName-getOptionsResponse
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve the dynamic values for the Pick List attribute through a domain 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.laptops.ultra/_pickLists/cloudBackupSSPL/actions/getOptions

Request Body Sample

{
  "cacheInstanceId": "u0yaJyAJ3qAzSBtYde9XKNFLyN2D5SZtvILBLwYMTK0JSBwBHihPGLoMrOn4xo7e"
}
         

Response Body Sample

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

{
  "cacheInstanceId": "u0yaJyAJ3qAzSBtYde9XKNFLyN2D5SZtvILBLwYMTK0JSBwBHihPGLoMrOn4xo7e",
  "variableName": "cloudBackupSSPL",
  "items": [{
      "value": "1 TB",
      "displayValue": "1 TB"
    }, {
      "value": "1 TB",
      "displayValue": "1 TB"
    }, {
      "value": "2 TB",
      "displayValue": "2 TB"
    }, {
      "value": "2 TB",
      "displayValue": "2 TB"
    }, {
      "value": "250 GB",
      "displayValue": "250 GB"
    }, {
      "value": "250 GB",
      "displayValue": "250 GB"
    }, {
      "value": "500 GB",
      "displayValue": "500 GB"
    }, {
      "value": "500 GB",
      "displayValue": "500 GB"
    }
  ],
  "links": [{
      "rel": "related",
      "href": "https://sitename.oracle.com/rest/v7/configvision.laptops.ultra/_pickLists/cloudBackupSSPL"
    }
  ]
}
Back to Top