Symptoms:
- You have groups setup with members as virtual machines.
- When you click on View Members of the group it shows the virtual machine and IP address.
- When you want to query what groups a particular IP address is a member of, you use the following API:
https://<manager-ip>/policy/api/v1/infra/ip-address-group-associations?ip_address=<ip-address>&page_size=0
- This API returns the following results:
{
"results": [
{
"target_id": "/infra/domains/default/groups/test-vm",
"target_display_name": "test-vm",
"target_type": "DOMAIN_GROUP",
"is_valid": true,
"path": "/infra/domains/default/groups/test-vm"
}
],
"result_count": 1,
"sort_by": "target_display_name",
"sort_ascending": true
}
- When using the the page_size 0, you expect to only see the result_count and no results.