cURL
curl --request POST \ --url https://public-api.cloudidr.com/external/api/v1/flexcompute/cancel \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "cidrId": "sc_1235674554" } '
200
scenario1
{ "message": "Policy canceled successfully. Early-cancellation fee = 50"}
Cancel a capacity reservation policy with applicable refunds based on cancellation timing.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Policy/Capacity ID to cancel
Success - Policy canceled successfully with refund details