Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 1.79 KB

File metadata and controls

89 lines (56 loc) · 1.79 KB

cloud.accessPolicy

Index

Fields

fn addToken

addToken(secretName, secretNamespace)

PARAMETERS:

  • secretName (string)
  • secretNamespace (string)

addToken creates a new Access Policy Token under this Access Policy, the token will be available in the provider secret.

fn forOrg

forOrg(name, namespace, scopes)

PARAMETERS:

  • name (string)
  • namespace (string)
  • scopes (array)

forOrg configures the realm to an org slug.

fn forStackResource

forStackResource(stackResource, namespace)

PARAMETERS:

  • stackResource (string)
  • namespace (string)

forStackResource configures the realm for a stackResource.

The stackResource is in the stack key returned by cloud.stack.new().

fn new

new(name, namespace, scopes)

PARAMETERS:

  • name (string)
  • namespace (string)
  • scopes (array)

new creates a new Access Policy.

For scopes, see https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.

A valid Access Policy also needs a realm, use one of the following functions:

  • withStack: reference a stack by its identifier (id).
  • forStackResource: reference a stack by a Crossplane resource.
  • forOrg: set realm to org level

fn withStack

withStack(id, region)

PARAMETERS:

  • id (string)
  • region (string)

withStack configures the realm to a stack id.