If your user account has the Read, Write, or Own permission level on a collection or data file in DME, you can search for that data. You can generate a list of data files, with the full path to each file in DME.
To search for data:
- In your file system, create a JSON file that specifies a search query. (For more information, TBD)
Run the following command:
dm_query_dataobject [-D REST-response] [-o output-file] <criteria.json> [search-path]
The following table describes each parameter:
Parameter Description [-D <REST-response>] An optional parameter, specifying a path and filename in your file system. The system always creates a response file:
- If you specify this parameter, the system saves the response from the server to the specified file in the specified location.
- If you omit this parameter, the system saves the file as in your home directory.
[-o <metadata-file>] An optional parameter, specifying a path and filename in your file system. The system always creates a metadata file:
- If you specify this parameter, the system saves the metadata to the specified file in the specified location.
- If you omit this parameter, the system prints the metadata to standard output and saves the file as in your home directory.
The metadata includes information about the data file, a list of attribute values for the file, and a list of attribute values for the parent collection.
<collection-path>
The path to the collection in DME.
Search for dataobjects based on the given compound query and optional search path.
OPTIONS:
[-D REST-response] Optionally specify the filename to capture REST response
[-o output-json-file] Optionally specify the filename to capture the JSON response
<criteria.json> JSON file containing the compound query for the search
[search-path] Optionally specify the collection path to search in