Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Filter do not work for filter_by subnet #36

Open
joda666 opened this issue Jun 24, 2023 · 0 comments
Open

API: Filter do not work for filter_by subnet #36

joda666 opened this issue Jun 24, 2023 · 0 comments

Comments

@joda666
Copy link

joda666 commented Jun 24, 2023

ansible@server4:> curl --header 'token: FtUVhJ0XO9lFbgOYTzOaVieLMi1nor_d' -X GET "https://host/phpipam/api/api/subnets/?filter_value=10.15.0.0&filter_by=subnet" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 81 100 81 0 0 1796 0 --:--:-- --:--:-- --:--:-- 1800
{
"code": 404,
"success": false,
"message": "No results (filter applied)",
"time": 0.014
}
ansible@server4:
>

ansible@server4:> curl --header 'token: FtUVhJ0XO9lFbgOYTzOaVieLMi1nor_d' -X GET "https://host/phpipam/api/api/subnets/?filter_value=24&filter_by=id" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 871 100 871 0 0 18686 0 --:--:-- --:--:-- --:--:-- 18934
{
"code": 200,
"success": true,
"data": [
{
"id": "24",
"subnet": "10.15.0.0",
"mask": "19",
"sectionId": "3",
"description": "Virtuelle Maschinen",
"linked_subnet": null,
"firewallAddressObject": null,
"vrfId": null,
"masterSubnetId": "7",
"allowRequests": "0",
"vlanId": null,
"showName": "0",
"device": null,
"permissions": [
{
"group_id": 2,
"permission": "2",
"name": "Operators",
"desc": "default Operator group",
"members": false
},
{
"group_id": 3,
"permission": "1",
"name": "Guests",
"desc": "default Guest group (viewers)",
"members": false
}
],
"pingSubnet": "0",
"discoverSubnet": "0",
"resolveDNS": "0",
"DNSrecursive": "0",
"DNSrecords": "0",
"nameserverId": "0",
"scanAgent": "0",
"customer_id": null,
"isFolder": "0",
"isFull": "0",
"isPool": "0",
"tag": "2",
"threshold": "0",
"location": [],
"editDate": null,
"lastScan": null,
"lastDiscovery": null,
"links": [
{
"rel": "self",
"href": "/api/api/subnets/24/"
}
],
"custom_fields": null
}
],
"time": 0.015
}
ansible@server4:
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant