Create Authzen Policy
CreateAuthzenPolicy validates the CEL syntax (requiring a bool result) and stores a new, immutable policy revision for the app. The revision has no effect until a server’s active_policy_id is set to it via Update.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Path Parameters
App identifier.
Body
AuthzenServerServiceCreateAuthzenPolicyRequest creates a new CEL policy revision for an app.
This message contains a oneof named engine. Only a single field of the following list may be set at a time:
- cel
Response
AuthzenServerServiceCreateAuthzenPolicyResponse returns the newly created policy revision.
AuthzenServerServiceCreateAuthzenPolicyResponse returns the newly created policy revision.
AuthzenPolicy is one immutable CEL policy revision scoped to an app. A revision is never edited in place; activate it by setting a server's active_policy_id.
This message contains a oneof named engine. Only a single field of the following list may be set at a time:
- cel