HyperV Service (2.5.5)

Download OpenAPI specification:Download

API specification provided by the hyperv service from EFA

HyperV

getSCVMMServer

Get HyperV server details from specified SCVMM server. The SCVMM server can be identified by IP Address or HostName

query Parameters
host_name
string

IP/Host Name of the SCVMM Server

Responses

Response samples

Content type
application/json
[
  • {
    }
]

registerSCVMMServer

Register SCVMM server with the HyperV service

Request Body schema: application/json

Register a new SCVMM Server.

host_name
required
string
username
required
string
password
required
string
tenant
required
string

Responses

Request samples

Content type
application/json
{
  • "host_name": "string",
  • "username": "string",
  • "password": "string",
  • "tenant": "string"
}

Response samples

Content type
application/json
{
  • "host_name": "10.24.39.224",
  • "id": 1,
  • "discovery_status": "Discovered",
  • "version": "System Center 2012",
  • "vm_count": 1000,
  • "hosts": [
    ],
  • "virtualmachines": [
    ]
}

deleteSCVMMServer

Delete the specified SCVMM server from the inventory.

query Parameters
host_name
required
string

IP/Host Name of the SCVMM to be deleted.

cleanup_epgs
boolean

Flag to indicate whether the EPGs should be deleted on SCVMM Deletion

Responses

Response samples

Content type
application/json
{
  • "host_name": "10.24.39.224",
  • "id": 1,
  • "discovery_status": "Discovered",
  • "version": "System Center 2012",
  • "vm_count": 1000,
  • "hosts": [
    ],
  • "virtualmachines": [
    ]
}

updateSCVMMServer

Update the specified SCVMM server details in the inventory.

path Parameters
host_name
required
string

IP Address/Host Name of the SCVMM server to be updated.

Request Body schema: application/json

Update SCVMM server. If credentials change provide new username and password

host_name
required
string
username
string
password
string

Responses

Request samples

Content type
application/json
{
  • "host_name": "string",
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "host_name": "10.24.39.224",
  • "id": 1,
  • "discovery_status": "Discovered",
  • "version": "System Center 2012",
  • "vm_count": 1000,
  • "hosts": [
    ],
  • "virtualmachines": [
    ]
}

Service Setting

getServiceSettings

Get the settings for the HyperV service

Responses

Response samples

Content type
application/json
[
  • {
    }
]

updateServiceSetting

Request Body schema: application/json

Update Service Settings.

key
required
string
Value: "Poll Frequency"
value
required
string
example
object

Responses

Request samples

Content type
application/json
{
  • "key": "Poll Frequency",
  • "value": "string",
  • "example": { }
}

Response samples

Content type
application/json
{
  • "message": "string",
  • "code": 100
}