akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Feature: Adding support for specific network versions import and update-local #94

Open rschneider-chwy opened 5 months ago

rschneider-chwy commented 5 months ago

Hello from your friends at Chewy! 🐢🐱

Fixes https://github.com/akamai/cli-property-manager/issues/33 and fixes #73

Taking a crack at adding support for specific versions for update-local and import. PAPI V1 supports specifying the network with calling GET latest version, so I added a check to pass the --network when present:

`/papi/v1/properties/${propertyId}/versions/latest?activatedOn=${network}`

If the --propver is selected it will grab the specific version instead:

`/papi/v1/properties/${propertyId}/versions/${versionId}`

I tested it locally and it looks to be working! Let me know if there's anything more I need to provide.

TomHart commented 4 months ago

Any update on if this will be merged? This would be useful for something I'm working on