Skip to main content
POST
/
api
/
v1
/
search
/
app_resource_types
SearchAppResourceTypes
package main

import(
	"context"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	"log"
)

func main() {
    ctx := context.Background()

    s := conductoronesdkgo.New(
        conductoronesdkgo.WithSecurity(shared.Security{
            BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
            Oauth: "<YOUR_OAUTH_HERE>",
        }),
    )

    res, err := s.AppResourceSearch.SearchAppResourceTypes(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.SearchAppResourceTypesResponse != nil {
        // handle response
    }
}
{
  "list": [
    {
      "appId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z",
      "displayName": "<string>",
      "id": "<string>",
      "traitIds": [
        "<string>"
      ],
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "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

Search for app resources based on some filters.

appIds
string[] | null

A list of app IDs to restrict the search by.

appUserIds
string[] | null

A list of app user IDs to restrict the search by.

displayName
string | null

Exact match on display name

excludeResourceTypeIds
string[] | null

A list of resource type IDs to exclude from the search.

excludeResourceTypeTraitIds
string[] | null

A list of resource type trait IDs to exclude from the search.

pageSize
integer<int32> | null

The pageSize where 10 <= pageSize <= 100, default 25.

pageToken
string | null

The pageToken field.

query
string | null

Fuzzy search the display name of resource types.

resourceTypeIds
string[] | null

A list of resource type IDs to restrict the search by.

resourceTypeTraitIds
string[] | null

A list of resource type trait IDs to restrict the search by.

Response

200 - application/json

The SearchAppResourceTypesResponse message contains a list of results and a nextPageToken if applicable.

The SearchAppResourceTypesResponse message contains a list of results and a nextPageToken if applicable.

list
App Resource Type · object[] | null

The list of results containing up to X results, where X is the page size defined in the request.

nextPageToken
string | null

The nextPageToken is shown for the next page if the number of results is larger than the max page size. The server returns one page of results and the nextPageToken until all results are retreived. To retrieve the next page, use the same request and append a pageToken field with the value of nextPageToken shown on the previous page.