{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Monetization /
This question was closed Oct 29, 2016 at 05:45 PM by akhimich for the following reason: The question is answered, right answer was accepted
avatar image
1
Question by Jarosław Wojtalik · Oct 05, 2016 at 01:33 PM · 202 Views management apimonetizedeleteapikeys

How can I delete API key when Monetization is enabled?

Hi,

I am trying to migrate some already existing API keys to Apigee Edge. I have been using Management API described here: http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper_email_or_id%7D/apps/%7Bapp_name%7D/keys/create to create new API key and it works correctly. (later I just need to assign correct product to new API key and it works).

However I encountered some problems when trying to delete API key generated by Edge when application was created using API described: http://docs.apigee.com/management/apis/delete/organizations/%7Borg_name%7D/developers/%7Bdeveloper_email_or_id%7D/apps/%7Bapp_name%7D/keys/%7Bconsumer_key%7D.

I received an error:

{
  "code": "mint.resourceDoesNotExist",
  "message": "Product with id [null] does not exist",
  "contexts": []
}

It seems like this API key is somehow connected to Monetization features, products connected with automatically generated API key can be seen also using Monetization API

http://{edge_url}/v1/mint/organizations/{org_name}/developers/{developer}/applications/{application_id}

Even if I leave automatically generated API key without any products connected to application (along with the one I created), then any newly added to this application product will be assigned to generated API key which I do not want.

Is there some possibility that I can remove this not needed automatically generated API key?

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

3 Answers

  • Sort: 
avatar image
1
Best Answer

Answer by akhimich · Oct 10, 2016 at 12:33 PM

Sorry to tell you this is a bug, that has been fixed in OPDK 4.16.09.

  • As a workaround for now set expiration time for default key as today(Make it invalid).
  • Or change a status to 'revoked' http://docs.apigee.com/api/developer-app-keys

Thanks

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jarosław Wojtalik · Oct 10, 2016 at 01:14 PM 0
Link

Thank you very much for quick answer,

I will try to somehow get around using these workarounds.

Still it looks like the best solution would be to update Apigee to version 4.16.09, which I will discuss internally in my team.

Thanks

avatar image
0

Answer by akhimich · Oct 05, 2016 at 02:59 PM

What version of edge are you running?

Have you tried to remove API key via UI?

I see on UI it says "At least one product is required." when you create a Developer App. Have you tried to give some dummy product?

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jarosław Wojtalik · Oct 06, 2016 at 05:57 AM 0
Link

When I try to remove API key via UI, only product is removed from that API key and the key still exists inside application. Then if I add another product it will still use the first API key, which I do not want.

I added some product to the API key, which I created and it worked, but when I try to add another product via Edge UI, they are added to first generated API key. In that case if developer edits his application via devportal (for example by adding products), new products will use generated API key (but only the one I created will be visible on portal).

That is why I would like to remove this generated key completely. Also when I use Mint API call mentioned before I get a list of products assigned to only first generated API key, but I cannot change this display to use my created API key.

avatar image Jarosław Wojtalik · Oct 06, 2016 at 06:55 AM 0
Link

I forgot to mention this before, I am running Edge on premise. Version 4.16.05.02.

avatar image
0

Answer by akhimich · Oct 07, 2016 at 03:13 PM

Contacted you directly to get exact steps and setup.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

30 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Enable Monetization in a trial organization 2 Answers

How do you get the status of the delete monetization job 2 Answers

Determine API packages associated with companies 1 Answer

Hi, I would like to know if there is a possibility to enable monetization for testing purposes. 1 Answer

Using external billing system with monetization. 2 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Articles
  • Ideas
  • Badges