API overview

Updated at:
Copy as MD

API standards and multilingual preset SDKs

The OpenAPI of this product (BssOpenApi/2017-12-14) uses the RPC signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.

Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.

Custom signature scenarios

If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.

Account and security preparation

Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.

Fund flows

API

Title

Description

QueryAccountBalance Query user account balance information Queries the balance information of a user account.
QueryAccountTransactionDetails Query account transaction details Queries the income and expenditure details of account transactions.
QueryAccountTransactions Query account transaction details Queries the transaction records of a user account.

Account linking

API

Title

Description

QueryRelationList Query enterprise financial relationships Queries the list of member accounts relationships for accounts with master-member relationship permissions.
QueryPermissionList QueryPermissionList Queries the permissions for a master-member relationship based on the relationship ID.
GetAccountRelation Query account linking Queries the details of an account linking.
AddAccountRelation AddAccountRelation Creates a financial relationship.
ModifyAccountRelation ModifyAccountRelation Adds or deletes permissions for an account linking relationship.
ConfirmRelation Confirm account linking Confirms a financial association invitation initiated by the primary account.
RelieveAccountRelation RelieveAccountRelation Disassociates a RAM user from an Alibaba Cloud account.

Resource tags

API

Title

Description

QueryInstanceByTag QueryInstanceByTag Queries a list of instances by tags.
TagResources Add tags to a resource Adds tags to a resource.
UntagResources UntagResources Removes tags from resources.

Vouchers

API

Title

Description

QueryPrepaidCards Query account card packages Queries user card package information.
QueryRedeem Query redemption tickets Queries the redemption ticket information of a user.
QueryCashCoupons Query user voucher information Queries user voucher information.

Savings plans

API

Title

Description

QuerySavingsPlansInstance QuerySavingsPlansInstance Queries information about your savings plan instances.
QuerySavingsPlansDeductLog QuerySavingsPlansDeductLog Queries the details of savings plan deductions.
DescribeSavingsPlansUsageTotal Query savings plan usage summary Queries the savings plan usage summary.
DescribeSavingsPlansUsageDetail Savings plan usage details Queries the usage details of savings plans.
DescribeSavingsPlansCoverageTotal Query savings plan coverage summary Queries the savings plan coverage summary.
DescribeSavingsPlansCoverageDetail Query savings plan coverage details Queries the details of savings plan coverage.
QuerySavingsPlansDiscount QuerySavingsPlansDiscount Queries the discount information for savings plans.

Reseller quotas

API

Title

Description

CreateResellerUserQuota Create quota and consumption ledgers Creates a user quota ledger and a quota consumption ledger.
SetResellerUserQuota Modify the quota ledger and consumption ledger. Modify the quota ledger and consumption ledger.
ChangeResellerConsumeAmount Deduct user quota consumption Deducts user quota consumption.
QueryResellerAvailableQuota Query current available quota balance Queries the current available quota balance for a user in a consolidated billing scenario where a consumption quota is set.
SetResellerUserAlarmThreshold Configure low-balance alert rules for quotas Configures low-balance alert rules for quotas.
QueryResellerUserAlarmThreshold Query low-balance alert rules for quotas Queries the low-balance alert rules for quotas.
SetResellerUserStatus SetResellerUserStatus Enables or disables the SQL audit feature for users.

Reseller accounts

API

Title

Description

CreateAgAccount Create a parallel account Creates a financial association.
GetCustomerAccountInfo Query partner customer account information Queries the account information of an end customer under a partner.
GetCustomerList Query sub-account list Queries the list of end customer UIDs under a partner.

Resource plans

API

Title

Description

