After you create a Message Queue for MQTT subscription instance, you can change the billing method of the instance to pay-as-you-go. This feature helps you reclaim some costs and use resources of the Message Queue for MQTT instance as needed. This topic shows you how to change the billing method of a Message Queue for MQTT instance from subscription to pay-as-you-go.

Prerequisites

  • The Message Queue for MQTT instance whose billing method you want to change is in the In Service state.
  • The instance is not in the Temporary Upgrade state.
  • The billing method of the instance is subscription.
  • Your account balance is sufficient. This prevents overdue payments from affecting the running of your instance.

Billing

If you change the billing method from subscription to pay-as-you-go, you are charged 15% of the current balance of your instance. Vouchers and coupons are not counted into the balance. The total fee is calculated in the following formula:

Fee = (Number of remaining days/Total number of days) × Amount of the order × 15%

After you change the billing method of the instance from subscription to pay-as-you-go, a refund (if applicable) is returned to your original payment account. The refund is calculated in the following formula:

Refund = (Number of remaining days/Total number of days) × Amount of the order × (1 - 15%)

Notes

  • The billing method change does not affect the running of an instance.
  • The billing method cannot be changed from pay-as-you-go to subscription. Therefore, the change from subscription to pay-as-you-go is irreversible. Proceed with caution.

Procedure

  1. Log on to the Message Queue for MQTT console.
  2. In the left-side navigation pane, click Instances.
  3. In the top navigation bar, select a region.
  4. Find the instance that you want to view in the instance list. Click the instance name or click Details in the Actions column to go to the Instance Details page.
  5. In the Overview section of the Instance Details page, click Change to Pay-as-you-go.
  6. In the message that appears, read the content. After you confirm the content, click OK.
  7. On the Switch to Pay-As-You-Go page, select Message Queue for MQTT (Pay-as-you-go) Terms of Service, and click Buy Now. Complete the payment as prompted.

Result

Return to the Message Queue for MQTT console. On the Instances page, click the instance whose billing method is changed. On the Instance Details page, click the Basic Information tab. On the tab that appears, you can find that the value of Billing Method has changed to Pay-as-you-go.