Get create Instance options
GET/backend/api/openstack/instances/create_options
Host: https://core.ocplanet.cloud
Retrieve options for creating a new instance. Through a GET request with create_options, data about the service options is obtained before ordering it. You can see what the characteristics may be. These options contain all need data which must be specified when you will use POST/PUT requests.
Request
Responses
- 200
- 400
Create instanc
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
bootSources objectrequired
image object[]required
id uuidrequired
tags string[]required
client nullrequired
properties objectrequired
owner_specified.openstack.md5 string
owner_specified.openstack.sha256 string
owner_specified.openstack.object string
hw_qemu_guest_agent stringrequired
os_hidden boolean
os_hash_algo string
os_hash_value string
stores string
is_iso booleanrequired
display_name stringrequired
cleanup_date nullrequired
assigned_to_flavor booleanrequired
related_instance booleanrequired
name stringrequired
type stringrequired
status stringrequired
size integerrequired
created_at stringrequired
updated_at stringrequired
deleted_at nullrequired
os_distro stringrequired
hypervisor_type nullrequired
os_version stringrequired
architecture nullrequired
min_disk integerrequired
min_ram integerrequired
protected booleanrequired
visibility stringrequired
container_format stringrequired
disk_format stringrequired
hw_qemu_guest_agent booleanrequired
instance_uuid nullrequired
volume_snapshot_uuid nullrequired
region stringrequired
reseller_resources nullrequired
used_by_resellers arrayrequired
owned_image arrayrequired
shared_image arrayrequired
community_image arrayrequired
volume arrayrequired
volume_snapshot arrayrequired
volume_types object[]required
requested_boot_source booleanrequired
flavor object[]required
id uuidrequired
memory_gb floatrequired
flavor_group nullrequired
name stringrequired
description stringrequired
memory_mb integerrequired
vcpus integerrequired
swap integerrequired
root_gb integerrequired
ephemeral_gb integerrequired
out_of_stock booleanrequired
properties stringrequired
region stringrequired
reseller_resources nullrequired
assigned_cluster_templates arrayrequired
used_by_resellers arrayrequired
ssh_key object[]required
id integerrequired
name stringrequired
public_key stringrequired
created_at stringrequired
fingerprint stringrequired
user objectrequired
id integerrequired
email stringrequired
full_name stringrequired
display stringrequired
nics object[]required
id integerrequired
name stringrequired
tags arrayrequired
availability_zones arrayrequired
cinder_az string[]required
enable_volumes booleanrequired
enable_snapshots booleanrequired
hide_volume_az booleanrequired
region object[]required
id stringrequired
description stringrequired
selected_region stringrequired
client objectrequired
id integerrequired
name stringrequired
display stringrequired
{
"bootSources": {
"image": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tags": [
"string"
],
"properties": {
"owner_specified.openstack.md5": "string",
"owner_specified.openstack.sha256": "string",
"owner_specified.openstack.object": "string",
"hw_qemu_guest_agent": "string",
"os_hidden": true,
"os_hash_algo": "string",
"os_hash_value": "string",
"stores": "string"
},
"is_iso": true,
"display_name": "string",
"assigned_to_flavor": true,
"related_instance": true,
"name": "string",
"type": "string",
"status": "string",
"size": 0,
"created_at": "string",
"updated_at": "string",
"os_distro": "string",
"os_version": "string",
"min_disk": 0,
"min_ram": 0,
"protected": true,
"visibility": "string",
"container_format": "string",
"disk_format": "string",
"hw_qemu_guest_agent": true,
"region": "string",
"used_by_resellers": [
null
]
}
],
"owned_image": [
null
],
"shared_image": [
null
],
"community_image": [
null
],
"volume": [
null
],
"volume_snapshot": [
null
],
"volume_types": [
{}
],
"requested_boot_source": true
},
"flavor": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"memory_gb": 0,
"name": "string",
"description": "string",
"memory_mb": 0,
"vcpus": 0,
"swap": 0,
"root_gb": 0,
"ephemeral_gb": 0,
"out_of_stock": true,
"properties": "string",
"region": "string",
"assigned_cluster_templates": [
null
],
"used_by_resellers": [
null
]
}
],
"ssh_key": [
{
"id": 0,
"name": "string",
"public_key": "string",
"created_at": "string",
"fingerprint": "string",
"user": {
"id": 0,
"email": "string",
"full_name": "string",
"display": "string"
}
}
],
"nics": [
{
"id": 0,
"name": "string",
"tags": [
null
]
}
],
"availability_zones": [
null
],
"cinder_az": [
"string"
],
"enable_volumes": true,
"enable_snapshots": true,
"hide_volume_az": true,
"region": [
{
"id": "string",
"description": "string"
}
],
"selected_region": "string",
"client": {
"id": 0,
"name": "string",
"display": "string"
}
}
{
"bootSources": {
"image": [
{
"id": "2b979045-4e10-45c9-805c-c95be46a37b9",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/Centos-7",
"hw_qemu_guest_agent": "yes",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "1b29cd42a53a3b0807962c1c9fbbf7fb360e0d95bb0c962c15fd9fa27ad13e908f45d81558a273ecdc4a5db1b7b3ae8cd14678b56e17e8d7ee5f588d36a8a401",
"stores": "rbd"
},
"is_iso": false,
"display_name": "Centos 7 (x64)",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "Centos 7 (x64)",
"type": "template",
"status": "active",
"size": 902889472,
"created_at": "2023-12-30T11:54:35Z",
"updated_at": "2023-12-30T11:57:43Z",
"deleted_at": null,
"os_distro": "centos",
"hypervisor_type": null,
"os_version": "7",
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": true,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "e204d056-81d0-4e61-b2aa-a4ee25da6ce2",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/cirros",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "1103b92ce8ad966e41235a4de260deb791ff571670c0342666c8582fbb9caefe6af07ebb11d34f44f8414b609b29c1bdf1d72ffa6faa39c88e8721d09847952b",
"stores": "rbd"
},
"is_iso": false,
"display_name": "cirros",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "cirros",
"type": "template",
"status": "active",
"size": 21430272,
"created_at": "2023-12-30T12:01:01Z",
"updated_at": "2023-12-30T12:01:17Z",
"deleted_at": null,
"os_distro": "cirros",
"hypervisor_type": null,
"os_version": null,
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": false,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "736b728a-6fe9-4dfd-92b3-7b86026dcc85",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/ubuntu-ubunut-20-04",
"hw_qemu_guest_agent": "yes",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "e72fd59b0faf06f4f56bbcac327faf434727353b21468b64465cca1afbc88ccfd81501dbd104db2d329003d2afb827f391dc3fb68e337f3ebe70e6147d25b927",
"stores": "rbd"
},
"is_iso": false,
"display_name": "Ubuntu 20.04 LTS (x64)",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "Ubuntu 20.04 LTS (x64)",
"type": "template",
"status": "active",
"size": 1047592960,
"created_at": "2023-12-30T11:54:59Z",
"updated_at": "2023-12-30T11:58:51Z",
"deleted_at": null,
"os_distro": "ubuntu",
"hypervisor_type": null,
"os_version": "20.04",
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": true,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "6c27efd8-0305-44fc-8c2b-51bc6b3a77c9",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/ubuntu-20.04-kube-v1.24.11",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "f245b5a189a73c283e3f7033be14b981529977c7d7c97352d8f7f0ca34d91dcc1ecb76a76c0868c0883f2b90a017fee488ba3d7f570872b4662b32c3f83695fb",
"stores": "rbd"
},
"is_iso": false,
"display_name": "ubuntu-20.04-kube-v1.24.11",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "ubuntu-20.04-kube-v1.24.11",
"type": "template",
"status": "active",
"size": 4460118016,
"created_at": "2023-12-30T11:55:32Z",
"updated_at": "2023-12-30T11:59:15Z",
"deleted_at": null,
"os_distro": "ubuntu",
"hypervisor_type": null,
"os_version": null,
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": false,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "20774861-02cf-4450-ac6a-238e4f1272fc",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/ubuntu-20.04-kube-v1.26.7",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "ffb988c5cd564a9d7a0748415925dc568f4bd47489be10f8fdaf95cc60a4004c52e98086808a55d94186b0e23692514faab23a6cae718ba565d12b702fd3664f",
"stores": "rbd"
},
"is_iso": false,
"display_name": "ubuntu-20.04-kube-v1.26.7",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "ubuntu-20.04-kube-v1.26.7",
"type": "template",
"status": "active",
"size": 4440457216,
"created_at": "2023-12-30T11:56:40Z",
"updated_at": "2023-12-30T11:59:25Z",
"deleted_at": null,
"os_distro": "ubuntu",
"hypervisor_type": null,
"os_version": null,
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": false,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "5e2c1d1a-88af-41f2-ab7e-a0968413a6c1",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/ubuntu-20.04-kube-v1.27.4",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "972e0114d5cc664c127bdad963d919ee5b54885ac6e43b3983845ece5d065b91ccb58758cd00b5da2178c8fb15fc0ca602ff3ef59ff2b79452c37d42ae86d245",
"stores": "rbd"
},
"is_iso": false,
"display_name": "ubuntu-20.04-kube-v1.27.4",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "ubuntu-20.04-kube-v1.27.4",
"type": "template",
"status": "active",
"size": 4424204288,
"created_at": "2023-12-30T11:58:00Z",
"updated_at": "2023-12-30T11:59:35Z",
"deleted_at": null,
"os_distro": "ubuntu",
"hypervisor_type": null,
"os_version": null,
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": false,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "ec2439ca-7c00-4d23-a17a-61aea0992590",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/ubuntu-22.04-kube-v1.27.4",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "d1d9de1da35b665f7d368dab891375f09b1597b41dc47bf44e06dcad199f802e6aaaa77209df854082576bd16a63e7f15b377caefdb286209fbaf884d59188ac",
"stores": "rbd"
},
"is_iso": false,
"display_name": "ubuntu-22.04-kube-v1.27.4",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "ubuntu-22.04-kube-v1.27.4",
"type": "template",
"status": "active",
"size": 4985520128,
"created_at": "2023-12-30T11:59:45Z",
"updated_at": "2023-12-30T12:00:52Z",
"deleted_at": null,
"os_distro": "ubuntu",
"hypervisor_type": null,
"os_version": null,
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": false,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "52e39a74-c2c0-4085-a587-e49f7fd12100",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/ubuntu-22.04-kube-v1.28.6",
"hw_qemu_guest_agent": "yes",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "4fc24716c7db6e59087df44904c16cf3a52d574fd6bc989e9cd2eee33dc8d178769a504a0cb7a97936a6931ecb532c11268d7357f62570c5a23af7c17967ba7b",
"stores": "rbd"
},
"is_iso": false,
"display_name": "ubuntu-22.04-kube-v1.28.6",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "ubuntu-22.04-kube-v1.28.6",
"type": "template",
"status": "active",
"size": 4971495424,
"created_at": "2024-02-06T12:17:28Z",
"updated_at": "2024-02-09T12:46:51Z",
"deleted_at": null,
"os_distro": "ubuntu",
"hypervisor_type": null,
"os_version": "22.04",
"architecture": null,
"min_disk": 0,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "qcow2",
"hw_qemu_guest_agent": true,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
},
{
"id": "58bb6945-d3ae-4362-b3ca-8bca627fcbee",
"tags": [],
"client": null,
"properties": {
"owner_specified.openstack.md5": "",
"owner_specified.openstack.sha256": "",
"owner_specified.openstack.object": "images/Win-RAW2",
"hw_qemu_guest_agent": "yes",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "e774a849fc9ee2895bd106c51eb46fb5a836adebb77039d750f96ff614bda033e2c796deb61b7ed2222014c9372fa923c4777ff3858d8dbbaea12d6a8189dc64",
"stores": "rbd"
},
"is_iso": false,
"display_name": "Windows Server 2016 ENG (x64)",
"cleanup_date": null,
"assigned_to_flavor": true,
"related_instance": null,
"name": "Windows Server 2016 ENG (x64)",
"type": "template",
"status": "active",
"size": 21474836480,
"created_at": "2023-12-30T17:17:35Z",
"updated_at": "2024-02-16T14:16:12Z",
"deleted_at": null,
"os_distro": "windows",
"hypervisor_type": null,
"os_version": "2016",
"architecture": null,
"min_disk": 30,
"min_ram": 0,
"protected": false,
"visibility": "public",
"container_format": "bare",
"disk_format": "raw",
"hw_qemu_guest_agent": true,
"instance_uuid": null,
"volume_snapshot_uuid": null,
"region": "ua-central-1",
"reseller_resources": null,
"used_by_resellers": []
}
],
"owned_image": [],
"shared_image": [],
"community_image": [],
"volume": [],
"volume_snapshot": [],
"volume_types": [
{
"name": "__DEFAULT__",
"description": "Default Volume Type",
"sizeIncrement": 1,
"minimumSize": 1
}
],
"requested_boot_source": false
},
"flavor": [
{
"id": "4d429bcd-252c-4522-9ed0-4a24d6d8249e",
"memory_gb": 1,
"flavor_group": null,
"name": "v1.m1",
"description": "v1.m1",
"memory_mb": 1024,
"vcpus": 1,
"swap": 0,
"root_gb": 10,
"ephemeral_gb": 0,
"out_of_stock": false,
"properties": "{}",
"region": "ua-central-1",
"reseller_resources": null,
"assigned_cluster_templates": [],
"used_by_resellers": []
},
{
"id": "82d264ca-ed5a-4e3c-a393-15d8de580c1f",
"memory_gb": 2,
"flavor_group": null,
"name": "v1.m2",
"description": "v1.m2",
"memory_mb": 2048,
"vcpus": 1,
"swap": 0,
"root_gb": 15,
"ephemeral_gb": 0,
"out_of_stock": false,
"properties": "{}",
"region": "ua-central-1",
"reseller_resources": null,
"assigned_cluster_templates": [],
"used_by_resellers": []
},
{
"id": "863f524f-3d31-4f17-848f-be58036eef31",
"memory_gb": 2,
"flavor_group": null,
"name": "v1.m3",
"description": "v1.m3",
"memory_mb": 2048,
"vcpus": 2,
"swap": 0,
"root_gb": 20,
"ephemeral_gb": 0,
"out_of_stock": false,
"properties": "{}",
"region": "ua-central-1",
"reseller_resources": null,
"assigned_cluster_templates": [],
"used_by_resellers": []
},
{
"id": "a9ec3da2-87b2-4fbe-b3ae-5374a204653d",
"memory_gb": 4,
"flavor_group": null,
"name": "v1.m4",
"description": "v1.m4",
"memory_mb": 4096,
"vcpus": 2,
"swap": 0,
"root_gb": 30,
"ephemeral_gb": 0,
"out_of_stock": false,
"properties": "{}",
"region": "ua-central-1",
"reseller_resources": null,
"assigned_cluster_templates": [],
"used_by_resellers": []
},
{
"id": "61c79c33-6113-41fd-9d87-594764813c67",
"memory_gb": 8,
"flavor_group": null,
"name": "v1.m8",
"description": "v1.m8",
"memory_mb": 8196,
"vcpus": 2,
"swap": 0,
"root_gb": 50,
"ephemeral_gb": 0,
"out_of_stock": false,
"properties": "{}",
"region": "ua-central-1",
"reseller_resources": null,
"assigned_cluster_templates": [],
"used_by_resellers": []
}
],
"ssh_key": [
{
"id": 115,
"name": "gggg",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1lDHAJGtxCcnjNaAob6UddlVOrMeCMNqCkANJa2okY14l2mpIe94oKyUhVAnPfkbbIRQYuZH5uvTnV7Q7tzHZM93KSve2EZ5f+CUJzxp67cmi0ZTOBaCP4xfvDT8HYBm5ZtUqxlhXlVGgd0SsN0ZU73C34ghS+S/PrnO8/hSs6PrZEBbYD3Z89mGq2/SjKeRzy24h7n7/jb5/g8lVh/x+7MqViEaWFOOaGWOVW1HET28GYmwmdM3Q2x6brHH8+RrfskpY7Zpbu8fAX0JEOGv64wO8EIwHyW6D7vysU8yW37w3wCUU40K0uq82IG9+/H3uhhmwYtXftuF3JidKf7kX",
"created_at": "2024-03-04T09:34:22.272228Z",
"fingerprint": "18:83:76:06:3b:8f:c0:84:c4:2a:bd:97:46:fb:8f:63",
"user": {
"id": 970519,
"email": "dev141620@gmail.com",
"full_name": "EN EN",
"display": "EN EN (dev141620@gmail.com) #970519"
}
}
],
"nics": [
{
"id": "7e800880-26d4-4674-851f-dda4c8a362da",
"name": "external_network",
"tags": []
},
{
"id": "d76c58ea-98ca-4abe-a9b9-0a04f1740a71",
"name": "network94532",
"tags": []
}
],
"availability_zones": [],
"cinder_az": [
"nova"
],
"enable_volumes": true,
"enable_snapshots": true,
"hide_volume_az": true,
"region": [
{
"id": "default",
"description": ""
},
{
"id": "RegionTwo",
"description": ""
}
],
"selected_region": "default",
"client": {
"id": 933016,
"name": "EN EN",
"display": "EN EN #933016"
}
}
You may not have services or there may not be funds on your balance to complete this operation.
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail stringrequired
{
"detail": "string"
}
{
"detail": "Image not available in region {country_name}"
}
Loading...