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
Path Parameters
Body ()
Root Schema : 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 : getOptionsResponse
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.
  • items
Nested Schema : items
Type: array
Show Source
Nested Schema : Pick List
Type: object
Title: Pick List
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 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"
    }
  ]
}
Back to Top