UpdatePolicyRequest¶
Request body for updating an existing MaaSAuthPolicy resource
Type: object
Properties¶
| Property | Type | Required | Description |
|---|---|---|---|
displayName | string | No | Human-readable display name (stored as openshift.io/display-name annotation) |
description | string | No | Description of the policy (stored as openshift.io/description annotation) |
modelRefs | array of ModelRef | Yes | Updated models for this policy Constraints: minimum items 1 |
subjects | SubjectSpec | Yes | |
meteringMetadata | TokenMetadata | No |
Example¶
{
"displayName": "string",
"description": "string",
"modelRefs": [
{
"name": "llama-2-7b-chat",
"namespace": "maas-models"
}
],
"subjects": {
"groups": [
{
"name": "premium-users"
}
]
},
"meteringMetadata": {
"organizationId": "org-123",
"costCenter": "engineering",
"labels": {
"key": "string"
}
}
}