v1

latestOpenAPI 3.0.12026-07-17387979.8 KB
Subscription Validation

Get all subscription throttling policies

This will provide access to subscription level throttling policies in database.

get/subscription-policies

Query parameters

policyNamestring

Search condition. Subscription policy name

Headers

xWSO2Tenantstring required

This is used to specify the tenant domain, where the resource need to be retrieved from.

Response

An array of subscription policies in the database

countinteger

Number of SubscriptionPolices returned.

Example response

{
  "count": 1,
  "list": [
    {
      "graphQLMaxComplexity": 400,
      "graphQLMaxDepth": 10,
      "defaultLimit": {
        "requestCount": {
          "timeUnit": "min",
          "unitTime": 10,
          "requestCount": 1000
        },
        "bandwidth": {
          "timeUnit": "min",
          "unitTime": 10,
          "dataAmount": 1000,
          "dataUnit": "KB"
        },
        "eventCount": {
          "timeUnit": "min",
          "unitTime": 10,
          "eventCount": 3000
        },
        "aiApiQuota": {
          "timeUnit": "min",
          "unitTime": 10,
          "requestCount": 1000,
          "totalTokenCount": 1000,
          "promptTokenCount": 300,
          "completionTokenCount": 300
        }
      }
    }
  ],
  "pagination": {
    "limit": 1,
    "total": 10
  }
}