Server

Overview

This data type is included in the result of the next API request.

DATA TYPE

Contents

Contents
PARAMETER DESCRIPTION DATATYPE
id UUID of the server. UUID
OS-EXT-STS:power_state Power state of the server. State types are shown in below table. String
OS-EXT-STS:task_state task_state accurately represents the current state of progress of the tasks on the server. State types are shown in below table. String
OS-EXT-STS:vm_state vm_state is the current stable state of server. State types are shown in below table. This parameter is equal to “status” parameter. String
status Status of the server. State types are shown in below table. This parameter is equal to “OS-EXT-STS:vm_state” parameter. String
progress Baremetal server build progress. from 0(build started) upto 100(build completed) Integer
image The image uuid used on created your baremetal server. UUID
flavor The flavor uuid used on created your baremetal server. UUID
metadata Metadata key and value pairs. Metadata
raid_arrays Raid Arrays information. RaidArray Array
lvm_volume_groups LVM information. LVM VolumeGroup Array
filesystems Partition filesystem / mount point information. datatype_filesystems Array
nic_physical_port Physical port information on Network Interface Card. NicPhysicalPort Array
chassis-status Collection of current baremetal chassis status. ChassisStatus Hash
media_attachments Mount of User Images using API MediaAttachments Array
tenant_id The tenant uuid your baremetal server deployed. UUID
user_id The user id your baremetal server created. UUID
created Baremetal server created time. DateTime
updated Baremetal server last updated time. DateTime
managed_by_service Service name that managed this baremetal server. String
managed_service_resource_id The resource id that using this baremetal server. String

Status description

OS-EXT-STS:power_state

../../../_images/power_state.png
State Types
STATUS DESCRIPTION
RUNNING The server is running.
SHUTDOWN The server was shut down.
CRASHED The server lost power control information temporary. Status transfer RUNNING/SHUTDOWN Automatically.

OS-EXT-STS:task_state

../../../_images/task_state.png
State Types
STATUS DESCRIPTION
None There are no tasks. Only this status can be received API requests.
BUILDING The task is building the baremetal server. This status is transferred by Create Server.
DELETING The task is deleting the baremetal server. This status is transferred by Delete Server.
STOPPING The task is stopping the baremetal server. This status is transferred by Stop Server.
STARTING The task is starting the baremetal server. This status is transferred by Start Server.
REBOOTING The task is rebooting the baremetal server. This status is transferred by Reboot Server.
MEDIA_ATTACHING The task is attaching media to the baremetal server. This status is transferred by Media Attach to Server.
MEDIA_DETACHING The task is detaching media from the baremetal server. This status is transferred by Media Detach from Server.

OS-EXT-STS:vm_state / status

../../../_images/vm_state_status.png
State Types
STATUS DESCRIPTION
ACTIVE The baremetal server is active. This status is target of billing.
BUILD The baremetal server is built.
ERROR The baremetal server reports some errors. You may need to contact to our support.
DELETED The baremetal server is deleted.

Example

