Delete a RetrieveMemory log policy
DELETE /v1/admin/retrieve-memory-log-policies/{id}: Idempotently tombstones an immutable RetrieveMemory log policy.
Idempotently tombstones an immutable RetrieveMemory log policy.
ApiKeyAuthx-api-key<token>id*stringThe UUID of the policy to delete
GoodMem-Timeout-Ms?integerOptional waiting budget in milliseconds, measured from REST servlet ingress and shared across all internal gRPC calls. Supply one decimal integer from 1 to 86400000. Omission adds no deadline. Existing shorter deadlines still apply. Expiry returns HTTP 504 before streaming starts; after streaming starts, no successful completion event is sent. Use SSE or opt into GoodMem-Stream-Terminal for an explicit terminal outcome. Retrieval work is cooperatively cancelled. An accepted mutation may still commit after timeout or disconnect; a failed response does not imply rollback.
int641 <= value <= 86400000Optional tombstone reason.
application/json- body
Optional REST body for tombstoning a RetrieveMemory log policy.
reason?|Optional tombstone reason.
"Replaced by narrower policy."Policy tombstoned
application/json- response
REST representation of an immutable RetrieveMemory log policy.
policyId*stringPolicy UUID.
uuid"40000000-0000-4000-8000-000000000301"displayName*stringHuman-readable policy name.
"Security audit policy"description?|Optional operator description.
"Capture security-sensitive retrievals."condition*Policy match condition.
activeFrom*integerInclusive activation time in milliseconds since epoch.
int642219443200000activeUntil?|Exclusive deactivation time in milliseconds since epoch.
int642219529600000labels*Operator labels for listing and administration.
properties <= 64{ "owner": "security", "env": "prod"}currentlyActive*booleanWhether the policy is active at response evaluation time.
truedeletedAt?|Tombstone time in milliseconds since epoch.
int642219533200000deletedById?|User UUID that tombstoned the policy.
uuid"10000000-0000-4000-8000-000000000301"deleteReason?|Optional tombstone reason.
"Replaced by narrower policy."createdAt*integerCreation time in milliseconds since epoch.
int642219443200000updatedAt*integerUpdate time in milliseconds since epoch.
int642219443200000createdById*stringCreator user UUID.
uuid"10000000-0000-4000-8000-000000000301"updatedById*stringLast-updater user UUID.
uuid"10000000-0000-4000-8000-000000000301"curl -X DELETE 'https://your-goodmem-server.example.com/v1/admin/retrieve-memory-log-policies/40000000-0000-4000-8000-000000000301' \ -H 'GoodMem-Timeout-Ms: 30000' \ -H 'Content-Type: application/json' \ -d '{}'{ "policyId": "40000000-0000-4000-8000-000000000301", "displayName": "Security audit policy", "description": "Capture security-sensitive retrievals.", "condition": { "matchAll": false, "anyOf": [ { "spaceIds": [ "30000000-0000-4000-8000-000000000301" ], "spaceLabelSelectors": { "env": "prod" } } ] }, "activeFrom": 2219443200000, "activeUntil": 2219529600000, "labels": { "owner": "security", "env": "prod" }, "currentlyActive": true, "deletedAt": 2219533200000, "deletedById": "10000000-0000-4000-8000-000000000301", "deleteReason": "Replaced by narrower policy.", "createdAt": 2219443200000, "updatedAt": 2219443200000, "createdById": "10000000-0000-4000-8000-000000000301", "updatedById": "10000000-0000-4000-8000-000000000301"}Create a RetrieveMemory log policy
POST /v1/admin/retrieve-memory-log-policies: Creates an immutable administrative policy that can automatically enable durable RetrieveMemory request logging.
Request the server to enter drain mode
POST /v1/admin:drain: Initiates drain mode and optionally waits for the server to quiesce.