Default

List all blueprints

get
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Responses
200

Successfully retrieved blueprints

application/json
get
/blueprint
GET /resmgr/v2/blueprint HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
200

Successfully retrieved blueprints

[
  {
    "name": "default",
    "networkingType": "ovn",
    "enableDistributedRouting": true,
    "dnsDomainName": "localdomain",
    "virtualNetworking": {
      "enabled": true,
      "underlayType": "vlan",
      "vnidRange": "1:1000"
    },
    "vmHighAvailability": {
      "enabled": false
    },
    "autoResourceRebalancing": {
      "enabled": false,
      "rebalancingStrategy": "vm_workload_consolidation",
      "rebalancingFrequencyMins": 20
    },
    "imageLibraryStorage": "/var/lib/images|lvm",
    "vmStorage": "/var/lib/instances",
    "storageBackends": {
      "ANY_ADDITIONAL_PROPERTY": {
        "ANY_ADDITIONAL_PROPERTY": {
          "driver": "NetApp",
          "config": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        }
      }
    }
  }
]

Create a new blueprint

post
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Body
namestringRequired

Cluster name

Example: default
networkingTypestring · enumOptional

Defaults to OVN

Default: ovnPossible values:
enableDistributedRoutingbooleanOptional

Enable Cluster Wide Distributed Network Routing

Default: true
dnsDomainNamestringOptional

DNS Domain Name

Example: localdomain
imageLibraryStoragestringOptional

Library location on filesystem or Cinder volume type

Example: /var/lib/images|lvm
vmStoragestringOptional

Ephemeral Virtual Machine storage path

Example: /var/lib/instances
Responses
post
/blueprint
POST /resmgr/v2/blueprint HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 561

{
  "name": "default",
  "networkingType": "ovn",
  "enableDistributedRouting": true,
  "dnsDomainName": "localdomain",
  "virtualNetworking": {
    "enabled": true,
    "underlayType": "vlan",
    "vnidRange": "1:1000"
  },
  "vmHighAvailability": {
    "enabled": false
  },
  "autoResourceRebalancing": {
    "enabled": false,
    "rebalancingStrategy": "vm_workload_consolidation",
    "rebalancingFrequencyMins": 20
  },
  "imageLibraryStorage": "/var/lib/images|lvm",
  "vmStorage": "/var/lib/instances",
  "storageBackends": {
    "ANY_ADDITIONAL_PROPERTY": {
      "ANY_ADDITIONAL_PROPERTY": {
        "driver": "NetApp",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        }
      }
    }
  }
}

No content

Retrieve a specific blueprint

get
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
clusterNamestringRequired
Responses
200

Successfully retrieved blueprint

