Create App Resources
Search App Resources
client.search.createAppResources(SearchCreateAppResourcesParamsbody?, RequestOptionsoptions?): expandedunionlistunionnextPageTokenstringSearchCreateAppResourcesResponse
post/api/v1/search/app_resources
Invokes the c1.api.app.v1.AppResourceSearch.SearchAppResources method.
Parameters
bodyappIdstringappUserIdsunionexcludeDeletedResourceBindingsbooleanexcludeResourceIdsunionexcludeResourceTypeTraitIdsunionpageSizenumberpageTokenstringquerystringrefsunionresourceIdsunionresourceTypeIdsunionresourceTypeTraitIdsunionSearchCreateAppResourcesParams
Returns
SearchCreateAppResourcesResponse
The SearchAppResourcesResponse message.
Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';
const client = new ConductoroneSDK({
apiKey: 'My API Key',
});
const response = await client.search.createAppResources();
console.log(response.expanded);200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"appPath": "appPath",
"appResource": {
"id": "id",
"appId": "appId",
"appResourceTypeId": "appResourceTypeId",
"customDescription": "customDescription",
"description": "description",
"displayName": "displayName",
"grantCount": "grantCount",
"matchBatonId": "matchBatonId",
"parentAppResourceId": "parentAppResourceId",
"parentAppResourceTypeId": "parentAppResourceTypeId",
"secretTrait": {
"identityAppUserId": "identityAppUserId",
"lastUsedAt": "2019-12-27T18:11:19.117Z",
"secretCreatedAt": "2019-12-27T18:11:19.117Z",
"secretExpiresAt": "2019-12-27T18:11:19.117Z"
}
},
"parentResourcePath": "parentResourcePath",
"parentResourceTypePath": "parentResourceTypePath",
"resourceTypePath": "resourceTypePath"
}
],
"nextPageToken": "nextPageToken"
}