SubscriptionService

A resource based on this type is often called ‘context’ or ‘tenant’ service. In a subscription, there is only one resource of this type.

The Subscription Service schema: download

{
    "apsVersion": "2.0",
    "name": "subscriptionService",
    "id": "http://aps-standard.org/types/core/subscription/service/1.0",
    "implements": [
      "http://aps-standard.org/types/core/resource/1.0"
    ],
    "relations":
    {
        "account":
        {
            "type": "http://aps-standard.org/types/core/account/1.0",
            "required": true
        },
        "subscription":
        {
            "type": "http://aps-standard.org/types/core/subscription/1.0",
            "required": true
        }
    }
}

Usually, a resource based on this type is auto-provisioned, and then other resources linked with it are provisioned by subscriber’s requests. However, it depends on the application resource model.

A resource based on this type helps to find the respective subscription and account through its required links: subscription and account.