curl --request POST \
--url https://public-api.cloudidr.com/external/api/v1/flexcompute/purchase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cidrId": "sc_1235674554"
}
'{
"cidrId": "sc_830349911839",
"policyName": "Volod test policy",
"cspAccountName": "personal AWS",
"policyStatus": "ACTIVE",
"policyOperatingState": "QUEUED_FOR_START",
"policyInstance": {
"id": 1688,
"instanceType": "c5.large",
"platformCode": "Linux/UNIX",
"tenancyCode": "DEDICATED",
"vcpu": 2,
"memory": 4,
"gpu": 0,
"gpuMemory": 0,
"qty": 2
},
"cspRegion": {
"regionCode": "us-west-2",
"regionType": "PRIMARY",
"availabilityZoneId": "usw2-az1"
},
"createdDate": "2026-01-08T15:20:15.64868Z",
"capacityConfiguration": {
"launchDateTime": "2026-01-10T00:00:00-08:00",
"endDateTime": "2026-01-12T23:15:00-08:00",
"autoRenewalEnabled": false,
"frequency": null,
"vpc": "default",
"securityGroups": "none",
"amiImage": "default",
"sshPairKey": "none",
"ebsVolumeSize": 10
},
"pricing": {
"ourPrice": 8.48,
"cspProviderPrice": 12.11,
"savings": 3.63,
"savingsPercentage": 0.3,
"creditCardProcessingFee": null,
"bankAccountProcessingFee": null
}
}Purchase a reserved capacity policy.
curl --request POST \
--url https://public-api.cloudidr.com/external/api/v1/flexcompute/purchase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cidrId": "sc_1235674554"
}
'{
"cidrId": "sc_830349911839",
"policyName": "Volod test policy",
"cspAccountName": "personal AWS",
"policyStatus": "ACTIVE",
"policyOperatingState": "QUEUED_FOR_START",
"policyInstance": {
"id": 1688,
"instanceType": "c5.large",
"platformCode": "Linux/UNIX",
"tenancyCode": "DEDICATED",
"vcpu": 2,
"memory": 4,
"gpu": 0,
"gpuMemory": 0,
"qty": 2
},
"cspRegion": {
"regionCode": "us-west-2",
"regionType": "PRIMARY",
"availabilityZoneId": "usw2-az1"
},
"createdDate": "2026-01-08T15:20:15.64868Z",
"capacityConfiguration": {
"launchDateTime": "2026-01-10T00:00:00-08:00",
"endDateTime": "2026-01-12T23:15:00-08:00",
"autoRenewalEnabled": false,
"frequency": null,
"vpc": "default",
"securityGroups": "none",
"amiImage": "default",
"sshPairKey": "none",
"ebsVolumeSize": 10
},
"pricing": {
"ourPrice": 8.48,
"cspProviderPrice": 12.11,
"savings": 3.63,
"savingsPercentage": 0.3,
"creditCardProcessingFee": null,
"bankAccountProcessingFee": null
}
}