- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Re: Compute: Virtual machine API
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2023 09:12 PM
07-09-2023 09:12 PM
Compute: Virtual machine API
We intend to include the currently operational virtual machines into the Morpheus environment, which is already running on oVirt. If we provide the IP address and login information, we have the ability to add virtual machines to the compute part, as I’ve seen.
But I can’t seem to locate the API for those particular functionalities. Please advise on the best method of action in this situation.
- Tags:
- automation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 08:04 AM
07-13-2023 08:04 AM
Re: Compute: Virtual machine API
The previous POST and the body worked for me and this one too.
Did you try it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2023 01:56 AM
07-10-2023 01:56 AM
Re: Compute: Virtual machine API
@ibrahim You can get that via CLI using a dry run
morpheus hosts add -c CLOUD -d
Example output:
REQUEST
POST https://appliance/api/servers
JSON
{
"server": {
"name": "apitest",
"zone": {
"id": 1
},
"computeServerType": {
"id": 3
},
"plan": {
"id": 105
},
"sshHost": "1.1.1.1",
"sshPort": 22,
"sshUsername": "user",
"sshPassword": "pass"
},
"volumes": [
{
"id": -1,
"rootVolume": true,
"name": "root",
"size": 10,
"sizeId": null,
"storageType": 1,
"datastoreId": "autoCluster"
}
],
"servicePlanOptions": {
"maxCores": 1,
"coresPerSocket": 1,
"maxMemory": 1073741824 #thats 1GB
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2023 03:02 AM
07-10-2023 03:02 AM
Re: Compute: Virtual machine API
Hi @aabraham
What I am looking is I wants to add the virtual machines using API. Currently we are having it in the UI. Same steps needs to perform using API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 05:24 AM
07-13-2023 05:24 AM