{
"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"
}
],
"service_id": "<string>",
"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": [
{
"credentials": {
"allow_override": true,
"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_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,
"priority": 123,
"protocol": "<string>",
"provider": "<string>",
"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"
}
],
"service_id": "<string>",
"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": [
{
"credentials": {
"allow_override": true,
"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_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,
"priority": 123,
"protocol": "<string>",
"provider": "<string>",
"stream": true,
"tags": [
"<string>"
],
"weight": 123
}
]
}
}
]
}
Authorization token
Gateway ID
List of rules
The response is of type object
.