Event Gateway Virtual Cluster Policies
Update Cluster Policy for Virtual Cluster
Changed onUpdates an existing cluster-level policy associated with the specified Event Gateway virtual cluster.
put/v1/event-gateways/{gatewayId}/virtual-clusters/{virtualClusterId}/cluster-policies/{policyId}
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v1/event-gateways/{gatewayId}/virtual-clusters/{virtualClusterId}/cluster-policies/{policyId}
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"labels": {
"env": "test"
},
"config": {
"rules": [
{
"resource_names": [
{
"match": "orders-*"
},
{
"match": "payments-*"
}
]
}
]
},
"condition": "context.auth.principal.name == \"this-user\""
}Response
Updated cluster-level policy object.
Example response
{
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- info
added
txn_offset_commitdiscriminator mapping keys to the///request property - info
added to the
///request propertyoneOflist
- info