Get a RetrieveMemory log policy
GET /v1/admin/retrieve-memory-log-policies/{id}: Retrieves a live RetrieveMemory log policy by UUID, or a tombstoned policy when includeDeleted is true.
Retrieves a live RetrieveMemory log policy by UUID, or a tombstoned policy when includeDeleted is true.
ApiKeyAuthx-api-key<token>id*stringThe UUID of the policy to retrieve
includeDeleted?booleanWhether to include tombstoned policies. Also accepts include_deleted.
falseGoodMem-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 <= 86400000Policy found
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 GET 'https://your-goodmem-server.example.com/v1/admin/retrieve-memory-log-policies/40000000-0000-4000-8000-000000000301?includeDeleted=true' \ -H 'GoodMem-Timeout-Ms: 30000'{ "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"}Request the server to enter drain mode
POST /v1/admin:drain: Initiates drain mode and optionally waits for the server to quiesce.
List RetrieveMemory log policies
GET /v1/admin/retrieve-memory-log-policies: Lists RetrieveMemory log policies with optional tombstone, active-time, name, label, sort, and pagination filters.