Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create and manage access policies
pol, err := client.Policies.Create(ctx, grantex.CreatePolicyParams{ Name: "Block after hours", Effect: "deny", TimeOfDayStart: "18:00", TimeOfDayEnd: "08:00", Scopes: []string{"write:data"}, })
result, err := client.Policies.List(ctx)
pol, err := client.Policies.Get(ctx, "policy-id")
name := "Updated Policy" effect := "allow" pol, err := client.Policies.Update(ctx, "policy-id", grantex.UpdatePolicyParams{ Name: &name, Effect: &effect, })
err := client.Policies.Delete(ctx, "policy-id")
Policy
ID
string
Name
Effect
"allow"
"deny"
Priority
int
AgentID
*string
PrincipalID
Scopes
[]string
TimeOfDayStart
TimeOfDayEnd
CreatedAt
UpdatedAt