You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`forStackResource` configures the `realm` for a `stackResource`.
68
+
69
+
The `stackResource` is in the `stack` key returned by `cloud.stack.new()`.
70
+
71
+
#### fn accessPolicy.new
72
+
73
+
```jsonnet
74
+
accessPolicy.new(name, namespace, scopes)
75
+
```
76
+
77
+
PARAMETERS:
78
+
79
+
***name** (`string`)
80
+
***namespace** (`string`)
81
+
***scopes** (`array`)
82
+
83
+
`new` creates a new Access Policy.
84
+
85
+
For `scopes`, see https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
86
+
87
+
A valid Access Policy also needs a `realm`, use one of the following functions:
88
+
-`withStack`: reference a stack by its identifier (id).
89
+
-`forStackResource`: reference a stack by a Crossplane resource.
90
+
-`forOrg`: set realm to org level
91
+
92
+
#### fn accessPolicy.withStack
93
+
94
+
```jsonnet
95
+
accessPolicy.withStack(id, region)
96
+
```
97
+
98
+
PARAMETERS:
99
+
100
+
***id** (`string`)
101
+
***region** (`string`)
102
+
103
+
`withStack` configures the `realm` to a stack `id`.
local forProvider = raw.cloud.v1alpha1.accessPolicy.spec.parameters.forProvider,
97
+
98
+
'#new': d.func.new(
99
+
|||
100
+
`new` creates a new Access Policy.
101
+
102
+
For `scopes`, see https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
103
+
104
+
A valid Access Policy also needs a `realm`, use one of the following functions:
105
+
- `withStack`: reference a stack by its identifier (id).
106
+
- `forStackResource`: reference a stack by a Crossplane resource.
0 commit comments