You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When more than 25 subscription policies exist in the admin portal, the publisher fails to list those subscription policies through the UI.
If we check the response from the network trace we can see the endpoint is designed to fetch subscription policies in a pagination manner. However, the UI is not designed accordingly.
Steps to Reproduce
Create multiple (More than 25) subscription policies using the following script. Make sure to replace the bearer token and the cookie values retrieved from the network trace.
#!/bin/bash
# Base URL and headers
url="https://localhost:9443/api/am/admin/v3/throttling/policies/subscription"
accept="application/json"
content_type="application/json"
cookie="AM_ACC_TOKEN_DEFAULT_P2=-84d6-bcc0ddf9bcd4; commonAuthId=77683048-f341-4f41-b34b-30888f1547fd; opbs=b724f6fc-b9a7-4cd5-ad08-12a25844284f"
authorization="Bearer 6a2f2986-75e9-3a75"
# Loop starts at 1 and continues indefinitely, increment the subscription count each iteration
count=1
while true; do
# JSON data with dynamic policyName
json_data="{\"policyName\":\"Subscription$count\",\"description\":\"\",\"defaultLimit\":{\"type\":\"REQUESTCOUNTLIMIT\",\"requestCount\":{\"requestCount\":\"1\",\"timeUnit\":\"min\",\"unitTime\":\"1\"}},\"subscriberCount\":0,\"rateLimitCount\":0,\"rateLimitTimeUnit\":\"sec\",\"billingPlan\":\"FREE\",\"stopOnQuotaReach\":true,\"customAttributes\":[],\"graphQLMaxComplexity\":0,\"graphQLMaxDepth\":0,\"monetization\":{\"monetizationPlan\":\"FIXEDRATE\",\"properties\":{\"fixedPrice\":\"\",\"pricePerRequest\":\"\",\"currencyType\":\"\",\"billingCycle\":\"week\"}},\"permissions\":null}"
# Execute curl command
curl -k -X POST "$url" \
-H "Accept: $accept" \
-H "Accept-Encoding: gzip, deflate, br, zst" \
-H "Content-Type: $content_type" \
-H "Cookie: $cookie" \
-H "Authorization: $authorization" \
-d "$json_data"
# Increment the subscription count for next request
((count++))
# Optional: delay between requests
sleep 1 # Sleep for 1 second; adjust as needed
done
Then log in to the publisher portal and open any API.
Click on Portal Configurations -> Subscriptions
Only 25 subscription policies will be listed in the UI (Except for the Unlimited policy).
Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
apim
The text was updated successfully, but these errors were encountered:
Description
When more than 25 subscription policies exist in the admin portal, the publisher fails to list those subscription policies through the UI.
If we check the response from the network trace we can see the endpoint is designed to fetch subscription policies in a pagination manner. However, the UI is not designed accordingly.
Steps to Reproduce
Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
apim
The text was updated successfully, but these errors were encountered: