Delete key for all apis


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/HIt9kNgerS4 Import Date: 2016-01-19 21:16:57 +0000.
Sender:Donal Byrne.
Date:Monday, 29 June 2015 09:57:20 UTC+1.

Is it possible to delete a key on all apis?

Trying something like

DELETE /tyk/keys/sample-key-b3da0730-1d5a-11e4-8c21-0800200c9a66

Gives API not found error.


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 29 June 2015 10:18:49 UTC+1.

Hi,
The standard delete call (by targeting an API), will delete a key across all APIs unless you are using master keys, the reason an API must be put in the URI is to ensure the right backend is used. By default, in an unmodified installation, the default will be redis. So that key will be deleted using the standard call.
Per-API keys are handled by adding access rights rules to the key data itself.
Hope that helps :slight_smile:
Thanks,
Martin


#3

Imported Google Group message.
Sender:.
Date:Monday, 29 June 2015 10:18:49 UTC+1.

Hi,
The standard delete call (by targeting an API), will delete a key across all APIs unless you are using master keys, the reason an API must be put in the URI is to ensure the right backend is used. By default, in an unmodified installation, the default will be redis. So that key will be deleted using the standard call.
Per-API keys are handled by adding access rights rules to the key data itself.
Hope that helps :slight_smile:
Thanks,
Martin


#4

Imported Google Group message.
Sender:Donal Byrne.
Date:Monday, 29 June 2015 10:27:08 UTC+1.

Hi Martin,

Ok,I get the idea now, should have tried that first! Thanks for the info.

Donal

  • show quoted text -