application/json
ResponsestringDefault: null
get
/blueprint/{clusterName}
GET /resmgr/v2/blueprint/{clusterName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
null

Update an existing blueprint

put
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
clusterNamestringRequired
Body
namestringRequired

Cluster name

Example: default
networkingTypestring · enumOptional

Defaults to OVN

Default: ovnPossible values:
enableDistributedRoutingbooleanOptional

Enable Cluster Wide Distributed Network Routing

Default: true
dnsDomainNamestringOptional

DNS Domain Name

Example: localdomain
imageLibraryStoragestringOptional

Library location on filesystem or Cinder volume type

Example: /var/lib/images|lvm
vmStoragestringOptional

Ephemeral Virtual Machine storage path

Example: /var/lib/instances
Responses
put
/blueprint/{clusterName}
PUT /resmgr/v2/blueprint/{clusterName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 561

{
  "name": "default",
  "networkingType": "ovn",
  "enableDistributedRouting": true,
  "dnsDomainName": "localdomain",
  "virtualNetworking": {
    "enabled": true,
    "underlayType": "vlan",
    "vnidRange": "1:1000"
  },
  "vmHighAvailability": {
    "enabled": false
  },
  "autoResourceRebalancing": {
    "enabled": false,
    "rebalancingStrategy": "vm_workload_consolidation",
    "rebalancingFrequencyMins": 20
  },
  "imageLibraryStorage": "/var/lib/images|lvm",
  "vmStorage": "/var/lib/instances",
  "storageBackends": {
    "ANY_ADDITIONAL_PROPERTY": {
      "ANY_ADDITIONAL_PROPERTY": {
        "driver": "NetApp",
        "config": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        }
      }
    }
  }
}

No content

Delete a specific blueprint

delete
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
clusterNamestringRequired
Responses
delete
/blueprint/{clusterName}
DELETE /resmgr/v2/blueprint/{clusterName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*

No content

Assign role to the host or update role settings

put
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostIdstringRequired
roleNameundefined · enumRequiredPossible values:
Body
backendsstring[]Required

List of storage backends to associate with the role

Responses
200

Role assigned successfully

No content

put
/hosts/{hostId}/roles/{roleName}
PUT /resmgr/v2/hosts/{hostId}/roles/{roleName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "backends": [
    "text"
  ]
}

No content

Remove role from the host

delete
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostIdstringRequired
roleNameundefined · enumRequiredPossible values:
Responses
delete
/hosts/{hostId}/roles/{roleName}
DELETE /resmgr/v2/hosts/{hostId}/roles/{roleName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*

No content

List host configurations

get
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Responses
200

List of host configurations

application/json
get
/hostconfigs
GET /resmgr/v2/hostconfigs HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
200

List of host configurations

[
  {
    "name": "Hypervisor-002",
    "mgmtInterface": "ens3",
    "vmConsoleInterface": "ens3",
    "hostLivenessInterface": "ens3",
    "tunnelingInterface": "ens3",
    "imagelibInterface": "eth0",
    "networkLabels": {
      "physnet": "ens3"
    },
    "clusterName": "default",
    "id": "17e20369-0c70-4e33-b018-b361cad83cf5"
  }
]

Create host configuration(s)

post
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Body
one ofOptional
or
Responses
200

Host configuration(s) created

application/json
post
/hostconfigs
POST /resmgr/v2/hostconfigs HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "name": "Hypervisor-002",
  "mgmtInterface": "ens3",
  "vmConsoleInterface": "ens3",
  "hostLivenessInterface": "ens3",
  "tunnelingInterface": "ens3",
  "imagelibInterface": "eth0",
  "networkLabels": {
    "physnet": "ens3"
  },
  "clusterName": "default"
}
[
  {
    "name": "Hypervisor-002",
    "mgmtInterface": "ens3",
    "vmConsoleInterface": "ens3",
    "hostLivenessInterface": "ens3",
    "tunnelingInterface": "ens3",
    "imagelibInterface": "eth0",
    "networkLabels": {
      "physnet": "ens3"
    },
    "clusterName": "default",
    "id": "17e20369-0c70-4e33-b018-b361cad83cf5"
  }
]

Get host configuration

get
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostConfigIdstringRequired
Responses
200

Host configuration details

application/json
Responseall of
get
/hostconfigs/{hostConfigId}
GET /resmgr/v2/hostconfigs/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
200

Host configuration details

{
  "name": "Hypervisor-002",
  "mgmtInterface": "ens3",
  "vmConsoleInterface": "ens3",
  "hostLivenessInterface": "ens3",
  "tunnelingInterface": "ens3",
  "imagelibInterface": "eth0",
  "networkLabels": {
    "physnet": "ens3"
  },
  "clusterName": "default",
  "id": "17e20369-0c70-4e33-b018-b361cad83cf5"
}

Update host configuration

put
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostConfigIdstringRequired
Body
namestringOptionalExample: Hypervisor-002
mgmtInterfacestringOptionalExample: ens3
vmConsoleInterfacestringOptionalExample: ens3
hostLivenessInterfacestringOptionalExample: ens3
tunnelingInterfacestringOptionalExample: ens3
imagelibInterfacestringOptionalExample: eth0
networkLabelsobjectOptionalExample: {"physnet":"ens3"}
clusterNamestringOptionalExample: default
Responses
200

Host configuration updated

application/json
Responseall of
put
/hostconfigs/{hostConfigId}
PUT /resmgr/v2/hostconfigs/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "name": "Hypervisor-002",
  "mgmtInterface": "ens3",
  "vmConsoleInterface": "ens3",
  "hostLivenessInterface": "ens3",
  "tunnelingInterface": "ens3",
  "imagelibInterface": "eth0",
  "networkLabels": {
    "physnet": "ens3"
  },
  "clusterName": "default"
}
200

Host configuration updated

{
  "name": "Hypervisor-002",
  "mgmtInterface": "ens3",
  "vmConsoleInterface": "ens3",
  "hostLivenessInterface": "ens3",
  "tunnelingInterface": "ens3",
  "imagelibInterface": "eth0",
  "networkLabels": {
    "physnet": "ens3"
  },
  "clusterName": "default",
  "id": "17e20369-0c70-4e33-b018-b361cad83cf5"
}

Delete host configuration

delete
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostConfigIdstringRequired
Responses
delete
/hostconfigs/{hostConfigId}
DELETE /resmgr/v2/hostconfigs/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
204

Host configuration deleted

No content

Assign host configuration to host

put
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostIdstringRequired
hostConfigIdstringRequired
Responses
200

Host configuration assigned

No content

put
/hosts/{hostId}/hostconfig/{hostConfigId}
PUT /resmgr/v2/hosts/{hostId}/hostconfig/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
200

Host configuration assigned

No content

Unassign host configuration from host

delete
Authorizations
x-auth-tokenstringRequired

Keystone Authentication token

Path parameters
hostIdstringRequired
hostConfigIdstringRequired
Responses
delete
/hosts/{hostId}/hostconfig/{hostConfigId}
DELETE /resmgr/v2/hosts/{hostId}/hostconfig/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
204

Host configuration unassigned

No content

Last updated

Was this helpful?