Skip to main content
Unary · Security Creates a new security policy. Use this method to:
  • Define environment access controls
  • Configure audited or blocked operations
  • Manage organization security posture

Examples

  • Create security policy: Creates an audit-first Veto Exec policy with one audited bare name and one blocked absolute path. Creation stores an inactive definition; assigning it as the organization default validates materializability.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreateSecurityPolicyRequest

Response

gitpod.v1.CreateSecurityPolicyResponse
gitpod.v1.SecurityPolicy
gitpod.v1.SecurityPolicy.Metadata
gitpod.v1.SecurityPolicy.Spec
gitpod.v1.SecurityPolicy.Spec.ExecutablePolicy
gitpod.v1.SecurityPolicy.Spec.PortPolicy
Admission level describes who can access an environment instance and its ports.