Help & DocumentationCloud Virtual MachineOperation GuideInstancesNo Charges When Shut down for Pay-as-You-Go Instances

No Charges When Shut down for Pay-as-You-Go Instances

Last updated: 2019-02-13 10:52:51

PDF

When users enable the "No Charges When Shut down" feature, they will not need to pay for Pay-as-You-Go instances (CPUs, memory) that are in shutdown mode. However other resources bound with these instances, like cloud disks (system disk, data disk), public network bandwidth and images, are still charged. For more information, please see No Charges When Shut down for Pay-as-You-Go Instances Details.

Enabling on Console

  1. Log into CVM Console.
  2. Shut down one instance: Select an instance and click Shutdown on the top of the list. Alternatively, go to the operation pane on the right, select More > Instance Status > Shut down. Check No Charges when Shut down in the pop-up page. Does not support No Charges when Shut down will be displayed if the instance is not eligible for this feature.
  3. Shut down several instances: Select desired instances and click Shut down on the top of the list. Check No Charges when Shut down. Does not support No Charges when Shut down will be displayed if the instance is not eligible for this feature.

Enabling via Cloud API

To enable this feature via API, please add the following parameter while shutting down instance using StopInstances API. For details, please see Stop Instances.

Parameter Name Required Type Description
StoppedMode No String The "No Charges when Shut down" feature is only available for Pay-as-You-Go instances
Range:
KEEP_CHARGING:Keep charging when shut down
STOP_CHARGING:No charges when shut down
Default value:
KEEP_CHARGING