QueryResourcePackageInstances Query resource plan instances Queries the instances of a resource plan for a user. Only valid resource plans can be queried.
QueryDPUtilizationDetail Query resource plan usage Queries the usage of resource plans, including reserved instances (RIs) and storage capacity units (SCUs).
QueryRIUtilizationDetail Query reserved instance usage Queries the usage of reserved instances (RIs).
DescribeResourceUsageTotal Resource usage summary Queries the usage summary of reserved instances and storage capacity units (SCUs).
DescribeResourceUsageDetail Query resource usage details Queries the usage details of reserved instances and storage capacity units (SCUs).
DescribeResourceCoverageTotal Resource coverage summary Queries the coverage summary of reserved instances and storage capacity units (SCUs).
DescribeResourceCoverageDetail Query resource coverage details Queries the coverage details of reserved instances and storage capacity units (SCUs).
DescribeResourcePackageProduct Describe resource plan product services Queries the information about a specific resource plan product.
GetResourcePackagePrice Query resource plan pricing Queries the price of a resource plan.
RenewResourcePackage Renew a resource plan Renews a specified resource plan instance.
UpgradeResourcePackage UpgradeResourcePackage Upgrades a resource plan.

Financial bills

API

Title

Description

SubscribeBillToOSS Set up OSS bill file subscription Subscribes to bill files by using Object Storage Service (OSS), which stores billing data in a specified OSS bucket.
UnsubscribeBillToOSS Cancel detailed list subscription service Cancels a detailed list export subscription.
QueryBillToOSSSubscription Query bill subscription to OSS Queries the records of bill subscriptions to OSS buckets.
QueryBillOverview Query bill overview Queries the bill overview of a user for a specific billing cycle.
QueryBill Query bills Queries the settlement bills of a user within a specific billing cycle.
QueryAccountBill QueryAccountBill Queries account spending within a billing cycle and aggregates the data by resource owner.
QuerySettleBill Query settlement bills Queries the settlement bills of a user within a specific billing cycle. Supports domestic accounts with more than 50,000 bill entries.
QueryInstanceBill QueryInstanceBill Queries the usage summary of all product instances or billable items for an account in a billing cycle. This operation has been upgraded to DescribeInstanceBill. This operation no longer queries data beyond the 50,000th row.
DescribeInstanceBill Query instance bills Queries the consumption summary of all product instances or billable items for a user within a specific billing cycle.
QueryInstanceGaapCost Query monthly cost allocation service This API is deprecated. Use the following APIs to retrieve the amortized cost: `DescribeInstanceAmortizedCostByAmortizationPeriod` - retrieves instance costs by amortization period; `DescribeProductAmortizedCostByAmortizationPeriod` - retrieves product costs by amortization period; `DescribeInstanceAmortizedCostByConsumePeriod` - retrieves instance costs by consume period; `DescribeProductAmortizedCostByConsumePeriod` - retrieves product costs by consume period.
DescribeInstanceAmortizedCostByAmortizationPeriod Query instance amortized costs by amortization month Queries the monthly amortized costs of instances by amortization month.
DescribeProductAmortizedCostByAmortizationPeriod Query monthly amortized costs of products by amortization month Queries the monthly amortized costs of products from the perspective of the amortization month.
DescribeInstanceAmortizedCostByConsumePeriod Query monthly amortized costs of instances by billing cycle Queries the monthly amortized costs of instances by billing cycle.
DescribeProductAmortizedCostByConsumePeriod Query product amortized costs by billing cycle month Queries the monthly amortized costs of products by billing cycle month.
DescribeSplitItemBill Split bill service Queries split bills.
QuerySplitItemBill QuerySplitItemBill Queries split bills. This API has been upgraded. We recommend that you use the new DescribeSplitItemBill operation.

Pricing inquiry

API

Title

Description

InquiryPriceRefundInstance Query refund price for instance unsubscription Queries the refund amount for an instance that you want to unsubscribe from.
GetPayAsYouGoPrice Query pay-as-you-go product prices Queries the prices of pay-as-you-go products.
GetSubscriptionPrice Query subscription product prices Queries the prices of subscription products.

Instances

API

Title

Description

