Integration with the License Manager API
If you created a subscription within one of these service plans:
Subscription: Set up integration with the License Manager API for your subscription to work properly.PAYG: User will automatically switch to this service plan as soon as they unlink the subscription from a resource or as soon as the subscription expires. You can set up integration with the License Manager API if required.
To set up integration with the License Manager SaaS API, see this guide.
-
Get the subscription template ID (
license_template_id).You can find the subscription template ID in the Cloud Marketplace partner dashboard. Use the ID in the product code to manage the subscription.
-
Implement the following steps in your product code:
-
Regularly checking if your subscription is active.
You can get the up-to-date subscription information using the list REST API method for the Instance resource or the InstanceService/List gRPC API call.
Note
Please note that the user can unlink a resource from the subscription and link another one to it. Make sure your code can handle cases like this correctly.
-
Configuring business logic for subscription processing: consumption records, limitations related to time, number of users, etc.
-
-
Get the subscription template ID (
license_template_id).You can find the subscription template ID in the Cloud Marketplace partner dashboard. Use the ID in the product code to manage the subscription.
-
Implement the following steps in your product code:
-
Getting the ID of application installation to the Kubernetes cluster and linking it to the subscription. Sample code
. -
Regularly checking if your subscription is active.
You can get the up-to-date subscription information using the list REST API method for the Instance resource or the InstanceService/List gRPC API call.
Note
Please note that the user can unlink a resource from the subscription and link another one to it. Make sure your code can handle cases like this correctly.
-
Configuring business logic for subscription processing: consumption records, limitations related to time, number of users, etc.
-
-
Get the subscription template ID (
license_template_id).You can find the subscription template ID in the Cloud Marketplace partner dashboard. Use the ID in the product code to manage the subscription.
-
Implement the following steps in your product code:
-
Regularly checking if your subscription is active.
You can get the up-to-date subscription information using the list REST API method for the Instance resource or the InstanceService/List gRPC API call.
Note
Please note that the user can unlink a resource from the subscription and link another one to it. Make sure your code can handle cases like this correctly.
-
Configuring business logic for subscription processing: consumption records, limitations related to time, number of users, etc.
-
Integration testing
For code examples and a test server you can use to check the License Manager API integration, see this GitHub repository