Skip to main content

Grant

A grant: a specific OCI repo or resource shared with recipient projects / environments matching recipientConditions.

type Grant {
id: ID!
action: String!
recipientConditions: Conditions!
source: GrantSource!
createdAt: DateTime!
updatedAt: DateTime!
}

Fields

Grant.id ● ID! non-null scalar {#id}

Unique identifier for this grant.

Grant.action ● String! non-null scalar {#action}

The action being granted on the source. Repo grants take repo:view/repo:pull/repo:push; resource grants take resource:view/resource:export.

Grant.recipientConditions ● Conditions! non-null scalar {#recipient-conditions}

Either "*" (the grant is a wildcard — every recipient in the org sees the source) or a JSON-encoded object of attribute conditions the recipient project / environment must satisfy. Keys are attribute names; values are a string or list of strings.

Grant.source ● GrantSource! non-null union {#source}

The OCI repo or resource being shared.

Grant.createdAt ● DateTime! non-null scalar {#created-at}

When this grant was created.

Grant.updatedAt ● DateTime! non-null scalar {#updated-at}

When this grant was last updated.

Member Of

GrantPayload object ● GrantsPage object