Skip to main content

Find Data Resources

Find data resources in the identity store. The command uses the PV_DATA_RESOURCE public view to find data. Any filters passed should apply to this public view.

GET https://instance.securid.com/aveksa/command.submit?cmd=findDataResources

Request

Parameters

findDataResources
formatproperties - (Default) Returns the response as key=value pairs. When multiple objects are returned, values are comma-delimited: key=value1,value2,value3.

json - Returns the response as JSON.

csv - Returns the response as comma-separated values.

tsv - Returns the response as tab-separated values.

xml - Returns the response as XML.
delimiterThe delimiter to use between values for csv and properties formats
returnColumns

The names of the columns to return. returnColumns may be a CSV list of multiple column names. The parameter may also be listed multiple times (ie returnColumns=col1,col2&returnColumns=col3,col4)

Refer to Columns table below.
returnMaxRowsThe maximum number of objects to return
distincttrue, false Returns only distinct values, equivalent to the distinct keyword in SQL.
sortByColumns

The results will be sorted based on the columns listed using comma as the delimiter if multiple columns are specified.

Refer to Columns table below.
sortDirectionDetermines sorting order. asc for ascending, desc for descending. If not specified, the natural order returned by the database is used.
includeHeaderRowtrue, false Include column headers when the return format is csv or tsv. (Default) true
ignoreCasetrue, false Returns case-insensitive search results for specified filter parameters. (Default) false

Filter Parameters

Any column listed in the Columns table can be passed as a filter parameter to narrow results. Filters are matched against the PV_DATA_RESOURCE public view.

Query logic

ScenarioBehavior
Two different parameters: state=X&edc_id=3AND. Returns data resources with state X that belong to collector 3.
Same parameter repeated: name=Share1&name=Share2OR within that field. Returns data resources named Share1 or Share2.
Mixed: state=X&name=Share1&name=Share2(state is X) AND (name is Share1 or Share2)
OR logic across different parameters is not supported

A single API call cannot return data resources where state=X OR edc_id=3. OR logic between different filter parameters is not supported.

Workaround: Make separate requests for each filter condition. Merge and deduplicate the results client-side.

Columns

id[Primary Key] Unique data resource identifier
edc_id[Foreign Key referencing the Enterprise Data Collector] Collector that loaded this resource
application_id[Foreign Key referencing APPLICATION.ID] Application or directory this resource belongs to
nameName of the data resource
display_nameDisplay name of the data resource
alt_nameAlternate name for the data resource
fully_qualified_nameFull path or fully qualified name of the resource (e.g., \\server\share)
external_idExternal identifier from the source system
serverServer hosting the data resource
root_shareRoot share path of the data resource
stateCurrent state of the data resource
state_change_dateDate and time the state last changed
collected_state_codeState code as returned by the collector
classificationClassification label assigned to this resource
classification_allowAccess types permitted based on the classification
classification_denyAccess types denied based on the classification
owner_id[Foreign Key referencing USERS.ID] User ID of the resource owner
owner_display_nameDisplay name of the resource owner
owner_reasonReason the owner was assigned to this resource
is_owner_suggestedWhether the owner was suggested by the system rather than manually assigned
reviewed_dateDate the resource was last reviewed
creation_dateDate and time the resource record was created
deletion_dateDate and time the resource record was removed
cas3 … casNCustom string-type attribute values. Reference names are configured per instance.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Response

Parameters

The API returns the requested columns specified by returnColumns as output. If returnColumns is unspecified then all columns listed will be returned.

Examples

All columns

Omit returnColumns to return every field for each data resource.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"edc_id": "-3",
"application_id": "-2",
"name": "Windows Share 1",
"fully_qualified_name": "\\\\win01",
"owner_id": "0",
"server": "",
"root_share": "",
"state": "X",
"state_change_date": "",
"reviewed_date": "",
"classification": "",
"classification_allow": "",
"classification_deny": "",
"owner_reason": "",
"owner_display_name": "",
"creation_date": "",
"deletion_date": "",
"collected_state_code": "",
"is_owner_suggested": "",
"display_name": "",
"external_id": "",
"cas3": "",
"cas9": ""
}
]
}

Specific columns

Use returnColumns to limit the response to the fields you need.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5&returnColumns=id,name,fully_qualified_name,state,owner_display_name" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"name": "Windows Share 1",
"fully_qualified_name": "\\\\win01",
"state": "X",
"owner_display_name": ""
}
]
}

Filter by a single value

Pass any column name as a query parameter to filter results. The example returns data resources where state is X.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5&returnColumns=id,name,state&state=X" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"name": "Windows Share 1",
"state": "X"
}
]
}

Filter with OR logic

Repeat the same parameter with different values to match any of them. The example returns data resources where name is Windows Share 1 or Windows Share 2.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5&returnColumns=id,name,state&name=Windows Share 1&name=Windows Share 2" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"name": "Windows Share 1",
"state": "X"
}
]
}

Case-insensitive filter

Filters are case-sensitive by default. Set ignoreCase=true to match regardless of case. The example passes state=x in lowercase and still returns the matching record.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5&returnColumns=id,name,state&state=x&ignoreCase=true" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"name": "Windows Share 1",
"state": "X"
}
]
}

Sort ascending

Use sortByColumns with a column name and sortDirection=asc to sort results. The example sorts by name.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5&returnColumns=id,name,state&sortByColumns=name&sortDirection=asc" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"name": "Windows Share 1",
"state": "X"
}
]
}

Sort descending

Set sortDirection=desc to reverse the order.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=json&returnMaxRows=5&returnColumns=id,name,state&sortByColumns=name&sortDirection=desc" \
-H "Authorization: Bearer <token>"

Response

{
"findDataResources": [
{
"id": "27060",
"name": "Windows Share 1",
"state": "X"
}
]
}

CSV with custom delimiter

Set format=csv for a comma-separated response. Use delimiter to change the separator character.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=csv&returnMaxRows=5&returnColumns=id,name,state&delimiter=~" \
-H "Authorization: Bearer <token>"

Response

id~name~state
27060~Windows Share 1~X

CSV without header row

Set includeHeaderRow=false when your downstream system expects raw data rows without a header.

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=findDataResources&format=csv&returnMaxRows=5&returnColumns=id,name,state&includeHeaderRow=false" \
-H "Authorization: Bearer <token>"

Response

27060,Windows Share 1,X

Error responses

A 401 is returned when the token is missing, invalid, or expired. A 412 is returned when returnColumns includes a column name that does not exist in the PV_DATA_RESOURCE public view.

<html>
<head><title>Error</title></head>
<body>The token is not valid for the command 'findDataResources'. Token is invalid or expired</body>
</html>

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.