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

create-cpcode not showing API response link #72

Open
javiergarza opened this issue Sep 17, 2021 · 2 comments
Open

create-cpcode not showing API response link #72

javiergarza opened this issue Sep 17, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@javiergarza
Copy link

Using the create-cpcode parameter to create a CP code should return the response from the API (cpcodeLink followed with the endpoint to use to get details about the new CP code), however, the CLI does not return any output.

I can see the output using the --verbose parameter, so it seems a very easy fix to just print the API response body to standard output.

Here is the API documentation for your convenience: https://developer.akamai.com/api/core_features/property_manager/v1.html#postcpcodes

Here is the command I am using:
akamai property-manager create-cpcode --contractId $CONTRACT_ID --groupId $GROUP_ID --productId $PRODUCT_ID --cpcodeName test-cp1

You can run the same command using HTTPie to see the desired output:
http --auth-type=edgegrid --auth default: --body POST :/papi/v1/cpcodes contractId==$CONTRACT_ID groupId==$GROUP_ID productId=$PRODUCT_ID cpcodeName=test-cp2

@lkowalsk-akamai-com lkowalsk-akamai-com added the enhancement New feature or request label May 27, 2022
@aetsai
Copy link

aetsai commented Nov 17, 2022

i don't know that we need to see the full api response, but could the output just return cp code id that was created?

@johanneseckerdal
Copy link

As a user of the property manager cli I only care about the cpcode id, and I really look forward to this being fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

4 participants