Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serviceofferingid autocomplete in deploy virtualmachine api cmd doesn't list the offering ids, instead picks some integer id #148

Open
sureshanaparti opened this issue Mar 27, 2024 · 0 comments
Labels

Comments

@sureshanaparti
Copy link
Contributor

serviceofferingid autocomplete in deploy virtualmachine api cmd doesn't list the offering ids, instead picks some integer id.
Maybe, parsing issue in the API response.

Noticed this issue in cmk 6.3.0 / 6.4.0 RC1.

(cmk) 🐱 > deploy virtualmachine serviceofferingid=[debug] Possible related noun for the arg: serviceofferings and type: uuid
[debug] Autocomplete: API found using heuristics: listServiceOfferings
[debug] NewAPIRequest API request URL:http://10.0.33.31:8080/client/api?apiKey=LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q&command=listServiceOfferings&listall=true&response=json&signature=e9sFQuJdyq2gz75ckAM6Yz6CKuA%3D ⣟ 😺 fetching options, please wait... [debug] NewAPIRequest response status code:200
[debug] NewAPIRequest response body:{"listserviceofferingsresponse":{"count":2,"serviceoffering":[{"id":"6e9f3119-2040-4390-89a6-c18c0688eb9a","name":"Small Instance","displaytext":"Small Instance","cpunumber":1,"cpuspeed":500,"memory":512,"created":"2024-02-21T14:23:19+0000","storagetype":"shared","provisioningtype":"thin","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false,"iscustomized":false,"rootdisksize":0,"dynamicscalingenabled":true,"diskofferingstrictness":false,"encryptroot":false,"hasannotations":false},{"id":"6d4414ad-cafb-419a-b48d-a84cb74dff7f","name":"Medium Instance","displaytext":"Medium Instance","cpunumber":1,"cpuspeed":1000,"memory":1024,"created":"2024-02-21T14:23:19+0000","storagetype":"shared","provisioningtype":"thin","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false,"iscustomized":false,"rootdisksize":0,"dynamicscalingenabled":true,"diskofferingstrictness":false,"encryptroot":false,"hasannotations":false}]}}
(cmk) 🐱 > deploy virtualmachine serviceofferingid=6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant