All Products
Search
Document Center

CDN:ModifyCdnService

Last Updated:Aug 27, 2026

Changes the metering method of Alibaba Cloud CDN.

Debugging

Debug

Run this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates SDK code samples after a successful call.

Authorization information

OperationAccess levelResource typeCondition keyAssociated operation
cdn:ModifyCdnServicenone\*All Resourcesnonenone

To grant a RAM user or RAM role permission to call this operation, add cdn:ModifyCdnService to the Action element of the RAM policy. This operation does not support resource-level authorization or condition keys.

Request parameters

ParameterTypeRequiredDescriptionExample
InternetChargeTypestringYesThe metering method. Valid values: <br>- PayByTraffic: pay-by-data-transfer <br>- PayByBandwidth: pay-by-bandwidthPayByTraffic

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstringThe request ID.16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

Examples

Sample success responses

JSON format

{
  "RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified value of parameter "InternetChargeType" is not valid.The specified InternetChargeType parameter is invalid.
400InsufficientBalanceYour account does not have enough balance.You have insufficient balance in your account. Top up or add funds to your account.
400FUWU_BIZ_COMMODITY_VERIFY_FAIL_INVALID_PAY_METHODINVALID_PAY_METHODThe specified payment method is invalid.
400FUWU_BIZ_COMMODITY_VERIFY_FAIL_HASORDERYou have an order not yet effectiveThe previous order that you placed has not taken effect.
400CSS_CHECK_UPDOWNGRADE_ERRORYou have an order not yet effective-
400COMMODITY.INVALID_COMPONENTThe specified value of parameter "InternetChargeType" is not valid.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-12-18API description update. The error code has changed.View change details