Skip to content

API: object query w/ "attrs":[] yields all attrs, not none #8167

@Al2Klimov

Description

@Al2Klimov
root@icinga-master-1:~# curl -sSku global:global https://127.0.0.1:5665/v1/objects/services -X GET -d '{"filter":"!service.last_check_result && !match(\"*agent*\",service.host.name)","pretty":1,"attrs":[]}' |more
{
    "results": [
        {
            "attrs": {
                "__name": "icinga-sat-orange-2!387",
                "acknowledgement": 0.0,
                "acknowledgement_expiry": 0.0,
                "acknowledgement_last_change": 0.0,
                "action_url": "",
                "active": true,
...

Metadata

Metadata

Assignees

Labels

area/apiREST APIbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions