Skip to main content
PUT
/
external
/
api
/
v1
/
flexcompute
/
capacity-configuration
Configure Capacity
curl --request PUT \
  --url https://public-api.cloudidr.com/external/api/v1/flexcompute/capacity-configuration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cidrId": "sc_830349911839",
  "vpc": "vpc-12345678",
  "securityGroup": "sg-12345678",
  "amiImage": "ami-12345678",
  "sshPairKey": "keypair-name",
  "ebsVolumeSize": 30
}
'
{
  "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": "vpc-12345678",
    "securityGroups": "sg-12345678",
    "amiImage": "ami-12345678",
    "sshPairKey": "keypair-name",
    "ebsVolumeSize": 30
  },
  "pricing": {
    "ourPrice": 8.48,
    "cspProviderPrice": 12.11,
    "savings": 3.63,
    "savingsPercentage": 0.3,
    "creditCardProcessingFee": null,
    "bankAccountProcessingFee": null
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cidrId
string
required

Policy/Capacity ID (e.g., sc_830349911839)

vpc
string

VPC ID, must start with vpc- (e.g., vpc-0a1b2c3d)

securityGroup
string

Security group ID, must start with sg- (e.g., sg-0a1b2c3d)

amiImage
string

AMI ID, must start with ami- (e.g., ami-0a1b2c3d)

sshPairKey
string

SSH key pair name (free-form string)

ebsVolumeSize
integer

EBS volume size in GB (must be positive)

Required range: x >= 1

Response

Success - Capacity configuration updated