Secrets

List secret grants

Changed on

Lists the projects a secret is shared with, one grant per project, most recently shared first by default.

get/orgs/{orgID}/secrets/{secretID}/grants

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session

Path parameters

orgID, string required

Organization ID (org_...).

secretID, string required

Secret ID (sec_...).

Query parameters

name, string

Case-insensitive glob over the list's logical name. * matches zero or more characters, ? matches one character, and \ escapes a wildcard.

sort, 'name' | '-name' | '-created_at' | 'created_at'

Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first).

limit, integer

Maximum number of items to return in one page.

cursor, string

Opaque pagination cursor from a previous response's next_cursor. Omit for the first page.

Response

Outgoing secret grants.

ListSecretGrantsResponse required
data, SecretGrantListItem[] required
next_cursor, string nullable required

Changes

    • warning

      added the new upstream_unavailable enum value to the code response property for the response status

    • warning

      added the new upstream_unavailable enum value to the code response property for the response status

    • warning

      added the new upstream_unavailable enum value to the code response property for the response status

    11 more changes in this revision