GET
/
api
/
v1
/
gateways
/
{gateway_id}
/
rules
{
  "gateway": {
    "created_at": "<string>",
    "id": "<string>",
    "name": "<string>",
    "plugin_chain": [
      {
        "enabled": true,
        "id": "<string>",
        "level": "gateway",
        "name": "<string>",
        "parallel": true,
        "priority": 123,
        "settings": {},
        "stage": "pre_request"
      }
    ],
    "status": "<string>",
    "updated_at": "<string>"
  },
  "rules": [
    {
      "active": true,
      "created_at": "<string>",
      "headers": {},
      "id": "<string>",
      "methods": [
        "<string>"
      ],
      "path": "<string>",
      "plugin_chain": [
        {
          "enabled": true,
          "id": "<string>",
          "level": "gateway",
          "name": "<string>",
          "parallel": true,
          "priority": 123,
          "settings": {},
          "stage": "pre_request"
        }
      ],
      "service_id": "<string>",
      "trustlens": {
        "app_id": "<string>",
        "team_id": "<string>"
      },
      "updated_at": "<string>",
      "upstream": {
        "algorithm": "<string>",
        "name": "<string>",
        "targets": [
          {
            "credentials": {
              "allow_override": true,
              "aws_access_key_id": "<string>",
              "aws_secret_access_key": "<string>",
              "azure_client_id": "<string>",
              "azure_client_secret": "<string>",
              "azure_tenant_id": "<string>",
              "azure_use_managed_identity": true,
              "gcp_service_account_json": "<string>",
              "gcp_use_service_account": true,
              "header_name": "<string>",
              "header_value": "<string>",
              "param_location": "<string>",
              "param_name": "<string>",
              "param_value": "<string>"
            },
            "default_model": "<string>",
            "description": "<string>",
            "headers": {},
            "host": "<string>",
            "id": "<string>",
            "models": [
              "<string>"
            ],
            "path": "<string>",
            "port": 123,
            "priority": 123,
            "protocol": "<string>",
            "provider": "<string>",
            "stream": true,
            "tags": [
              "<string>"
            ],
            "weight": 123
          }
        ]
      }
    }
  ]
}

Headers

Authorization
string
required

Authorization token

Path Parameters

gateway_id
string
required

Gateway ID

Response

200
application/json

List of rules

The response is of type object.