Skip to content

CreatePolicyRequest

Request body for creating a new MaaSAuthPolicy resource

Type: object

Properties

Property Type Required Description
name string Yes

Name for the MaaSAuthPolicy resource

Example: team-alpha-policy

displayName string No

Human-readable display name (stored as openshift.io/display-name annotation)

Example: Team Alpha Policy

description string No

Description of the policy (stored as openshift.io/description annotation)

Example: Grants Team Alpha access to LLM models

modelRefs array of ModelRef Yes

Models this policy grants access to

Constraints: minimum items 1

subjects SubjectSpec Yes
meteringMetadata TokenMetadata No

Example

{
  "name": "team-alpha-policy",
  "displayName": "Team Alpha Policy",
  "description": "Grants Team Alpha access to LLM models",
  "modelRefs": [
    {
      "name": "llama-2-7b-chat",
      "namespace": "maas-models"
    }
  ],
  "subjects": {
    "groups": [
      {
        "name": "premium-users"
      }
    ]
  },
  "meteringMetadata": {
    "organizationId": "org-123",
    "costCenter": "engineering",
    "labels": {
      "key": "string"
    }
  }
}