-
Notifications
You must be signed in to change notification settings - Fork 33
Description
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: