Skip to content

Setting multiple Quota for each api on application level results in quotas on same apis #567

@gillbouwen-Devo

Description

@gillbouwen-Devo

APIM-CLI version

1.14.10

API-Management version

7.7.0.20250530-1-BN0241-ubi9

Bug description

We are trying to set quotas on application level. Like shown in this file:
application-config.yaml
`---
name: 'hoa'
organization: $OrganizationName
description: $description
state: 'approved'
enabled: true
appQuota:
system: false
restrictions:

  • apiPath: "/apim/kvk/vestigingsprofielen/v1"
    method: "*"
    type: "throttle"
    config:
    period: "second"
    per: "1"
    messages: "5"
  • apiPath: "/apim/kvk/zoeken/v2"
    method: "*"
    type: "throttle"
    config:
    period: "second"
    per: "1"
    messages: "5"
  • apiPath: "/apim/kvk/basisprofielen/v1"
    method: "*"
    type: "throttle"
    config:
    period: "second"
    per: "1"
    messages: "5"
    apis:
  • apiName: 'kvk_basisprofielen_v1_int_to_ext'
    apiVersion: '1.3'
  • apiName: 'kvk_vestigingsprofielen_v1_int_to_ext'
    apiVersion: '1.3'
  • apiName: 'kvk_zoeken_v2_int_to_ext'
    apiVersion: '2.0'
  • apiName: 'Dirkzwager'
    apiVersion: '1.0'
  • apiName: 'SAB'
    apiVersion: 'v1'
    permissions: []
    appScopes: []
    `

But when we check the UI or do an export we get 3 quotas on the same apiName "kvk_vestigingsprofielen_v1_int_to_ext". Like in this picture:

Image

Steps to reproduce

apim.sh app import -username $APIMGR_USERNAME -password $APIMGR_PASSWORD -apimanagerUrl $APIMGR_URL -s $ENVIRONMENT -c $dir/application-config.yaml -returnCodeMapping 56:0

apim app get -username $APIMGR_USERNAME -password $APIMGR_PASSWORD -apimanagerUrl $APIMGR_URL -s ont -name "hoa" -t . -o yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions