In OSA 7 in CCPv2 creation of a resource fails with the following output in UI:
Creation of resource with type 'http://vps.com/servers/hd/1.0' is not allowed. Make sure that corresponding Resource is included into Subscription and does not exceed its limit
This is a new feature of OSA 7. An application either has to be set to MSS (Multiple Subscription Services) mode or provide subscription ID in APS-Subscription-ID header. Default mode is AWS (Account Wide Subscription).
Please refer to documentation on subscription specification.
MSS mode can be set in APP-META.xml as described here.
In AWS mode subscriptionID should be specified. It can be retrieved and specified the following way:
aps.context.subscriptionId = aps.context.vars.context.aps.subscription;