Describe SecObserve Resource
secobserve_describe_resourceRead a resource's live OpenAPI schema to see available filters, fields, and enums before creating, updating, or guessing filter names.
Instructions
Read the deployed instance's OpenAPI schema for one resource: filters, fields, enums.
This is the authoritative answer to "what can I filter on" and "what does the body need", because it comes from /api/oa3/schema/ on the running backend rather than from a hand-written list. Call it before create/update, and before guessing a filter name.
Args: resource (str): Resource name from secobserve_list_resources. include_detail_path (bool): Also describe /{id}/ (default True).
Returns: str: JSON with the schema: { "resource": str, "path": str, "operations": { "": { "GET": {"parameters": [{"name": str, "in": str, "type": str, "enum": [...]}], "response_fields": [str]}, "POST": {"body_fields": {"": {"type": str, "required": bool, "enum": [...]}}} }, "": {...} }, "actions": [{"name": str, "method": str, "detail": bool, "summary": str}] }
Examples: - Use when: "which statuses can I filter observations by?" -> resource="observations" - Use when: before secobserve_create on 'branches', to see required fields. - Don't use when: you only need the list of resources (use secobserve_list_resources).
Error Handling: Returns an error naming the valid resources when 'resource' is unknown. If the instance does not serve the schema, says so and points at secobserve_list_resources for the static catalogue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | Resource name from secobserve_list_resources (e.g. 'observations'). | |
| include_detail_path | No | Also describe the /{id}/ path (the fields returned by secobserve_get and accepted by update). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |