Bulk APIs may be needed for some operations to limit the number of API requests needed
If you have looked up the Policy Contents first to obtain the object IDs, the address or service object contents can be requested using the following APIs to reduce the number of queries needed.
API documentation (24.1) https://www.juniper.net/documentation/en_US/junos-space24.1/api-ref/security-director-rest-api-24.1r1.pdf
Service Objects
POST https://SPACE-VIP/api/juniper/sd/service-management/v5/get_services_by_uuids Content-Type:application/json Accept:application/json Payload: ======= { "input": { "object_uuids": ["196608", "196609" , "196610"], "flatten": false } }
Address Objects
===
https://SPACE_VIP/api/juniper/sd/address-management/v5/get_address_by_uuids Content-Type:application/json Accept:application/json { "input": { "object_uuids": ["2785282", "2785281" , "2785285"], "flatten": false } }