How to use softlayer api object filter?

I read this article and some problems try to follow examples. The following is one example given in this article. The first parameter in the object filter is virtualGuests. This object filter can be used in the api https://api.softlayer.com/rest/v3/SoftLayer_Account/VirtualGuests .

object_filter = {
'virtualGuests': {
    'datacenter': {
        'name': {'operation': 'dal05'}
        }
    }
}

I want to use an object filter in other api methods, for example, SoftLayer_Account / getBlockDeviceTemplateGroups. My question is how to get / set the first parameter, e.g. virtualGuests? I tried several times, but could not.

+4
source share
1

: Service Datatype ?


Service Datatype

, SoftLayer_Account, :

, , , , getBlockDeviceTemplateGroups, , " " BlockDeviceTemplateGroups", , .

enter image description here


?

, : " " , " getBlockDeviceTemplateGroups", :

"BlockDeviceTemplateGroups"

char , :

"blockDeviceTemplateGroups"

, :

object_filter = {
'blockDeviceTemplateGroups': {
    'datacenter': {
        'name': {'operation': 'dal05'}
        }
    }
}

:

+1

Source: https://habr.com/ru/post/1663968/


All Articles