- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Creating app using Morpheus api gives me "select a...
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
12-09-2024 07:22 AM
12-09-2024 07:22 AM
Creating app using Morpheus api gives me "select a plan" error
Hi Experts,
I have created App blueprints with Morpheus Type. It is 1 tier of provision vm.
From the portal, I can create this app adding Group and Cloud info. But with Morpheus API, I get “You must select a plan” error.
Do I need to specify plan?
If so, how can I set it?
curl -request POST \
--url https://$URL/api/apps \
--header 'accept: application/json' \
--header 'authorization: Bearer $TOKEN' \
--header 'content-type: application/json' \
--data '{"group": { "id": 2 }, "defaultCloud": { "id": 3 }, "blueprintId": 8, "name": "appvm02"}'
{"success":false,"msg":"App is invalid","errors":{"instances":[{"tier":"Test VM tier","index":0,"instanceErrors":{"plan":"You must select a plan"}}]}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 08:11 AM
12-09-2024 08:11 AM
Re: Creating app using Morpheus api gives me "select a plan" error
My guess is it will be "plan": {"id": 123 }
My go to (other than the API docs) is to use the Morpheus CLI to build my payload when I’m not 100% sure what all is needed.
For example you can run morpheus apps add -d
-d
stands for --dry-run. This option prints the API request instead of executing it. Hope this helps!