Customer Operation Capabilities
| Details
  • Registering a Customer (Partner)
    • CheckUserIdentity
    • CreateSubCustomer
    • SendVerificationMessageCode
  • Managing Customers (Partner)
    • FreezeSubCustomers
    • ListSubCustomers
    • UnfreezeSubCustomers
  • Real-Name Authentication (Partner)
    • ChangeEnterpriseRealnameAuthentication
    • CreateEnterpriseRealnameAuthentication
    • CreatePersonalRealnameAuth
    • ShowRealnameAuthenticationReviewResult
  • Managing Coupons (Public)
    • ListSubCustomerCoupons
  • Managing Customer Budgets (Partner)
    • ListSubCustomerBudget
    • ShowSubCustomerBudget
    • UpdateSubCustomerBudget
  • Managing Accounts (Customer)
    • ShowCustomerAccountBalances
  • Purchasing a Cloud Service (Public)
    • ListFreeResourceUsages
    • ListOnDemandResourceRatings
    • ListRateOnPeriodDetail
    • ListRenewRateOnPeriod
  • Managing Yearly/Monthly Orders (Public)
    • ListCustomerOrders
    • ShowCustomerOrderDetails
    • ShowRefundOrderDetails
  • Managing Yearly/Monthly Orders (Customer)
    • AutoRenewalResources
    • CancelAutoRenewalResources
    • CancelCustomerOrder
    • CancelResourcesSubscription
    • ListOrderDiscounts
    • ListPayPerUseCustomerResources
    • PayOrders
    • RenewalResources
    • UpdatePeriodToOnDemand
  • Managing Pay-Per-Use Resources (Partner)
    • ListCustomerOnDemandResources
  • Managing Bills (Partner)
    • ListPostpaidBillSum
  • Managing Bills (Customer)
    • ListCustomerselfResourceRecordDetails
    • ListCustomerselfResourceRecords
    • ListMonthlyExpenditures
  • Managing Enterprise Projects (Customer)
    • CreateEnterpriseProjectAuth
  • Managing Enterprise Accounts (Customer)
    • ListEnterpriseSubCustomers
  • Managing Products (Public)
    • ListConversions
    • ListMeasureUnits
    • ListResourceTypes
    • ListServiceResources
    • ListServiceTypes
    • ListUsageTypes
  • Managing Resource Packages (Customer)
    • ListFreeResourceInfos
    • ListFreeResourcesUsageRecords
  • Managing Huawei Cloud Resellers (Partner)
    • ListIndirectPartners
  • Cost Management (Customer)
    • ListCosts
  • Managing Credits(Partner)
    • ShowPartnerConsumptionQuota
  • Managing Invoices (Public)
    • ListInvoices

CancelResourcesSubscription

POST
https://bss-intl.myhuaweicloud.com/v2/orders/subscriptions/resources/unsubscribe
Advanced
Required parameters only
Default
Encrypt sensitive parameters
*
Region
Headers
*
Authorization
Body
*{
*
resource_ids
: [
+Add
*]
*
unsubscribe_type
:
*
unsubscribe_reason_type
:
*
unsubscribe_reason
:
}
API Description

If a customer has subscribed to a yearly/monthly resource, the customer can use this API to unsubscribe from the resource, including the renewed part and currently used part. The customer cannot use the resources after unsubscription.

Customers can follow the instructions described in Unsubscription to unsubscribe from the yearly/monthly resources in Billing Center.

NOTE:

  • A yearly/monthly resource can be unsubscribed from only after it has been successfully paid and provisioned.
  • If a primary resource has resources attached, the system cancels the subscription to both the primary resource and its attached ones after this API is invoked. You can invoke Querying Customer's Yearly/Monthly Resources to obtain the details of the attached resources.
  • If a newly purchased EVS disk is attached to an ECS, but this disk is not the attached to any of the ECS primary resources, you must invoke Querying Customer's Yearly/Monthly Resources to obtain the details of the ECS primary resources and its attached ones.
Constraints

This API can be invoked only by the customer AK/SK or token.

URL
POST  https://bss-intl.myhuaweicloud.com/v2/orders/subscriptions/resources/unsubscribe
Request Parameters
NameTypeINMandatoryDescription
X-Auth-Token
stringheader Yes

Call with customer token

Body Parameters
NameTypeMandatoryDescription
resource_ids
Array of strings Yes

Resource IDs. A maximum of 10 resource IDs can be entered at a time. Only the primary resource IDs can be entered. Determine whether a resource is a primary resource based on is_main_resource in the response of the API described in Querying Customer's Yearly/Monthly Resources.

unsubscribe_type
integer Yes

Unsubscription type. The value can be: 1: Unsubscribe from the resource and its renewal periods.2: Unsubscribe from only the resource renewal periods.

unsubscribe_reason_type
integer No

Unsubscription cause. The value can be: 1: The product is of poor usability.2: The product functions cannot meet the requirements.3: Customers do not know how to use the product, or the product operations are complex. 4: Customers are not satisfied with the service. 5: Others

unsubscribe_reason
string No

Unsubscription reason, which is generally specified by the customer.

Response Parameters
Status code: 200

CancelResourcesSubscription Responses

NameTypeDescription
order_ids
Array of strings

Unsubscription order IDs.

fail_resource_infos
Array of FailResourceInfo objects

List of resources that failed to be unsubscribed from. This parameter has a value only when there are resources that fail to be unsubscribed from. For details, see Table Unnaming.This parameter is reserved.

200 fail_resource_infos
NameTypeDescription
error_code
string

Status code.For details, see Returned Values.This parameter is reserved.

error_msg
string

Error description.This parameter is reserved.

resource_id
string

Resource ID.This parameter is reserved.

Status code: 400

CBC.0100:Parameter error. CBC.99003001:The resource has expired. CBC.99003002:The resource has been locked. CBC.99003004:The resource has dependencies. CBC.99003005:The resource is being provisioned. CBC.99003006:Unsupported cloud service type. CBC.99003128:The resource does not have renewed periods or the renewed periods have taken effect, and the renewal periods cannot be unsubscribed. CBC.99003185:The cloud service can only be unsubscribed from as a whole. CBC.99003640:Bandwidth add-on packages cannot be unsubscribed from. CBC.99005042:The resource cannot be found or unsubscribed from.

Example Request
Example 1
"POST https://bss-intl.myhuaweicloud.com/v2/orders/subscriptions/resources/unsubscribe"
{ "resource_ids": [ "21e09f37c5c9420c8746ad5c71fb3aab" ], "unsubscribe_type": 1, "unsubscribe_reason_type": 5, "unsubscribe_reason": "test" }
Example Response
Status code: 200

CancelResourcesSubscription Responses

Example 1
{
"order_ids": [
"CS19040119281JMYC"
],
"fail_resource_infos": []
}
SDK
Click Customer Operation Capabilities (BSSINTL) SDK to download the SDK in your programming language or view the SDK documentation. To learn how to install an SDK and perform authentication, read Usage.
Error Code

Outline

API Description
Constraints
URL
Request Parameters
Response Parameters
Example Request
Example Response
SDK
Error Code