This topic describes the billable items of Resource Orchestration Service (ROS) and billing methods of the items.
Billable items and billing methods
Billable item | Description | Billing method |
---|---|---|
ROS | None. | None. |
Alibaba Cloud resources that you want to create in the stack, such as Elastic Compute Service (ECS) and ApsaraDB RDS resources | You are charged based on the billing methods for the resources. |
|
Billing example
The following section describes how to query the billing details of resources when you specify the resources in a template. In this example, 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
- Log on to the ROS console.
- In the left-side navigation pane, click Stacks.
- In the upper-left corner of the page that appears, select the region in which you want to create a stack from the drop-down list.
- On the Stacks page, click Create Stack and select Use New Resources (Standard) from the drop-down list.
- Click Select an Existing Template, enter the preceding template, and then click Next.
- 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 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.
- If you are in OpenAPI Explorer of the earlier version, search for and click the GetTemplateEstimateCost operation.
- If you are in OpenAPI Explorer of the new version, click the API Debugging tab. Search for and click the GetTemplateEstimateCost operation.
- Configure
RegionId
andParameters
, and enter the preceding template in theTemplateBody
field. - If you are in OpenAPI Explorer of the earlier version, click Submit Request. If you
are in OpenAPI Explorer of the new version, click Call Now.
On the Debugging Result tab in OpenAPI Explorer of the earlier version or on the Response tab in OpenAPI Explorer of the new version, you can view the billing details of the resources in the value of the
TotalCostAmount
parameter.