I am in trouble with using ObjectFilter on softlayer API.
I'm testing Softlayer API to retrieve host IQN, username and password of block storage.
I have tried with the command below, but objectFilter
is not working at all.
curl -g 'https://username:api_key@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/storage_ID/getObject?objectMask=mask[id,username,allowedIpAddresses[ipAddress,allowedHost[name,credential[username,password]]]]'
It returns 3 network objects including IQN, username , password as I expected.
So I want to make filter by "ip address" by below api command but not worked. (It seems objectFilter is ignoring)
curl -g 'https://username:api_key@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/storage_ID/getObject?objectMask=mask[id,username,allowedIpAddresses[ipAddress,allowedHost[name,credential[username,password]]]]&objectFilter={"object":{"allowedIpAddresses":{"ipAddress":{"operation":"1.2.3.4"}}}}'
Is this something wrong with my API usage?