Get Resize Options
GET/backend/api/openstack/instances/:instance_id/resize_options
Host: https://core.ocplanet.cloud
Retrieve available options for resizing the specified instance.
Request
Responses
- 200
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
flavors object[]required
assigned_cluster_templates arrayrequired
description stringrequired
ephemeral_gb integerrequired
flavor_group nullrequired
id stringrequired
memory_gb floatrequired
memory_mb integerrequired
name stringrequired
out_of_stock booleanrequired
properties stringrequired
region stringrequired
reseller_resources nullrequired
root_gb integerrequired
swap integerrequired
used_by_resellers arrayrequired
vcpus integerrequired
instances object[]required
{
"flavors": [
{
"assigned_cluster_templates": [
null
],
"description": "string",
"ephemeral_gb": 0,
"id": "string",
"memory_gb": 0,
"memory_mb": 0,
"name": "string",
"out_of_stock": true,
"properties": "string",
"region": "string",
"root_gb": 0,
"swap": 0,
"used_by_resellers": [
null
],
"vcpus": 0
}
],
"instances": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"allocation_pools": [
null
],
"cidr": "string",
"dns_nameservers": [
null
],
"host_routes": [
null
],
"name": "string",
"ip_version": 0,
"enable_dhcp": true,
"project": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"floating_ips": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"floating_ip_address": "string"
}
],
"access_subnet_id": "string"
}
]
}
{
"flavors": [
{
"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": []
}
],
"instance": {
"id": "1666a5a6-1ba1-43a4-ae4e-3d24d7015e98",
"name": "evdokimov@onepointcollab.com",
"allowed_actions": [
"shutoff",
"reboot",
"resize",
"rescue",
"rebuild",
"console",
"rename",
"create_snapshot",
"attach_volume",
"boot_from_iso",
"shelve",
"associate_ip",
"dissociate_ip",
"change_password"
],
"access_ip": "10.0.1.91",
"uuid": "1666a5a6-1ba1-43a4-ae4e-3d24d7015e98",
"created": "2024-03-19T09:38:29Z",
"display_status": "Running",
"display_task": null,
"description": null,
"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": []
},
"region": "ua-central-1",
"region_obj": {
"id": "default",
"description": "",
"enabled": true,
"enable_volumes": true,
"enable_snapshots": true,
"is_default": true
},
"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": []
},
"status": "active",
"booted_from_iso": false,
"locked": false,
"current_cycle_traffic": 1,
"current_month_traffic": 1,
"hostId": "5edc2161bc58cd4920fd84600b7ef1d1b4a4b68bef7bcaf209911915",
"host_name": "s10",
"access_subnet_id": "04830e34-ee2b-4257-8c25-fddcd3c3eeba",
"availability_zone": "nova",
"tags": [],
"floating_ips": []
}
}
Loading...