Skip to content

[FEATURE] Return an empty response for getMappings API when there are no aliases applied #709

Closed
@amsiglan

Description

@amsiglan

Is your feature request related to a problem?
When no alias mappings are applied for an index, the GET mappingsView API throws an exception
/_plugins/_security_analytics/mappings?indexName=c*
Response:
{"ok":false,"error":"[security_analytics_exception] No applied aliases found"}

What solution would you like?
Return an empty result instead since it is not an actionable event for the user.

What alternatives have you considered?
N/A

Do you have any additional context?
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions