Search App Resources
Search app resources based on filters specified in the request body.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
Search app resources based on filters specified in the request body.
Restrict the search to AI-agent resources with one of the given agent lifecycle statuses (READY, DISABLED, DELETED). When empty, agent status is not used as a filter.
AGENT_STATUS_UNSPECIFIED, AGENT_STATUS_READY, AGENT_STATUS_DISABLED, AGENT_STATUS_DELETED The app ID to restrict the search to.
A list of app IDs to restrict the search to. Mirrors the singular app_id; both fold into the same filter, so callers may set either or both.
A list of app user IDs to restrict the search by.
Restrict the search to resources whose credential material spine (K1) matches one of the given CredentialType values. Applies to resources with a secret_trait. When empty, credential_type is not used as a filter.
CREDENTIAL_TYPE_UNSPECIFIED, CREDENTIAL_TYPE_STATIC_SECRET, CREDENTIAL_TYPE_ASYMMETRIC_KEY, CREDENTIAL_TYPE_CERTIFICATE Direction to sort in. Unspecified falls back to ASC when sort_field is set. No defined_only validation here: protoc-gen-validate mis-resolves the cross-package enum name map to this file's c1.models.app.v1 import alias instead of c1.api.search.v1, which fails to compile. The query builder already treats any unrecognized value as ASC, so this is safe to omit.
SORT_DIRECTION_UNSPECIFIED, SORT_DIRECTION_ASC, SORT_DIRECTION_DESC When true, excludes resources belonging to soft-deleted apps.
If true, exclude resources whose bindings have been deleted.
A list of resource IDs to exclude from the search results.
A list of resource type trait IDs to exclude from the search.
Restrict the search to resources whose NHI classification spine (K3) is one of the given NhiType values. When empty, nhi_type is not used as a filter.
NHI_TYPE_UNSPECIFIED, NHI_TYPE_APP_REGISTRATION, NHI_TYPE_ASSUMABLE_ROLE, NHI_TYPE_MANAGED_IDENTITY A list of C1 user IDs to filter resources by ownership. The sentinel value "none" matches resources with no owner. Mutually exclusive with unowned_only — combine "none" with real owner IDs instead of setting unowned_only alongside them.
The maximum number of results to return per page.
The token for fetching the next page of results.
Fuzzy search the display name of resources.
A list of specific app resource references to restrict the search to.
A list of resource IDs to restrict the search to.
A list of resource type IDs to restrict the search by.
A list of resource type trait IDs to restrict the search by.
SecretAgingFilter restricts a resource search to secrets (credential_type != 0) whose secret-trait timestamps fall in the given half-open ranges. Each bound is optional; leave one unset for an open-ended range. All set bounds are ANDed. Callers pass absolute timestamps (computed against their reference "now").
Column to sort by. Unspecified (0) keeps the server's default order (app, then display name).
APP_RESOURCE_SORT_FIELD_UNSPECIFIED, APP_RESOURCE_SORT_FIELD_SECRET_CREATED_AT, APP_RESOURCE_SORT_FIELD_SECRET_EXPIRES_AT, APP_RESOURCE_SORT_FIELD_LAST_USED_AT When true, restrict results to resources with no ownership-v2 primary-role owner. Mutually exclusive with owner_user_ids — use owner_user_ids: ["none"] instead if you also need to combine it with real owner IDs.
When true, restrict results to resources that have at least one open finding (index-backed EXISTS semi-join). When false/unset, results are unfiltered.
Response
The SearchAppResourcesResponse message contains a list of results and a nextPageToken if applicable.
The SearchAppResourcesResponse message contains a list of results and a nextPageToken if applicable.