Get a virtual machine by its identifier
GET/v1/projects/:projectId/zones/:zoneName/virtualmachines/:virtualMachineId
Get a virtual machine by its identifier
Request
Path Parameters
Project Identifier
Zone name
Virtual machine Identifier
Header Parameters
Your SIU token if you use this API through Orange Developer.
Bearer access token authentication if you use this API through Orange Developer or Orange Developer Inside.
Your SIU Id if you use this API through Orange Developer Inside.
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 500
- 503
Ok
- application/json
- Schema
- Example (auto)
Schema
- creating: resource creation in progress
- updating: resource update in progress
- deleting: resource deletion in progress
- active: resource created/updated successfully
- error: resource in error because the last creation/update/deletion failed
- ignore : the modifications are recorded but no taken into account by the VNF
- replace : the modifications are taken into account by the VNF through a rebuild
Unique resource name. This attribute can not be updated.
Possible values: Value must match regular expression [A-Za-z0-9-]
Resource description
tags object
Resource identifier.
Hypertext reference of the resource.
Creation date of the resource.
Date of the last modification of the resource.
Identifier of the user of the last create/update/delete operation requested on the resource.
Provisioning state of the resource. Possible state:
Possible values: [creating
, updating
, deleting
, active
, error
]
Operational state of the Virtual Machine.
Possible values: [active
, suspended
]
Virtual machine image. Name to be selected from the result of GET images. If not provided, a bootable volume ref must be provided.
bootVolumeRef object
Type of the disk driver to use to boot on the Volume. Default value: virtio. To be used for exceptions. This attribute can not be updated.
Possible values: [virtio
, ide
, scsi
, usb
]
Virtual machine flavor name. Name to be selected from the result of GET flavors. This attribute can not be updated.
serverGroupRef object
Use configuration drive at VM boot. Configuration drives are special drives that are attached to a VM instance when it boots.
false
metaData object
VM boot configuration data encoded in Base64. Max length of decoded data = 65535 characters.
Update policy for the parameter userData :
Possible values: [ignore
, replace
]
keyPairRef object
volumeRefs object[]
interfaces object[]required
{
"name": "string",
"description": "string",
"tags": {},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"hRef": "string",
"createdDate": "2024-07-29T15:51:28.071Z",
"lastModifiedDate": "2024-07-29T15:51:28.071Z",
"lastRequesterId": "string",
"provisioningState": "creating",
"virtualMachineState": "active",
"image": "string",
"bootVolumeRef": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
},
"bootVolumeDiskBus": "virtio",
"flavor": "string",
"serverGroupRef": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
},
"configurationDrive": false,
"metaData": {},
"userData": "string",
"userDataUpdatePolicy": "ignore",
"keyPairRef": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
},
"volumeRefs": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
}
],
"interfaces": [
{
"name": "string",
"description": "string",
"hRef": "string",
"enabled": true,
"virtualNetworkRef": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
},
"sharedVirtualNetworkName": "string",
"ipAddresses": [
{
"ipAddress": "string",
"family": "ipv4",
"isIpLocal": false
}
],
"floatingIpAddress": "string",
"floatingPrivateIpAddress": "string",
"securityGroupRefs": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
}
],
"allowedIpAddressPairs": [
{
"ipAddress": "string",
"mode": "active-active",
"macAddress": "string"
}
],
"macAddress": "string",
"interfaceRoutes": [
{
"prefix": "string",
"communityTags": [
"string"
]
}
],
"subInterfaces": [
{
"name": "string",
"description": "string",
"enabled": true,
"virtualNetworkRef": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
},
"sharedVirtualNetworkName": "string",
"vlanId": 0,
"ipAddresses": [
{
"ipAddress": "string",
"family": "ipv4",
"isIpLocal": false
}
],
"floatingIpAddress": "string",
"floatingPrivateIpAddress": "string",
"securityGroupRefs": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
},
"allowedIpAddressPairs": [
{
"ipAddress": "string",
"mode": "active-active",
"macAddress": "string"
}
],
"macAddress": "string",
"interfaceRoutes": [
{
"prefix": "string",
"communityTags": [
"string"
]
}
],
"bgpaas": {
"autonomousSystem": 0,
"adminSessionState": "up",
"asOverride": true,
"localAutonomousSystem": 0,
"bgpAddressFamilies": [
"inet"
],
"maxRoutes": 10000,
"loopCount": 0,
"holdTime": 60
}
}
],
"bgpaas": {
"autonomousSystem": 0,
"adminSessionState": "up",
"asOverride": true,
"localAutonomousSystem": 0,
"bgpAddressFamilies": [
"inet"
],
"maxRoutes": 10000,
"loopCount": 0,
"holdTime": 60
}
}
]
}
Bad Request
Request is not valid
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Unauthorized
Credentials are missing
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Forbidden
Valid credentials but not enough privileges to perform the operation
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Not Found
Unknown resource or service
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Method Not Allowed
Operation is not valid according to the state of the resource
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Internal Server Error
Unexpected error, please contact support
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Service Unavailable
Service probably in maintenance. Please retry later.
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
- curl
- python
- go
- nodejs
- php
- java
- CURL
curl -L '/v1/projects/:projectId/zones/:zoneName/virtualmachines/:virtualMachineId' \
-H 'Accept: application/json'