FlowControlServiceHTTP_CheckHTTP
FlowControlServiceHTTP_CheckHTTP
- application/json
Request Body required
- control_point string
For an SDK based insertion, a Control Point can represent a particular feature or execution block within a Service. In case of Service Mesh or Middleware insertion, a Control Point can identify ingress vs egress calls or distinct listeners or filter chains.
destination object
- expect_end boolean
Expect End denotes whether to expect a FlowEnd call for this flow.
- ramp_mode boolean
A flow with ramp_mode flag will only be accepted if at least one ramp component matches and accepts the flow.
request object
source object
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
check_response object
denied_response object
- dynamic_metadata object
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.
ok_response object
status object
{
"check_response": {
"cache_lookup_response": {
"global_cache_responses": {},
"result_cache_response": {
"error": "string",
"lookup_status": "HIT",
"operation_status": "SUCCESS",
"value": "string"
}
},
"classifier_infos": [
{
"classifier_index": "string",
"error": "ERROR_NONE",
"policy_hash": "string",
"policy_name": "string"
}
],
"control_point": "string",
"decision_type": "DECISION_TYPE_ACCEPTED",
"denied_response_status_code": "Empty",
"end": "2024-01-20T19:27:12.036Z",
"expect_end": true,
"flow_label_keys": [
"string"
],
"flux_meter_infos": [
{
"flux_meter_name": "string"
}
],
"limiter_decisions": [
{
"component_id": "string",
"concurrency_limiter_info": {
"label": "string",
"request_id": "string",
"tokens_info": {
"consumed": 0,
"current": 0,
"remaining": 0
}
},
"concurrency_scheduler_info": {
"label": "string",
"priority": 0,
"request_id": "string",
"tokens_info": {
"consumed": 0,
"current": 0,
"remaining": 0
},
"workload_index": "string"
},
"denied_response_status_code": "Empty",
"dropped": true,
"load_scheduler_info": {
"priority": 0,
"tokens_info": {
"consumed": 0,
"current": 0,
"remaining": 0
},
"workload_index": "string"
},
"policy_hash": "string",
"policy_name": "string",
"quota_scheduler_info": {
"label": "string",
"priority": 0,
"tokens_info": {
"consumed": 0,
"current": 0,
"remaining": 0
},
"workload_index": "string"
},
"rate_limiter_info": {
"label": "string",
"tokens_info": {
"consumed": 0,
"current": 0,
"remaining": 0
}
},
"reason": "LIMITER_REASON_UNSPECIFIED",
"sampler_info": {
"label": "string"
},
"wait_time": "string"
}
],
"reject_reason": "REJECT_REASON_NONE",
"services": [
"string"
],
"start": "2024-01-20T19:27:12.036Z",
"telemetry_flow_labels": {},
"wait_time": "string"
},
"denied_response": {
"body": "string",
"headers": {},
"status": 0
},
"dynamic_metadata": {},
"ok_response": {
"dynamic_metadata": {},
"headers": {}
},
"status": {
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
details object[]
- message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
POST /v1/flowcontrol/checkhttp
Request
Request
curl -L -X POST 'https://aperture-agent/v1/flowcontrol/checkhttp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"control_point": "string",
"destination": {
"address": "string",
"port": 0,
"protocol": "TCP"
},
"expect_end": true,
"ramp_mode": true,
"request": {
"body": "string",
"headers": {},
"host": "string",
"method": "string",
"path": "string",
"protocol": "string",
"scheme": "string",
"size": "string"
},
"source": {
"address": "string",
"port": 0,
"protocol": "TCP"
}
}'
curl -L -X POST 'https://aperture-agent/v1/flowcontrol/checkhttp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"control_point": "string",
"destination": {
"address": "string",
"port": 0,
"protocol": "TCP"
},
"expect_end": true,
"ramp_mode": true,
"request": {
"body": "string",
"headers": {},
"host": "string",
"method": "string",
"path": "string",
"protocol": "string",
"scheme": "string",
"size": "string"
},
"source": {
"address": "string",
"port": 0,
"protocol": "TCP"
}
}'
curl -L -X POST 'https://aperture-agent/v1/flowcontrol/checkhttp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"control_point": "string",
"destination": {
"address": "string",
"port": 0,
"protocol": "TCP"
},
"expect_end": true,
"ramp_mode": true,
"request": {
"body": "string",
"headers": {},
"host": "string",
"method": "string",
"path": "string",
"protocol": "string",
"scheme": "string",
"size": "string"
},
"source": {
"address": "string",
"port": 0,
"protocol": "TCP"
}
}'