CreateSubscriptionRequest¶
Request body for creating a new subscription. Optionally creates a MaaSAuthPolicy if createAuthPolicy is true. The namespace is determined by server configuration (MAAS_SUBSCRIPTION_NAMESPACE).
Type: object
Properties¶
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name for the MaaSSubscription resource Example: |
description | string | No | Optional description providing context about the subscription Example: |
displayName | string | No | Optional display name for the subscription Example: |
owner | OwnerSpec | Yes | |
modelRefs | array of ModelSubscriptionRef | Yes | Models to include in this subscription Constraints: minimum items 1 |
tokenMetadata | TokenMetadata | No | |
inferencePriority | integer (int32) | No | Optional subscription inference priority (signed int32). Omitted when unset; the scheduler applies default 0. Example: |
createAuthPolicy | boolean | No | Whether to also create a MaaSAuthPolicy for this subscription Default: |
Example¶
{
"name": "premium-team-sub",
"description": "This subscription is for the premium team",
"displayName": "Premium Team Subscription",
"owner": {
"groups": [
{
"name": "premium-users"
}
]
},
"modelRefs": [
{
"name": "llama-2-7b-chat",
"namespace": "maas-models",
"tokenRateLimits": [
{
"limit": 100000,
"window": "24h"
}
],
"billingRate": {
"perToken": "0.0001"
},
"objectiveName": "maas-models-as-a-service-gold-maas-model-user-inference-pool-a1b2c3d4e5",
"targetPool": "maas-model-user-inference-pool",
"ready": true,
"reason": "ObjectiveReconciled",
"message": "InferenceObjective sets priority 10"
}
],
"tokenMetadata": {
"organizationId": "org-123",
"costCenter": "engineering",
"labels": {
"key": "string"
}
},
"inferencePriority": 10,
"createAuthPolicy": false
}