Create a Deka Guard policy
Creates a Deka Guard policy for a project namespace.
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
egress_denybooleanOptional
endpoint_selectorstringRequired
ingress_denybooleanOptional
namestring · min: 5 · max: 50Required
namespacestringRequired
project_idstringRequired
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200dataanyOptional
messagestringOptionalExample:
Success400
Invalid request
application/json
post/core/deka-guard
POST /core/deka-guard HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 343
{
"egress": [
{
"exceptions": [
"text"
],
"ports": [
{
"port": "text",
"protocol": "text"
}
],
"selector": "text",
"type": "cidr"
}
],
"egress_deny": true,
"endpoint_selector": "text",
"ingress": [
{
"exceptions": [
"text"
],
"ports": [
{
"port": "text",
"protocol": "text"
}
],
"selector": "text",
"type": "cidr"
}
],
"ingress_deny": true,
"name": "text",
"namespace": "text",
"project_id": "text"
}{
"code": 200,
"data": null,
"message": "Success"
}Last updated