In the platform, there are various resource components participating in deployment of application services and products based on them and then provisioning of the application resources for customers.
In this document:
APS application resources are split into two groups:
APS types are resource schemas shipped inside the application APS package and used for instantiating APS resources, no matter shared or individual.
In the provider environment, the following resource related components are used to offer services to customers:
When a customer subscribes to application services contained in a service template, the system creates a subscription instantiated from the selected service template with all its resources and limits. The customer subscription will present the following resource components:
Note
A limit on a reference resource in a subscription defines the limit on the number of individual resources based on the configuration offered by the reference resource.
Limits on individual resources define the limits on the total number or amount of these resources.
The system will not allow the customer to create a resource based on a reference resource if one of the above limits is reached in the subscription.
APS resources are application specific. They represent application services provided through APS applications. They may have any properties and relations with other resources provided either by the same or different application.
Every resource has its owner. In the account model considered here, the resource owner can be either the provider or a customer.
Consider the following set of examples of application resource models, starting with the simplest one.
Usually, cloud applications are multitenant, that is for each subscription they create a tenant that may log in the cloud system and use application services remotely. On the customer side, it necessary to have a resource that represents the tenant as well as the subscription that contains this resource. You may assign any name to this resource, for example, tenant, or management context, or subscription service.
The integration APS application declares two APS types to create APS resources:
To provision such an application service, the provider needs to create the following two resource types and then add them to a service template.
A subscription created from the service template will contain the respective resources.
An application can provide various functionalities and resource usage to its tenants. For this purpose, the provider can offer various configurations for tenants. In the following example, the tenant/config APS type allows creating a number of reference resources used to parameterize subscription services.
When purchasing a subscription, customers choose one of tenant/config offers. Their subscription service will be linked with the chosen offer.
To provision such an application service, the provider needs to create the following resource types and then add them to a service template.
A subscription created from the service template will contain the respective resources.
An application can provide various services, for example, mailboxes, calendar, and instant messaging. In the customer context, they look like subservices linked with the main subscription service. In the following example, the subscription may have a limited number of serviceA resources.
In this case, you may think of the subscription service as of the management context used by customers to manage subservices. the services collection links the management context with all serviceA resources provisioned in the customer context.
To provision such an application service, the provider needs to create the following resource types and then add them to a service template.
A subscription created from the service template will contain the respective resources.
An application can enable the provider to parameterize subservices by offering various configurations. In the following example, the provider uses the service-A/config APS type to create various reference resources to offer various subservice configurations to customers.
When provisioning a service-A resource, a customer selects a service-A/config reference resource to assign its parameters to the new resource. The new service-A resource is linked with the selected service-A/config reference resource.
To provision such an application service, the provider needs to create the following resource types and then add them to a service template.
A subscription created from the service template will contain the respective resources.
Once subscribed to application services, customers and their service users consume application resources, such as storage, network traffic, CPU power, and memory space. To count resource consumption, the subscription service must be able to activate counters as the resource structures.
The hosting platform periodically wakes the APS controller to sync counters. Once some counters are active
in a subscription, the APS controller will call the retrieve
method of the subscription service to get the
newest counters values and to update the respective objects in the database.
To provision the application service, the provider needs to create the following resource types and then add them to a service template.
A subscription created from the service template will contain the respective resources.
The provider can view and update the periodical process responsible for initiating resource usage collection in Operations Automation platform.
Note
The above operations are very helpful when you are testing an application, usually to minimize the period of syncing and to run the task immediately.