QueryAvailableInstances Query instances Queries the list of available instances.
ReleaseInstance ReleaseInstance Releases instances by Virtual Network Operators (VNOs).
CreateInstance Create an instance resource Creates an instance resource. This operation creates an order for a new instance resource and completes automatic payment. ECS and RDS product series are not supported.
ModifyInstance Modify instance configuration Modifies the resource configuration of an instance. Invoking this operation creates an order for the Upgrade/Downgrade of instance resources and processes automatic payment. This operation does not support configuration changes for ECS or RDS products. Use the dedicated API of the corresponding product to execute the Upgrade/Downgrade.
SetRenewal Set auto-renewal for an instance Sets the auto-renewal service for an instance.
ConvertChargeType Switch instance billing method Changes the subscription type for an instance. Currently, this operation supports converting pay-as-you-go instances of SLB, EIP, and NAT Gateway to subscription instances, and converting subscription instances of SLB and EIP to pay-as-you-go instances.
RenewInstance Renew an instance Renews a specified instance. This operation does not support renewing ECS, RDS, or Redis instances. To renew these instances, call the dedicated renewal API of the corresponding service.
RefundInstance Unsubscribe from an instance Unsubscribes from an instance that is no longer needed.

Orders

API

Title

Description

GetOrderDetail Query order details Queries the details of a specific order for a user or a distribution customer.
QueryOrders Query order list Queries the orders of users or distribution customers. By default, this operation queries orders created within the last hour. To query orders over a longer period, specify the CreateTimeStart and CreateTimeEnd parameters.
CancelOrder Cancel an unpaid order Cancels an unpaid order.

Financial units

API

Title

Description

CreateCostUnit Create financial units Creates financial units. Batch creation is supported.
AllocateCostUnitResource Allocate resources to a financial unit Allocates resource instances (instance-based and attached-resource-based) from a source financial unit to a destination financial unit.
DeleteCostUnit Delete a financial unit Deletes a financial unit.
ModifyCostUnit Modify financial units Modifies financial units. Batch modification is supported.
QueryCostUnit Query financial units Queries all financial unit nodes under the current node of the financial unit tree. If ParentUnitId is set to -1, all financial units are queried.
QueryCostUnitResource Query resources of a financial unit Queries the list of resource instances that belong to a financial unit of a user. When UnitId is set to 0, the query returns unallocated primary and sub-resource instances.
QueryFinancialAccountInfo View enterprise financial account information Queries the enterprise financial account information of an account that has primary-subsidiary relationship permissions.

Invoices

API

Title

Description

QueryEvaluateList QueryEvaluateList Queries a list of objects that are eligible for invoicing.
QueryCustomerAddressList Query invoice mailing addresses Queries the Alibaba Cloud invoice mailing address information service.
QueryInvoicingCustomerList QueryInvoicingCustomerList Queries the invoicing information of an Alibaba Cloud user.
ApplyInvoice Apply for an invoice Submits an invoice application.

Products

API

Title

Description

QuerySkuPriceList Query SKU list under a commodity pricing entity Queries the list of SKUs and their list prices under a specified pricing entity of a commodity. A product feature typically has 1 to multiple SKUs, and some products can have tens of thousands of SKUs. The request parameters support filtered queries based on specific SKU configuration conditions.
QueryCommodityList Query commodity information list by product code Retrieves a list of commodity information based on a product code.
QueryPriceEntityList Query commodity pricing entities Queries the pricing entities under a commodity. A pricing entity is the smallest product capability used for metering and cost calculation.
DescribePricingModule Query product module information Queries the module information of a specific Alibaba Cloud product.
QueryProductList Query product information Queries the list of products available for subscription for the current account and returns information such as the product code, product name, and subscription mode (subscription or pay-as-you-go).

Others

API

Title

Description

SetAllExpirationDay Set a unified expiration date for ECS instances Sets a unified expiration date for renewing ECS instances.
DescribeCostBudgetsSummary DescribeCostBudgetsSummary Queries a summary of cost budgets.
RenewChangeInstance RenewChangeInstance Renews an instance and changes its configuration. The configuration change is applied after the renewal order takes effect. Payment is processed automatically. This operation cannot be used to create ECS or RDS instances.

Others

API

Title

Description

ReleaseExpiredPrepaidInstance Release expired and stopped subscription instances Releases expired and stopped subscription instances.