WSO2 · JSON Structure

Governance Api Apim Governance Policy Structure

Detailed information about a governance policy.

Type: object Properties: 11 Required: 5
API ManagementGatewaysOpen-SourceAPI LifecycleGraphQLSOAPREST

APIMGovernancePolicy is a JSON Structure definition published by WSO2, describing 11 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name description governableStates actions rulesets labels createdBy createdTime updatedBy updatedTime

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-structure/governance-api-apim-governance-policy-structure.json",
  "name": "APIMGovernancePolicy",
  "description": "Detailed information about a governance policy.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "UUID of the governance policy.",
      "readOnly": true,
      "example": "987e6543-d21b-34d5-b678-912345678900"
    },
    "name": {
      "type": "string",
      "description": "Name of the governance policy.",
      "maxLength": 256,
      "example": "API Security Policy"
    },
    "description": {
      "type": "string",
      "description": "A brief description of the governance policy.",
      "maxLength": 1024,
      "example": "Policy for enforcing security standards across all APIs."
    },
    "governableStates": {
      "type": "array",
      "description": "List of states at which the governance policy should be enforced.",
      "items": {
        "type": "string",
        "description": "The state at which an governance policy should be enforced.",
        "enum": [
          "API_CREATE",
          "API_UPDATE",
          "API_DEPLOY",
          "API_PUBLISH"
        ],
        "example": "API_DEPLOY",
        "x-enum-varnames": [
          "API_CREATE",
          "API_UPDATE",
          "API_DEPLOY",
          "API_PUBLISH"
        ]
      }
    },
    "actions": {
      "type": "array",
      "description": "List of actions taken when the governance policy is violated. An action is defined by the state and rule severity. If an action is not specified to each state and rule severity, the default action is `NOTIFY`.",
      "items": {
        "$ref": "#/components/schemas/Action"
      }
    },
    "rulesets": {
      "type": "array",
      "description": "List of rulesets associated with the governance policy.",
      "items": {
        "type": "string",
        "example": "94566543-d21b-34d5-b678-912345678900"
      }
    },
    "labels": {
      "type": "array",
      "description": "List of labels IDs associated with the governance policy.",
      "items": {
        "type": "string"
      },
      "example": [
        "54d5833a-ca86-44bb-bcda-5b9fcdacd79d"
      ]
    },
    "createdBy": {
      "type": "string",
      "description": "Identifier of the user who created the governance policy.",
      "readOnly": true,
      "example": "admin@wso2.com"
    },
    "createdTime": {
      "type": "string",
      "description": "Timestamp when the governance policy was created.",
      "readOnly": true,
      "example": "2024-08-01T12:00:00Z"
    },
    "updatedBy": {
      "type": "string",
      "description": "Identifier of the user who last updated the governance policy.",
      "readOnly": true,
      "example": "admin@wso2.com"
    },
    "updatedTime": {
      "type": "string",
      "description": "Timestamp when the governance policy was last updated.",
      "readOnly": true,
      "example": "2024-08-02T12:00:00Z"
    }
  },
  "required": [
    "name",
    "rulesets",
    "labels",
    "governableStates",
    "actions"
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/governance-api-apim-governance-policy-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.