Default
Keystone Authentication token
Successfully retrieved blueprints
GET /resmgr/v2/blueprint HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
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"
}
}
}
}
}
]Keystone Authentication token
Cluster name
defaultDefaults to OVN
ovnPossible values: Enable Cluster Wide Distributed Network Routing
trueDNS Domain Name
localdomainLibrary location on filesystem or Cinder volume type
/var/lib/images|lvmEphemeral Virtual Machine storage path
/var/lib/instancesOperation successful
Invalid request
Operation cannot be performed in current state
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
Keystone Authentication token
Successfully retrieved blueprint
nullResource not found
GET /resmgr/v2/blueprint/{clusterName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
nullKeystone Authentication token
Cluster name
defaultDefaults to OVN
ovnPossible values: Enable Cluster Wide Distributed Network Routing
trueDNS Domain Name
localdomainLibrary location on filesystem or Cinder volume type
/var/lib/images|lvmEphemeral Virtual Machine storage path
/var/lib/instancesOperation successful
Resource not found
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
Keystone Authentication token
Operation successful
Resource not found
DELETE /resmgr/v2/blueprint/{clusterName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
No content
Keystone Authentication token
List of storage backends to associate with the role
Role assigned successfully
No content
Invalid request
Resource not found
Operation cannot be performed in current state
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
Keystone Authentication token
Role unassigned successfully
Invalid request
Resource not found
DELETE /resmgr/v2/hosts/{hostId}/roles/{roleName} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
No content
Keystone Authentication token
List of host configurations
GET /resmgr/v2/hostconfigs HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
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"
}
]Keystone Authentication token
Host configuration(s) created
Operation cannot be performed in current state
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"
}
]Keystone Authentication token
Host configuration details
GET /resmgr/v2/hostconfigs/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
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"
}Keystone Authentication token
Hypervisor-002ens3ens3ens3ens3eth0{"physnet":"ens3"}defaultHost configuration updated
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"
}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"
}Keystone Authentication token
Host configuration deleted
DELETE /resmgr/v2/hostconfigs/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
Host configuration deleted
No content
Keystone Authentication token
Host configuration assigned
No content
PUT /resmgr/v2/hosts/{hostId}/hostconfig/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
Host configuration assigned
No content
Keystone Authentication token
Host configuration unassigned
DELETE /resmgr/v2/hosts/{hostId}/hostconfig/{hostConfigId} HTTP/1.1
Host: example.platform9.com
x-auth-token: YOUR_API_KEY
Accept: */*
Host configuration unassigned
No content
Last updated
Was this helpful?
