All Products
Search
Document Center

Resource Orchestration Service:Billing overview

Last Updated:Apr 08, 2024

You can view the billing details of resources in the Resource Orchestration Service (ROS) console or by calling a specific ROS API operation. This topic describes the billing of ROS.

Billable items and billing methods

Billable item

Description

Billing method

ROS

None

None

Alibaba Cloud resources that you want to create in a stack, such as Elastic Compute Service (ECS) and ApsaraDB RDS resources

You are charged based on the billing methods of the resources.

  • If you specify an ECS instance of the virtual private cloud (VPC) type in a ROS template, you are charged for the ECS instance. For more information, see Billing overview.

  • If you specify an ApsaraDB RDS instance of the VPC type in a ROS template, you are charged for the ApsaraDB RDS instance. For more information, see Billable items.

Billing example

This section provides an example on how to view the billing details of resources when you create the resources in ROS. In this example, the billing details of a VPC and a subscription elastic IP address (EIP) are queried.

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 view the billing details:

  • ROS console

    1. Log on to the ROS console.

    2. In the left-side navigation pane, click Stacks.

    3. In the top navigation bar, select the region where you want to create a stack from the region drop-down list. For example, you can select China (Hangzhou).

    4. On the Stacks page, click Create Stack and select Use ROS from the drop-down list.

    5. In the Select Template step, select Select an Existing Template in the Specify Template section, set Template Import Method to Enter Template Content, enter the preceding template content in the Template Content code editor, and then click Next.

    6. In the lower-right corner of the Configure Parameters step, click Cost Details.

      In the Cost Details dialog box, view the billing details of the resources that you want to create in the stack.

  • ROS API operation

    1. Log on to OpenAPI Explorer of the earlier version or the new version.

    2. Search for and click Resource Orchestration Service.

      Click the API Overview tab. On this tab, find the GetTemplateEstimateCost operation and click Debug in the Actions column.

    3. Specify the RegionId parameter, configure parameters in the Parameters section, and then enter the preceding template content in the TemplateBody field.

    4. Click Initiate Call.

      On the Response tab, check the value of the TotalCostAmount parameter to view the billing details of the resources that are specified in the template.