PaloAltoNetworks / PaloAltoNetworks/pan.dev
Issue/Help with "Get Compliance Statistics Breakdown V2 - GET"
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 78
- Forks
- 88
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 18
Description
Documentation link
https://pan.dev/prisma-cloud/api/cspm/get-compliance-posture-for-standard-v-2/
Describe the problem
Requests to this endpoint /v2/compliance/posture without "time" parameters, as described in the documentation will fail (400 bad request):
If you add time parameters as in v1, you have an 200 ok request:
Support team through Customer Case confirmed that time parameters are required for the GET method.
Suggested fix
Add the correct requirements of "time fields" in the documentation page of /v2/posture/
timeType string REQUIRED
Possible values: [relative]
Time type
timeAmount string REQUIRED
Number of time units
timeUnit string REQUIRED
Possible values: [minute, hour, day, week, month, year]
timeUnit
Check if these "time fields" are required in other GET /v2/posture/*
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked documentation page for GET /v2/compliance/posture and compare its parameters with the working v1 request. Update the v2 documentation to mark timeType, timeAmount, and timeUnit as required, then check the other GET /v2/posture/* endpoints for the same omission.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100