Get All Pick List Options
post
/rest/v16/config{prodFamVarName}.{prodLineVarName}.{modelVarName}/_pickLists/actions/getOptions
This action provides the dynamic values for all the Pick List attributes in a given configuration available through the domain such as a Data Table or an Array. This endpoint retrieves a collection of pick lists and returns appropriate values in the response.
Request
Supported Media Types
- application/json
Path Parameters
-
modelVarName(required): string
The variable name of a Model
-
prodFamVarName(required): string
The variable name of a Product Family
-
prodLineVarName(required): string
The variable name of a Product Line
Root Schema : getOptionsRequest
Type:
Show Source
object
-
cacheInstanceId(required):
string
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.
Response
Supported Media Types
- application/json
Default Response
Root Schema : getOptionsResponse
Type:
Show Source
object
-
cacheInstanceId:
string
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. -
items:
array items
Nested Schema : Pick List
Type:
object
Title:
Show Source
Pick List
-
items:
array items
-
variableName:
string
Title:
Variable Name
It uniquely identifies the pick list.
Nested Schema : items
Type:
Show Source
object
-
displayValue:
string
Title:
Display Value
-
value:
string
Title:
Value
Examples
The following example shows how to retrieve the dynamic values for all Pick List attributes in a configuration 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/v16/configvision.laptops.ultra/_pickLists/actions/getOptions
Request Body Sample
{ "cacheInstanceId": "Uxs6rmxWky7QRMKEHxUK5IKv12GLTm2EeohummhWiiFFE76kxiYvil1tJfcTEbrjv" }
Response Body Sample
The following example shows the contents of the response body in JSON format:
{ "cacheInstanceId": "Uxs6rmxWky7QRMKEHxUK5IKv12GLTm2EeohummhWiiFFE76kxiYvil1tJfcTEbrjv", "items": [{ "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/v16/configvision.laptops.ultra/_pickLists/cloudBackupSSPL" } ] }, { "variableName": "hardDrives", "items": [{ "value": "1 TB 10k HDD", "displayValue": "1 TB 10k HDD" }, { "value": "1 TB 7200 HDD", "displayValue": "1 TB 7200 HDD" }, { "value": "120 GB SSD", "displayValue": "120 GB SSD" }, { "value": "146 GB 15k HDD", "displayValue": "146 GB 15k HDD" }, { "value": "2 TB 7200 HDD", "displayValue": "2 TB 7200 HDD" }, { "value": "240 GB SSD", "displayValue": "240 GB SSD" }, { "value": "4 TB 7200 HDD", "displayValue": "4 TB 7200 HDD" }, { "value": "450 GB 15k HDD", "displayValue": "450 GB 15k HDD" }, { "value": "480 GB SSD", "displayValue": "480 GB SSD" }, { "value": "500 GB 10k HDD", "displayValue": "500 GB 10k HDD" } ], "links": [{ "rel": "related", "href": "https://sitename.oracle.com/rest/v16/configvision.laptops.ultra/_pickLists/hardDrives" } ] } ], "links": [{ "rel": "related", "href": "https://sitename.oracle.com/rest/v16/configvision.laptops.ultra/_pickLists" } ] }