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

Removing existing GLOBAL quotas in Api Manager #442

Open
lturricchia opened this issue Nov 20, 2023 · 2 comments
Open

Removing existing GLOBAL quotas in Api Manager #442

lturricchia opened this issue Nov 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lturricchia
Copy link

lturricchia commented Nov 20, 2023

APIM-CLI version

1.14.3-snapshot

API-Management version

7.7.0

Bug description

Hello @rathnapandi about removing existing quotas from Api Manager, we see Apim-cli 1.14.3-snapshot is working with APPLICATION quotas and API quotas (as in #434 #438)
but we see the problem still occurs in removing GLOBAL quotas for ALL API, i.e. the 2 cases: System quotas on ALL API and ApplicationDefault quotas on ALL API.

Below the examples in case systemQuota (we found the same behaviour with applicationQuota).

In this case, the json config file input for Apim-cli to add quotas is like:

{
  "quotas": {
    "systemQuota": {
      "api": "*",
      "method": "*",
      "type": "throttle",
      "config": {
        "messages": "250",
        "period": "second",
        "per": "1"
      }
    }
  }
}

but, since a quota is written, we found that none of the following json works with Apim-cli in removing it (tried with develop at Commits on Sep 27, 2023)


i) {
  "quotas": {
    "systemQuota": {}
  }
}

ii) {
  "quotas": {
    "systemQuota": null
  }
} 

iii) {
  "quotas": {}
}
iv) {
  "quotas": null
} 
v) {}
vi) no file

Could you please take a look at it? Are we missing something?

Steps to reproduce

No response

Relevant log output

No response

@rathnapandi
Copy link
Member

Hi @lturricchia
Deleting all global quotas and remote hosts are not handled. will let you know once I make some progress.

@lturricchia
Copy link
Author

thank you, let us know about deleting global quotas
meanwhile, are you about to release the next version 1.14.3 (with fix for deleting api and application quotas)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants