Description

作成済みサーバーの詳細情報を一覧で取得します。

Request URL

Compute API

GET /v2.1/servers/detail

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token トークン header トークンの情報を指定します。
トークンの発行方法は、トークン発行 にてご確認ください。

Response Code

Success

200

Example

Request

curl -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークン" \
https://compute.c3j1.conoha.io/v2.1/servers/detail

Response

{
	"servers": [
		{
			"id": "サーバーID",
			"name": "vm-37806450-5c",
			"status": "SHUTOFF",
			"tenant_id": "テナントID",
			"user_id": "ユーザーID",
			"metadata": {
				"instance_name_tag": "サーバー名",
				"backup_status": "active",
				"backup_id": "edfaa0b1-8619-408f-87d2-de13fef3b999",
				"backup_set": "6",
				"backup_rotate": "3"
			},
			"hostId": "f0f840fe0cb1a19fcb7a06c283eea0f7ccec9a175a471ae61fdb3881",
			"image": "",
			"flavor": {
				"id": "f2a77529-1815-43a2-bc14-1f3f6b09079c",
				"links": [
					{
						"rel": "bookmark",
						"href": "https://compute.c3j1.conoha.io/flavors/f2a77529-1815-43a2-bc14-1f3f6b09079c"
					}
				]
			},
			"created": "2023-11-24T03:56:10Z",
			"updated": "2023-11-25T01:26:20Z",
			"addresses": {
				"ext-v4v6-XXX-XXX-XXX-0-23": [
					{
						"version": 6,
						"addr": "****:****:****:****:***:***:***:***",
						"OS-EXT-IPS:type": "fixed",
						"OS-EXT-IPS-MAC:mac_addr": "**:**:**:**:**:**"
					},
					{
						"version": 4,
						"addr": "XXX.XXX.XXX.XXX",
						"OS-EXT-IPS:type": "fixed",
						"OS-EXT-IPS-MAC:mac_addr": "**:**:**:**:**:**"
					}
				]
			},
			"accessIPv4": "",
			"accessIPv6": "",
			"links": [
				{
					"rel": "self",
					"href": "https://compute.c3j1.conoha.io/v2.1/servers/268c3fbc-e0b1-48f2-b614-4682d1ba6021"
				},
				{
					"rel": "bookmark",
					"href": "https://compute.c3j1.conoha.io/servers/268c3fbc-e0b1-48f2-b614-4682d1ba6021"
				}
			],
			"OS-DCF:diskConfig": "MANUAL",
			"OS-EXT-AZ:availability_zone": "cell1-az1",
			"config_drive": "True",
			"key_name": null,
			"OS-SRV-USG:launched_at": "2023-11-24T03:56:17.000000",
			"OS-SRV-USG:terminated_at": null,
			"OS-EXT-SRV-ATTR:host": "ホストサーバー名",
			"OS-EXT-SRV-ATTR:instance_name": "c3j1-0000b117",
			"OS-EXT-SRV-ATTR:hypervisor_hostname": "ホストサーバー名",
			"OS-EXT-STS:task_state": null,
			"OS-EXT-STS:vm_state": "stopped",
			"OS-EXT-STS:power_state": 4,
			"os-extended-volumes:volumes_attached": [
				{
					"id": "edfaa0b1-8619-408f-87d2-de13fef3b999"
				}
			],
			"security_groups": [
				{
					"name": "セキュリティグループ名"
				}
			]
		},
		{
			"id": "サーバーID",
			"name": "vm-086f83cb-24",
			"status": "ACTIVE",
			"tenant_id": "テナントID",
			"user_id": "ユーザーID",
			"metadata": {
				"instance_name_tag": "サーバー名",
				"backup_status": "active",
				"backup_id": "d408157d-8b6d-41a4-8d3e-a2a5f396acb5",
				"backup_set": "0",
				"backup_rotate": "3"
			},
			"hostId": "9c31cba80932d78a410c52e33e6f09bf6ff799475e80cb235859cef0",
			"image": "",
			"flavor": {
				"id": "09efe5d4-725a-4027-a28a-acd85286d87c",
				"links": [
					{
						"rel": "bookmark",
						"href": "https://compute.c3j1.conoha.io/flavors/09efe5d4-725a-4027-a28a-acd85286d87c"
					}
				]
			},
			"created": "2023-11-17T05:45:49Z",
			"updated": "2023-11-25T02:31:41Z",
			"addresses": {
				"ext-win-v4v6-XXX-XXX-XXX-0-23": [
					{
						"version": 6,
						"addr": "****:****:****:****:***:***:***:***",
						"OS-EXT-IPS:type": "fixed",
						"OS-EXT-IPS-MAC:mac_addr": "**:**:**:**:**:**"
					},
					{
						"version": 4,
						"addr": "XXX.XXX.XXX.XXX",
						"OS-EXT-IPS:type": "fixed",
						"OS-EXT-IPS-MAC:mac_addr": "**:**:**:**:**:**"
					}
				]
			},
			"accessIPv4": "",
			"accessIPv6": "",
			"links": [
				{
					"rel": "self",
					"href": "https://compute.c3j1.conoha.io/v2.1/servers/8d9d4a0c-4d69-4315-908e-bfaf28e73803"
				},
				{
					"rel": "bookmark",
					"href": "https://compute.c3j1.conoha.io/servers/8d9d4a0c-4d69-4315-908e-bfaf28e73803"
				}
			],
			"OS-DCF:diskConfig": "MANUAL",
			"progress": 0,
			"OS-EXT-AZ:availability_zone": "cell1-az1",
			"config_drive": "True",
			"key_name": null,
			"OS-SRV-USG:launched_at": "2023-11-17T05:45:54.000000",
			"OS-SRV-USG:terminated_at": null,
			"OS-EXT-SRV-ATTR:host": "ホストサーバー名",
			"OS-EXT-SRV-ATTR:instance_name": "c3j1-0000aaf2",
			"OS-EXT-SRV-ATTR:hypervisor_hostname": "ホストサーバー名",
			"OS-EXT-STS:task_state": null,
			"OS-EXT-STS:vm_state": "active",
			"OS-EXT-STS:power_state": 1,
			"os-extended-volumes:volumes_attached": [
				{
					"id": "d408157d-8b6d-41a4-8d3e-a2a5f396acb5"
				}
			],
			"security_groups": [
				{
					"name": "セキュリティグループ名"
				}
			]
		}
	]
}

ConoHaにて提供しておりますAPIにつきましては、クラウド基盤として採用しておりますOpenStackの機能にて実装しておりますので、詳細な情報や使い方はOpenStackのドキュメントにてご確認ください。