{
  "server": {
    "OS-EXT-STS:power_state": "RUNNING",
    "OS-EXT-STS:task_state": "None",
    "OS-EXT-STS:vm_state": "ACTIVE",
    "OS-EXT-AZ:availability_zone": "zone1-groupa",
    "created": "2012-09-07T16:56:37Z",
    "flavor": {
      "id": "05184ba3-00ba-4fbc-b7a2-03b62b884931",
      "links": [
        {
          "href": "https://baremetal-server-jp1-ecl.api.ntt.com/openstack/flavors/05184ba3-00ba-4fbc-b7a2-03b62b884931",
          "rel": "bookmark"
        }
      ]
    },
    "hostId": "16d193736a5cfdb60c697ca27ad071d6126fa13baeb670fc9d10645e",
    "id": "05184ba3-00ba-4fbc-b7a2-03b62b884931",
    "image": {
      "id": "70a599e0-31e7-49b7-b260-868f441e862b",
      "links": [
        {
          "href": "https://baremetal-server-jp1-ecl.api.ntt.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
          "rel": "bookmark"
        }
      ]
    },
    "links": [
      {
        "href": "https://baremetal-server-jp1-ecl.api.ntt.com/v2/openstack/servers/05184ba3-00ba-4fbc-b7a2-03b62b884931",
        "rel": "self"
      },
      {
        "href": "https://baremetal-server-jp1-ecl.api.ntt.com/openstack/servers/05184ba3-00ba-4fbc-b7a2-03b62b884931",
        "rel": "bookmark"
      }
    ],
    "metadata": {
      "My Server Name": "Apache1"
    },
    "name": "new-server-test",
    "progress": 0,
    "status": "ACTIVE",
    "tenant_id": "openstack",
    "updated": "2012-09-07T16:56:37Z",
    "user_id": "270dd02f-2abf-48bd-813a-f8a4470da7f7",
    "raid_arrays": [
      {
        "primary_storage": true,
        "raid_card_hardware_id": "raid_card_uuid",
        "disk_hardware_ids": [
          "disk0_uuid",
          "disk1_uuid",
          "disk2_uuid",
          "disk3_uuid"
        ],
        "partitions": [
          {
            "lvm": true,
            "partition_label": "primary-part1"
          },
          {
            "lvm": false,
            "size": "100G",
            "partition_label": "var"
          }
        ]
      },
      {
        "primary_storage": false,
        "raid_card_hardware_id": "raid_card_uuid",
        "internal_disk_ids": [
          "disk4_uuid",
          "disk5_uuid",
          "disk6_uuid",
          "disk7_uuid"
        ],
        "raid_level": 10,
        "partitions": [
          {
            "lvm": true,
            "partition_label": "secondary-part1"
          }
        ]
      }
    ],
    "lvm_volume_groups": [
      {
        "vg_label": "VG_root",
        "physical_volume_partition_labels": [
          "primary-part1",
          "secondary-part1"
        ],
        "logical_volumes": [
          {
            "lv_label": "LV_root"
          },
          {
            "size": "2G",
            "lv_label": "LV_swap"
          }
        ]
      }
    ],
    "filesystems": [
      {
        "label": "LV_root",
        "mount_point": "/",
        "fs_type": "xfs"
      },
      {
        "label": "var",
        "mount_point": "/var",
        "fs_type": "xfs"
      },
      {
        "label": "LV_swap",
        "fs_type": "swap"
      }
    ],
    "nic_physical_ports": [
      {
        "id": "39285bf9-12fb-4064-b98b-a552efc51cfc",
        "mac_addr": "0a:31:c1:d5:6d:9c",
        "network_physical_port_id": "38268d94-584a-4f14-96ff-732a68aa7301",
        "plane": "data",
        "attached_ports": [
          {
            "port_id": "61b7da1e-9571-4d63-b779-e003a56b8105",
            "network_id": "9aa93722-1ec4-4912-b813-b975c21460a5",
            "fixed_ips": [
              {
                "subnet_id": "0419bbde-2b82-4107-9d8a-6bba76e364af",
                "ip_address": "192.168.10.2"
              }
            ]
          }
        ],
        "hardware_id": "c1e1546d-3063-46d0-8895-c6350eb691ff"
      }
    ],
    "chassis-status": {
      "chassis-power": true,
      "power-supply": true,
      "cpu": true,
      "memory": true,
      "fan": true,
      "disk": 0,
      "nic": true,
      "system-board": true,
      "etc": true
    },
    "media_attachments": [
      {
        "image": {
          "id": "3339fd5f-ec06-4ef8-9337-c1c70218a748",
          "links": [
            {
              "href": "https://baremetal-server-jp1-ecl.api.ntt.com/openstack/images/3339fd5f-ec06-4ef8-9337-c1c70218a748",
              "rel": "bookmark"
            }
          ]
        }
      }
    ]
  }
}