This topic describes the billable items of Resource Orchestration Service (ROS) and billing methods of these items.

Billable items and billing methods

Billable item Description Billing method
ROS None. None.
Alibaba Cloud resources such as Elastic Compute Service and ApsaraDB RDS that you want to create in the stack You are charged based on the billing methods that are used for the resources.
  • If you specify an ECS instance of the Virtual Private Cloud (VPC) type in an ROS template, you are charged for the ECS instance. For more information, see Overview.
  • If you specify an ApsaraDB RDS instance of the VPC type in an ROS template, you are charged for the ApsaraDB RDS instance.

Example

The following section describes how to query the billing details of resources when you specify the resources in a template. In this section, a VPC and a subscription elastic IP address (EIP) are used.

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "VPC": {
      "Type": "ALIYUN::ECS::VPC",
      "Properties": {
        "CidrBlock": "192.168.XX.XX/16",
        "VpcName": {
          "Fn::Join": [
            "-",
            [
              "StackId",
              {
                "Ref": "ALIYUN::StackId"
              }
            ]
          ]
        }
      }
    },
    "EIP": {
      "Type": "ALIYUN::VPC::EIP",
      "Properties": {
        "InstanceChargeType": "Prepaid",
        "PricingCycle": "Month",
        "Period": 1,
        "DeletionProtection": false,
        "AutoPay": false,
        "InternetChargeType": "PayByTraffic",
        "Bandwidth": 5
      }
    }
  }
}
You can use one of the following methods to query the billing details:
  • ROS console
    1. Log on to the ROS console.
    2. In the left-side navigation pane, click Stacks.
    3. In the upper-left corner of the page, select the region in which you want to create a stack from the drop-down list.
    4. On the Stacks page, click Create Stack and select Use New Resources (Standard) from the drop-down list.
    5. Click Select an Existing Template, enter the preceding template, and then click Next.
    6. In the lower-right corner of the page, click Cost Details.
      In the Cost Details dialog box, you can view the billing details of the resources that you want to use to create the stack. 001
  • ROS API operation
    1. Log on to OpenAPI Explorer.
    2. Find Resource Orchestration Service and click the GetTemplateEstimateCost API operation.
    3. Select a region from the RegionId drop-down list and enter the preceding template in the TemplateBody field.
    4. Click Submit Request.
      On the Debugging Result tab, you can view the billing details of the resources that are specified in the template in the value of the TotalCostAmount parameter. 002