Secrets

Create secret grant

Changed on

Shares a secret with another project so that project's resources can use it, and returns the grant; ownership doesn't change.

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

Request

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

Path parameters

orgID, string required

Organization ID (org_...).

secretID, string required

Secret ID (sec_...).

Request body

SecretGrantCreateRequest required
target_project_id, string required

Project ID (proj_...).

Response

Secret grant created.

SecretGrant required
id, string required

Identifies this grant; use it to revoke the project's access.

org_id, string required

Organization the grant and its secret belong to.

secret_id, string required

Secret shared by this grant.

target_project_id, string required

Project that can use the secret through this grant.

created_at, string date-time required

When the secret was granted to the project.

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

    13 more changes in this revision