Updated on 2025-01-06 GMT+08:00

Unsubscribing from a FlexusL Instance

Function

This API is used to unsubscribe from a yearly/monthly resource that you have subscribed to. including the renewed resources and the resources that are being used. After the unsubscription, the resources can no longer be used. This section lists the key information about API usage. For more information, see Unsubscribing from Yearly/Monthly Resources.

  • A yearly/monthly resource can be unsubscribed from only after it has been successfully paid and provisioned.
  • After this API is called, all resources including the EVS disks, cloud backup vault, HSS, and EIP associated with the FlexusL instance will be unsubscribed from.
  • When unsubscribing from an in-use resource, confirm the resource and refund information carefully. If you wan to continue using these resources, unsubscribe from the subscription term renewed but not used yet.

Constraints

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

Debugging

You can debug this API in API Explorer

URI

POST /v2/orders/subscriptions/resources/unsubscribe

Request Message

For details about the request parameters, see Request. In the request message, resource_ids indicates the FlexusL instance ID, which can be obtained in Querying a Created FlexusL Instance.

Example Request

Unsubscribe from the FlexusL instance whose ID is 6743d0e3708be6007b8c8012.

{
 "resource_ids": [
  "6743d0e3708be6007b8c8012"
 ],
 "unsubscribe_type": 1
}

Example Response

{
 "order_ids": [
  "CS241125191112O62"
 ],
 "fail_resource_infos": []
}

Status Code

For details, see Returned Values.