Retrieve
Get
client.directories.retrieve(stringappID, RequestOptionsoptions?): directoryViewDirectoryViewexpandedunionDirectoryRetrieveResponse
get/api/v1/directories/{app_id}
Get a directory by app_id.
Parameters
appIDstring
The appId field.
Returns
DirectoryRetrieveResponse
The Directory Service Get Response returns a directory view with a directory and JSONPATHs indicating the location in the expanded array that items are expanded as indicated by the expand mask in the request.
Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';
const client = new ConductoroneSDK({
apiKey: 'My API Key',
});
const directory = await client.directories.retrieve('app_id');
console.log(directory.directoryView);200 Example
{
"directoryView": {
"appPath": "appPath",
"directory": {}
},
"expanded": [
{
"@type": "@type"
}
]
}