PaloAltoNetworks / prismacloud-cli

The Prisma Cloud CLI is a command line interface for Prisma Cloud by Palo Alto Networks.
MIT License
37 stars 30 forks source link

How do I enter the criteria for CWPP API query parameter, search? #88

Closed citrusoft closed 1 year ago

citrusoft commented 1 year ago

Documentation link

https://prisma.pan.dev/api/cloud/cwpp/registry#operation/get-registry-download

Describe the problem

accuracy? request for improvement

Given above documentation, how would / do I specify the search criteria for this API invocation? https://github.com/PaloAltoNetworks/prismacloud-cli/blob/39b60c85882919f1d12115c29f0b5123622e8f88/prismacloud/cli/cwpp/cmd_scans.py#L12

Suggested fix

Why don't someone create a tutorial / examples of the CWPP API query parameters? fields, search and offset + limit are good to know.

welcome-to-palo-alto-networks[bot] commented 1 year ago

:tada: Thanks for opening your first issue here! Welcome to the community!

steven-deboer commented 1 year ago

Hi @citrusoft,

--help is your friend here. If you use

pc --config local scans --help

You'll get information on those parameters.

image