You are not logged in.
CancelResourcesSubscription
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.
- After invoking this API, you can also invoke the API described in Querying the Amount of Unsubscription Orders to query the orders corresponding to the unsubscription order amounts.
This API can be invoked only by the customer AK/SK or token.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
X-Auth-Token | string | header | Yes | Call with customer token |
Name | Type | Mandatory | Description |
---|---|---|---|
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. |
CancelResourcesSubscription Responses
Name | Type | Description |
---|---|---|
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. |
Name | Type | Description |
---|---|---|
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. |
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.
"POST https://bss-intl.myhuaweicloud.com/v2/orders/subscriptions/resources/unsubscribe"
{
"resource_ids": [
"21e09f37c5c9420c8746ad5c71fb3aab"
],
"unsubscribe_type": 1,
"unsubscribe_reason_type": 5,
"unsubscribe_reason": "test"
}
CancelResourcesSubscription Responses
{
"order_ids": [
"CS19040119281JMYC"
],
"fail_resource_infos": []
}