Creates or Updates MeshAccessLog entity
Changed onRequest
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/meshaccesslogs/{name}
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
name of the mesh
name of the MeshAccessLog
Request body
Example request
{
"kri": "kri_mal_default_zone-east_kuma-demo_mypolicy1_",
"spec": {
"from": [
{
"default": {
"backends": [
{
"file": {
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
},
"path": "/tmp/access.log"
},
"openTelemetry": {
"attributes": [
{
"key": "mesh",
"value": "%KUMA_MESH%"
}
],
"body": {
"kvlistValue": {
"values": [
{
"key": "mesh",
"value": {
"stringValue": "%KUMA_MESH%"
}
}
]
}
},
"endpoint": "otel-collector:4317"
},
"tcp": {
"address": "127.0.0.1:5000",
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
}
}
}
]
}
}
],
"rules": [
{
"default": {
"backends": [
{
"file": {
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
},
"path": "/tmp/access.log"
},
"openTelemetry": {
"attributes": [
{
"key": "mesh",
"value": "%KUMA_MESH%"
}
],
"body": {
"kvlistValue": {
"values": [
{
"key": "mesh",
"value": {
"stringValue": "%KUMA_MESH%"
}
}
]
}
},
"endpoint": "otel-collector:4317"
},
"tcp": {
"address": "127.0.0.1:5000",
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
}
}
}
]
}
}
],
"to": [
{
"default": {
"backends": [
{
"file": {
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
},
"path": "/tmp/access.log"
},
"openTelemetry": {
"attributes": [
{
"key": "mesh",
"value": "%KUMA_MESH%"
}
],
"body": {
"kvlistValue": {
"values": [
{
"key": "mesh",
"value": {
"stringValue": "%KUMA_MESH%"
}
}
]
}
},
"endpoint": "otel-collector:4317"
},
"tcp": {
"address": "127.0.0.1:5000",
"format": {
"json": [
{
"key": "start_time",
"value": "%START_TIME%"
},
{
"key": "bytes_received",
"value": "%BYTES_RECEIVED%"
}
],
"plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
}
}
}
]
}
}
]
},
"creationTime": "0001-01-01T00:00:00Z",
"modificationTime": "0001-01-01T00:00:00Z"
}Response
Successful response
Changes
- breaking
added the pattern
^[a-z]([a-z0-9]|[._][a-z0-9])*$to the request property///////// - breaking
added the pattern
^[a-z]([a-z0-9]|[._][a-z0-9])*$to the request property///////// - breaking
added the pattern
^[a-z]([a-z0-9]|[._][a-z0-9])*$to the request property///////// - info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
/// - info
added the new optional request property
/////// - info
the request property
///////became optional - info
the request property
///////became optional - info
the request property
///////became optional - info
the
request property default valuewas added - info
the
request property default valuewas added - info
the
request property default valuewas added - info
the
///////request property's minLength was decreased from1to0 - info
the
///////request property's minLength was decreased from1to0 - info
the
///////request property's minLength was decreased from1to0
- breaking
- info
endpoint added
- info