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 |
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. |
|
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
Log on to the ROS console.
In the left-side navigation pane, click Stacks.
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).
On the Stacks page, click Create Stack and select Use ROS from the drop-down list.
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.
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
Log on to OpenAPI Explorer of the earlier version or the new version.
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.
Specify the
RegionId
parameter, configure parameters in theParameters
section, and then enter the preceding template content in theTemplateBody
field.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.