Skip to main content
POST
/
api
/
v1
/
search
/
app_resources
Typescript (SDK)
import { ConductoroneSDKTypescript } from "conductorone-sdk-typescript";

const conductoroneSDKTypescript = new ConductoroneSDKTypescript({
  security: {
    bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
    oauth: "<YOUR_OAUTH_HERE>",
  },
});

async function run() {
  const result = await conductoroneSDKTypescript.appResourceSearch.searchAppResources();

  for await (const page of result) {
    console.log(page);
  }
}

run();
{
  "expanded": [
    {
      "@type": "<string>"
    }
  ],
  "list": [
    {
      "appPath": "<string>",
      "appResource": {
        "appId": "<string>",
        "appResourceTypeId": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "customDescription": "<string>",
        "deletedAt": "2023-11-07T05:31:56Z",
        "description": "<string>",
        "displayName": "<string>",
        "grantCount": "<string>",
        "id": "<string>",
        "matchBatonId": "<string>",
        "parentAppResourceId": "<string>",
        "parentAppResourceTypeId": "<string>",
        "secretTrait": {
          "identityAppUserId": "<string>",
          "lastUsedAt": "2023-11-07T05:31:56Z",
          "secretCreatedAt": "2023-11-07T05:31:56Z",
          "secretExpiresAt": "2023-11-07T05:31:56Z"
        },
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "parentResourcePath": "<string>",
      "parentResourceTypePath": "<string>",
      "resourceTypePath": "<string>"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The SearchAppResourcesRequest message.

appId
string | null

The appId field.

appUserIds
string[] | null

The appUserIds field.

excludeDeletedResourceBindings
boolean | null

The excludeDeletedResourceBindings field.

excludeResourceIds
string[] | null

The excludeResourceIds field.

excludeResourceTypeTraitIds
string[] | null

The excludeResourceTypeTraitIds field.

pageSize
integer<int32> | null

The pageSize field.

pageToken
string | null

The pageToken field.

query
string | null

The query field.

refs
App Resource Ref · object[] | null

The refs field.

resourceIds
string[] | null

The resourceIds field.

resourceTypeIds
string[] | null

The resourceTypeIds field.

resourceTypeTraitIds
string[] | null

The resourceTypeTraitIds field.

Response

200 - application/json

Successful response

The SearchAppResourcesResponse message.

expanded
object[] | null

The expanded field.

list
App Resource View · object[] | null

The list field.

nextPageToken
string | null

The nextPageToken field.