Use curl Commands to Retrieve Panorama Managed API Commands
If you prefer to use CLI to retrieve API command results, you can use APIs in
conjunction with
the API you use to retrieve
public and infrastructure IP addresses for
Prisma Access. To do so, use the
following command:
Configuration Commands:
curl -k -X GET
"https://<panorama-ip-address>/api/?key=<api-key>&type=config&cmd=<api-parameters></api-parameters>
Operational Commands:
curl -k -X GET
"https://<panorama-ip-address>/api/?key=<api-key>&type=op&cmd=<api-parameters></api-parameters>
Where:
<panorama-ip-address> is the IP address of the Panorama
that manages Prisma Access.
<api-key> is
the API key retrieve ip addresses for
Prisma Access ().
<api-parameters> and
</api-parameters> are the API parameters you use
to retrieve the requested information from the API.
If you have a multi-tenant deployment, you add the name of the tenant for which you
want to retrieve API information into the API.
For example, given a Prisma Access deployment that has the following parameters:
If you wanted to retrieve the number of active mobile users for that tenant, you
would enter the following curl command:
curl -k -X GET
"https://1.2.3.4/api/?key=12345abcde&type=op&cmd=<request><plugins><cloud_services><prisma-access><multi-tenant><tenant-name><entry%20name='tenant-1'></entry></tenant-name><remote-active-users-count/></multi-tenant></prisma-access></cloud_services></plugins></request>"