Describe SecObserve Resource
secobserve_describe_resourceNeed to know which filters or fields a SecObserve resource accepts? Retrieve the live OpenAPI schema to see parameters, required fields, and enums before create or update.
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: params (DescribeResourceInput): Validated input containing: - 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 |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |