Load Array Set Data
post
/rest/v16/config{prodFamVarName}.{prodLineVarName}.{modelVarName}/_set{arraySetVarName}/actions/_loadData
This action reads the configuration data from a particular array set. This endpoint will not run the rules but rather loads that configuration data of the array set. The cache instance ID is used as the input parameter in the request body.
Request
Supported Media Types
- application/json
Path Parameters
-
arraySetVarName(required): string
The variable name of the array set
-
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 : arraySetVarName_loadDataRequest
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. -
criteria:
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request.
Nested Schema : Query Definition
Type:
object
Title:
Query Definition
Captures the query definition for the current resource request.
Show Source
-
actions:
array actions
Array of actions names, whose state is requested in the state object response.
-
childDefs:
array childDefs
-
expand:
array expand
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
-
expandedDomains:
array expandedDomains
Array of field names, whose expanded domains are requested in the state object response.
-
fields:
array fields
Array of field names that you wanted returned in a request.
-
state:
boolean
Boolean value that specifies whether to calculate the state property. By default, this value is set to false indicating that state is not calculated.
Nested Schema : actions
Type:
array
Array of actions names, whose state is requested in the state object response.
Show Source
Nested Schema : childDefs
Type:
Show Source
array
-
Array of:
object Child query criteria.
Title:
Child query criteria.
Captures the query criteria for the child resource.
Nested Schema : expand
Type:
array
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
Show Source
Nested Schema : expandedDomains
Type:
array
Array of field names, whose expanded domains are requested in the state object response.
Show Source
Nested Schema : fields
Type:
array
Array of field names that you wanted returned in a request.
Show Source
Nested Schema : Child query criteria.
Type:
object
Title:
Child query criteria.
Captures the query criteria for the child resource.
Show Source
-
name:
string
Rest alias name of the child resource this query belongs to.
-
queryDef:
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request. -
recursive:
boolean
Boolean value that specifies whether this query is a recursive expand on the current child resource query.
Response
Supported Media Types
- application/json
Default Response
Root Schema : arraySetVarName_loadDataResponse
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. -
count:
integer
Title:
Count
Specifies that the total count of records should be included in the response when doing pagination. -
hasMore:
boolean
Title:
Has More
Returns true if more resources are available on the server than the subset returned in current page. -
items:
array items
-
limit:
integer
Title:
Limit
The requested page size, which limits the number of elements the collection should max return. -
offset:
integer
Title:
Offset
The offset of the page. By default, offset is 0, which means first page will be returned. -
totalResults:
integer
Title:
Total Results
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : Array Set Name
Type:
object
Title:
Show Source
Array Set Name
-
_index:
integer
Title:
Index
Index of the element in the array set. -
_rowKey:
string
Title:
RowKey
Key of the element in the array set.
Examples
The following example reads the configuration data from a particular array set and loads that configuration data of the 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/v16/configvision.servers.ultraPowerSolutionPackage/_setapplicationSoftware/actions/_loadData
Request Body Sample
{ "cacheInstanceId": "ZGQn3ciig5QBSvvvzZnin1IpAEUyC0wTv122guTBLnzGWnjgG6ekKPa7JvNrQubs3", "criteria": { "state": true, "fields": ["arrayTextField1"] } }
Response Body Sample
The following example shows the contents of the response body in JSON format:
{ "_state": { "insertable": true, "sortable": false, "deletable": true, "defaultRowState": { "updatable": true, "hasError": false, "messages": [], "attributes": { "arrayTextField1": { "updatable": true, "hasError": false, "hasWarning": false, "messages": [], "visible": true, "hasConstraintViolation": false } } }, "actions": { "_delete": { "enabled": true, "visible": true }, "_add": { "enabled": true, "visible": true } }, "attributes": { "arrayTextField1": { "visible": true } } }, "items": [{ "index": 0, "_rowKey": "6d5eb9ef-393c-43aa-9528-925489f8767d", "arrayTextField1": "test0", "_state": { "hasError": false, "messages": [] } }, { "index": 1, "_rowKey": "d8da0d00-92d3-48bb-af02-1bf72c80fd81", "arrayTextField1": "", "_state": { "hasError": false, "messages": [] } }, { "index": 2, "_rowKey": "bb3102d3-a83e-47ef-a38d-0abe9f31508e", "arrayTextField1": "", "_state": { "hasError": false, "messages": [] } } ], "cacheInstanceId": "ZGQn3ciig5QBSvvvzZnin1IpAEUyC0wTv122guTBLnzGWnjgG6ekKPa7JvNrQubs3" }