Skip to content

CreateSubscriptionResponse

Response after creating or updating a subscription. authPolicy is only present when createAuthPolicy was true on creation.

Type: object

Properties

Property Type Required Description
subscription MaaSSubscription Yes
authPolicy MaaSAuthPolicy No

Example

{
  "subscription": {
    "name": "premium-team-sub",
    "displayName": "Premium Team Subscription",
    "description": "This subscription is for the premium team",
    "namespace": "maas-system",
    "phase": "Active",
    "statusMessage": "successfully reconciled",
    "reason": "Reconciled",
    "status": "True",
    "conditionType": "Ready",
    "lastTransitionTime": "2026-01-01T00:00:00Z",
    "inferencePriority": 10,
    "inferenceObjectivesReady": {
      "type": "InferenceObjectivesReady",
      "status": "True",
      "reason": "Reconciled",
      "message": "Inference objectives are ready",
      "lastTransitionTime": "2026-01-01T00:00:00Z"
    },
    "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"
      }
    },
    "creationTimestamp": "2024-01-31T09:30:00Z",
    "deletionTimestamp": "2024-01-31T09:30:00Z"
  },
  "authPolicy": {
    "name": "premium-team-sub-policy",
    "namespace": "maas-system",
    "displayName": "Premium Team Policy",
    "description": "High-priority access policy for the premium team.",
    "phase": "Active",
    "statusMessage": "successfully reconciled",
    "reason": "Reconciled",
    "status": "True",
    "conditionType": "Ready",
    "lastTransitionTime": "2026-01-01T00:00:00Z",
    "creationTimestamp": "2025-03-01T10:00:00Z",
    "modelRefs": [
      {
        "name": "llama-2-7b-chat",
        "namespace": "maas-models"
      }
    ],
    "subjects": {
      "groups": [
        {
          "name": "premium-users"
        }
      ]
    },
    "meteringMetadata": {
      "organizationId": "org-123",
      "costCenter": "engineering",
      "labels": {
        "key": "string"
      }
    },
    "deletionTimestamp": "2024-01-31T09:30:00Z"
  }
}