Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/Help with "Get Compliance Statistics Breakdown V2 - GET" #744

Open
Higashi-berg opened this issue Sep 19, 2024 · 0 comments
Open

Issue/Help with "Get Compliance Statistics Breakdown V2 - GET" #744

Higashi-berg opened this issue Sep 19, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Higashi-berg
Copy link

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):

Postman-compliance-v2-not-working
If you add time parameters as in v1, you have an 200 ok request:
Postman-compliance-v2-time-parameters

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/*

@Higashi-berg Higashi-berg added the documentation Improvements or additions to documentation label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant