v27

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-01304498.9 KB
subscriptions

Get subscription details

Returns detailed information about a specific subscription, including the MaaSSubscription resource, related MaaSModelRef resources, and associated MaaSAuthPolicy resources. K8s calls: GET /k8s/v1/maassubscription/:name, GET /k8s/v1/maasmodelref, GET /k8s/v1/maasauthpolicy

get/api/v1/subscription-info/{name}

Path parameters

namestring required

Name of the MaaSSubscription resource

Response

Subscription details with related resources

Example response

{
  "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",
    "priority": 10,
    "owner": {
      "groups": [
        {
          "name": "premium-users"
        }
      ]
    },
    "modelRefs": [
      {
        "name": "llama-2-7b-chat",
        "namespace": "maas-models",
        "tokenRateLimits": [
          {
            "limit": 100000,
            "window": "24h"
          }
        ],
        "billingRate": {
          "perToken": "0.0001"
        }
      }
    ],
    "tokenMetadata": {
      "organizationId": "org-123",
      "costCenter": "engineering"
    }
  },
  "modelRefs": [
    {
      "name": "llama-2-7b-chat",
      "namespace": "maas-models",
      "displayName": "Granite 3 8B Instruct",
      "description": "IBM Granite 3 8B instruction-tuned language model.",
      "modelRef": {
        "kind": "LLMInferenceService",
        "name": "llama-2-7b-chat"
      },
      "phase": "Ready",
      "endpoint": "https://llama-2-7b-chat.example.com",
      "modelCapabilities": [
        "text-generation",
        "vision"
      ]
    }
  ],
  "authPolicies": [
    {
      "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",
      "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"
      }
    }
  ]
}