Updated on 2022-12-29 GMT+08:00

Managing Yearly/Monthly Resources

Service Object

Customers

Scenario Description

After purchasing yearly/monthly resources, a customer can perform the following operations on the self-built platform:

  • Query the expiration date of orders in the completed status, and renew the subscription to orders or resources about to expire.
  • Configure automatic renewal for purchased yearly/monthly resources.
  • Query the resources and original orders where the refund of an unsubscription or degrade order is from.

Related APIs

API

API Definition

Querying customer's yearly/monthly resources

https://support.huaweicloud.com/eu/api-oce/api_order_00021.html

Renewing subscription to yearly/monthly resources

https://support.huaweicloud.com/eu/api-oce/api_order_00018.html

Unsubscribing from yearly/monthly resources

https://support.huaweicloud.com/eu/api-oce/api_order_00019.html

Enabling automatic subscription renewal for yearly/monthly resources

https://support.huaweicloud.com/eu/api-oce/api_order_00022.html

Disabling automatic subscription renewal for yearly/monthly resources

https://support.huaweicloud.com/eu/api-oce/api_order_00023.html

Enabling/Canceling the change from yearly/monthly to pay-per-use upon expiration

https://support.huaweicloud.com/eu/api-oce/api_order_00024.html

API Invoking Process

Development Suggestions

  • The prerequisite for this scenario is that a customer has purchased yearly/monthly cloud service resources.
  • The resource IDs need to be obtained using the APIs for querying yearly/monthly resources because the management operations, such as subscribing to or unsubscribing from yearly/monthly resources, and enabling or disabling automatic subscription renewal, are performed based on resources.
  • If a primary resource has attached resources and subscription to the primary resource is renewed or canceled, the system will also renew or cancel the subscription to the attached resources. An example of primary and attached resources are as follows: ECS is the primary resource, and its attached resources are EVS, VPC, EIP, and bandwidth.
  • The fee of automatic subscription renewal for a product will be deducted at 03:00 seven days before the product is due. If the fee fails to deduct for the first time due to insufficient account balance, the system will attempt to deduct the fee at 03:00 every day before the reserved product resource expires until the fee is deducted successfully.