Instances
Preview instance price
Preview billing price of the server instance
post/cloud/v2/pricing/{project_id}/{region_id}/instances
Path parameters
project_idinteger required
Project ID
Example:1
Project ID
region_idinteger required
Region ID
Example:1
Region ID
Request body
Example request
{
"flavor": "g1-standard-1-2",
"interfaces": [
{
"floating_ip": {
"source": "new"
},
"network_id": "ddc28e44-2acb-499b-985b-831f29432e1c",
"subnet_id": "2731a56e-a5c9-44be-80c2-02c57c594573",
"type": "subnet"
},
{
"floating_ip": {
"existing_floating_id": "57be69f6-6f6a-4f03-a4ad-8eb86c69ec0a",
"source": "existing"
},
"network_id": "53609647-2619-420a-b046-59905c8e3370",
"subnet_id": "e3c6ee77-48cb-416b-b204-11b492cc776e3",
"type": "subnet"
},
{
"network_id": "783b36b4-3ef4-48ac-879d-5b3ea53180d8",
"subnet_id": "382a83e5-1b38-49f9-bd83-730353b29ed4",
"type": "subnet"
},
{
"network_id": "783b36b4-3ef4-48ac-879d-5b3ea53180d8",
"type": "any_subnet"
},
{
"type": "external"
}
],
"names": [
"my-instance-1"
],
"volumes": [
{
"size": 10,
"source": "image",
"type_name": "ssd_hiiops"
},
{
"size": 5,
"source": "new-volume",
"type_name": "standard"
},
{
"snapshot_id": "7cca40d7-a843-4e9f-ae08-62b9a394b1ab",
"source": "snapshot"
}
]
}Response
OK
Example response
{
"currency_code": "USD",
"discount_details": [
{
"discount": "0.1",
"resource": "ssd_hiiops"
}
],
"discount_percent": "10.50",
"per_gb": {
"egress_traffic_baremetal": 0.05,
"egress_traffic_virtual": 0.05
},
"per_hour": {
"external_ip": 14.4,
"flavor": 576,
"floating_ip": 36,
"volumes": {
"cold": 78,
"ssd_hiiops": 20,
"ssd_lowlatency": 10,
"standard": 10,
"ultra": 78
}
},
"per_month": {
"external_ip": 14.4,
"flavor": 576,
"floating_ip": 36,
"volumes": {
"cold": 78,
"ssd_hiiops": 20,
"ssd_lowlatency": 10,
"standard": 10,
"ultra": 78
}
},
"vm_count": 1
}