Kong · Schema

RBACUserRole

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen Source

Properties

Name Type Description
role string The RBAC role assigned to the user.
role_source string The origin of the RBAC user role.
user object The RBAC user associated with the role.
user_id string The RBAC user ID associated with the role.
View JSON Schema on GitHub

JSON Schema

kong-rbacuserrole-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RBACUserRole",
  "title": "RBACUserRole",
  "x-speakeasy-entity": "RbacUserRole",
  "type": "object",
  "properties": {
    "role": {
      "description": "The RBAC role assigned to the user.",
      "type": "string",
      "nullable": true,
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "x-foreign": true
    },
    "role_source": {
      "description": "The origin of the RBAC user role.",
      "type": "string",
      "default": "local",
      "enum": [
        "idp",
        "local"
      ],
      "nullable": true,
      "x-speakeasy-terraform-ignore": true
    },
    "user": {
      "description": "The RBAC user associated with the role.",
      "type": "object",
      "nullable": true,
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "x-foreign": true,
      "x-speakeasy-terraform-ignore": true
    },
    "user_id": {
      "description": "The RBAC user ID associated with the role.",
      "type": "string",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-speakeasy-transform-from-api": {
    "jq": ".\n| if .roles != null then .role = .roles[0].name else . end\n| if .user != null and .user.id != null then . + { user_id: .user.id } else . end\n| del(.user, .role_source)\n"
  },
  "x-speakeasy-transform-to-api": {
    "jq": ".\n| if .role != null then .roles = .role else . end\n| if .user_id != null then .user = { id: .user_id } else . end\n| del(.user_id, .role)\n"
  }
}