akamai / akamai-apis

Apache License 2.0
2 stars 5 forks source link

SiteShield API Get-SiteShiledByID response improvment #7

Closed YuriiDats closed 4 months ago

YuriiDats commented 4 months ago

Issue type

Which API?

SiteShield API Get-SiteShieldByID

Issue

Based on the openapi schema, when i make a request, in case of 403 or 404 response status i can get status code inside response, but when i have response 200, i just have fetch info from API without status code inside response.

Context

I m trying to implement GitHub action to automatically update siteshield cidrs range for my project, but when there is no proposedCidrs it is failing, while i try to cover this edge case i want to check that when i make API call i got 200 status and empty proposedCidrs so i can be aware of that and my action will not fail. But i with Get-SiteShieldByID i cannot cover this 200 response status, as in response body no status field, as in 404 and 403

Bugs: Steps to reproduce

Possible solution

Update openapi schema, and Invoke-AkamaiRestMethod to get this info in 200 response.

Additional information