{
"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>"
],
"name": "<string>",
"path": "<string>",
"plugin_chain": [
{
"enabled": true,
"id": "<string>",
"level": "gateway",
"name": "<string>",
"parallel": true,
"priority": 123,
"settings": {},
"stage": "pre_request"
}
],
"preserve_host": true,
"retry_attempts": 123,
"service_id": "<string>",
"strip_path": true,
"trustlens": {
"app_id": "<string>",
"mapping": {
"input": {
"data_projection": {},
"extract_fields": {}
},
"output": {
"data_projection": {},
"extract_fields": {}
}
},
"team_id": "<string>",
"type": "<string>"
},
"updated_at": "<string>",
"upstream": {
"algorithm": "<string>",
"name": "<string>",
"targets": [
{
"auth": {
"oauth": {
"audience": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"code": "<string>",
"code_verifier": "<string>",
"extra": {},
"grant_type": "<string>",
"password": "<string>",
"redirect_uri": "<string>",
"refresh_token": "<string>",
"scopes": [
"<string>"
],
"token_url": "<string>",
"use_basic_auth": true,
"username": "<string>"
},
"type": "oauth2"
},
"credentials": {
"api_key": "<string>",
"aws_access_key_id": "<string>",
"aws_region": "<string>",
"aws_role": "<string>",
"aws_secret_access_key": "<string>",
"aws_session_token": "<string>",
"aws_use_role": true,
"azure_client_id": "<string>",
"azure_client_secret": "<string>",
"azure_endpoint": "<string>",
"azure_eversion": "<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>",
"insecure_ssl": true,
"models": [
"<string>"
],
"path": "<string>",
"port": 123,
"protocol": "<string>",
"provider": "<string>",
"provider_options": {},
"stream": true,
"tags": [
"<string>"
],
"weight": 123
}
]
}
}
]
}Returns a list of all rules for a gateway
{
"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>"
],
"name": "<string>",
"path": "<string>",
"plugin_chain": [
{
"enabled": true,
"id": "<string>",
"level": "gateway",
"name": "<string>",
"parallel": true,
"priority": 123,
"settings": {},
"stage": "pre_request"
}
],
"preserve_host": true,
"retry_attempts": 123,
"service_id": "<string>",
"strip_path": true,
"trustlens": {
"app_id": "<string>",
"mapping": {
"input": {
"data_projection": {},
"extract_fields": {}
},
"output": {
"data_projection": {},
"extract_fields": {}
}
},
"team_id": "<string>",
"type": "<string>"
},
"updated_at": "<string>",
"upstream": {
"algorithm": "<string>",
"name": "<string>",
"targets": [
{
"auth": {
"oauth": {
"audience": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"code": "<string>",
"code_verifier": "<string>",
"extra": {},
"grant_type": "<string>",
"password": "<string>",
"redirect_uri": "<string>",
"refresh_token": "<string>",
"scopes": [
"<string>"
],
"token_url": "<string>",
"use_basic_auth": true,
"username": "<string>"
},
"type": "oauth2"
},
"credentials": {
"api_key": "<string>",
"aws_access_key_id": "<string>",
"aws_region": "<string>",
"aws_role": "<string>",
"aws_secret_access_key": "<string>",
"aws_session_token": "<string>",
"aws_use_role": true,
"azure_client_id": "<string>",
"azure_client_secret": "<string>",
"azure_endpoint": "<string>",
"azure_eversion": "<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>",
"insecure_ssl": true,
"models": [
"<string>"
],
"path": "<string>",
"port": 123,
"protocol": "<string>",
"provider": "<string>",
"provider_options": {},
"stream": true,
"tags": [
"<string>"
],
"weight": 123
}
]
}
}
]
}Authorization token
Gateway ID
List of rules
Show child attributes
Show child attributes
ID of the gateway or rule this plugin belongs to
gateway, rule Whether this plugin can run in parallel
pre_request, post_request, pre_response, post_response Show child attributes
Show child attributes
ID of the gateway or rule this plugin belongs to
gateway, rule Whether this plugin can run in parallel
pre_request, post_request, pre_response, post_response Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
oauth2 Show child attributes
Api Key
AWS auth
Azure auth
GCP auth
Header-based auth
"query" or "body"
Parameter-based auth