EventGatewayProduceSchemaValidationPolicyJsonConfig

object

The configuration of the produce schema validation policy when using JSON parsing without schema.

schema_registryOne Of

A reference to a schema Registry.

SchemaRegistryReferenceByIdobject
Show Child Parameters
key_validation_actionstring

Defines a behavior when record key is not valid.

  • reject - rejects a batch for topic partition. Only available for produce.
  • mark - marks a record with kong/server header and client ID value
    to help to identify the clients violating schema.

Allowed values:rejectmark

value_validation_actionstring

Defines a behavior when record value is not valid.

  • reject - rejects a batch for topic partition. Only available for produce.
  • mark - marks a record with kong/server header and client ID value
    to help to identify the clients violating schema.

Allowed values:rejectmark

typestringrequired

Allowed values:json

Example

EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

object

The configuration of the produce schema validation policy when using a schema registry.

schema_registryOne Of

A reference to a schema Registry.

SchemaRegistryReferenceByIdobject
Show Child Parameters
key_validation_actionstring

Defines a behavior when record key is not valid.

  • reject - rejects a batch for topic partition. Only available for produce.
  • mark - marks a record with kong/server header and client ID value
    to help to identify the clients violating schema.

Allowed values:rejectmark

value_validation_actionstring

Defines a behavior when record value is not valid.

  • reject - rejects a batch for topic partition. Only available for produce.
  • mark - marks a record with kong/server header and client ID value
    to help to identify the clients violating schema.

Allowed values:rejectmark

typestringrequired

Allowed values:confluent_schema_registry

Example

ACL

object

Apply Kafka ACLs to virtual cluster traffic.

typestringrequired

The type name of the policy.

Allowed values:acls

>= 1 characters<= 255 characters

namestring

A unique user-defined name of the policy.

<= 255 characters

descriptionstring

A human-readable description of the policy.

Default:

<= 512 characters

enabledboolean

Whether the policy is enabled.

Default:true

labelsobject

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with “kong”, “konnect”, “mesh”, “kic”, or “_”.

Example:{"env":"test"}

configobjectrequired

The configuration of the policy.

Show Child Parameters
conditionstring

A string containing the boolean expression that determines whether the policy is applied.

Default:

<= 1000 characters

Example:context.auth.principal.name == "this-user"

Example

EventGatewayACLPolicyConfig

object

Apply ACLs to virtual cluster traffic.

rulesarray[object]required

A Kafka ACL rule to apply to virtual cluster traffic

>= 1 items

Show Child Parameters
Example

EventGatewayACLRule

object

A Kafka ACL rule to apply to virtual cluster traffic

resource_typestringrequired

This rule applies to access only for type of resource

Allowed values:topicgrouptransactional_idcluster

actionstringrequired

How to handle the request if the rule matches

Allowed values:allowdeny

operationsarray[object]required

An Event Gateway operation to match against in an ACL rule.

Show Child Parameters
resource_namesOne Of
required

If any of these entries match, the resource name matches for this rule. A maximum of 50 entries are allowed.

EventGatewayACLResourceNamearray[object]

An Event Gateway resource name to match against in an ACL rule.

<= 50 items

Example:{"match":"orders-*"}{"match":"payments-*"}

Show Child Parameters
Example