Article ID: 119216, created on Dec 19, 2013, last review on May 7, 2014

  • Applies to:
  • APS 2.x

Symptoms

Is it possible from Custom UI app to get the resource limit for the resource type in the subscription?

For instance now if customer is out of resources defined in subscription and tries to provision new one he gets 403 error.

I'd like to add some message saying that we're out of resources, for that I'd need to know how many customer is allowed to have.

Resolution

You can query controller to get subscription resources structure "SubscriptionResource" via the /resources operation:

GET /aps/2/resources/SUBSCRIPTION_RESOURCE_ID/resources

More on subscription schema can be found on the APS types in PA page.

70bf700e0cdb9d7211df2595ef7276ab 717db81efe94e616312b74fb03a5d474

Email subscription for changes to this article
Save as PDF