Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-23 Thread via GitHub
GitHub user YashasAnand closed a discussion: How to call scaleVirtualMachine api with details parameter I am trying to call scaleVirtualMachine API using python, but the documentation is very vague on how to use details parameter [https://cloudstack.apache.org/api/apidocs-4.19/apis/scaleVirtua

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-23 Thread via GitHub
GitHub user YashasAnand added a comment to the discussion: How to call scaleVirtualMachine api with details parameter Thank you @bernardodemarco , i tried with cloudmonkey as you suggested, it threw the proper error that it expects cpu speed as well, I was not passing cpu speed in details par

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-22 Thread via GitHub
GitHub user bernardodemarco edited a comment on the discussion: How to call scaleVirtualMachine api with details parameter APIs in CloudStack can be synchronous/blocking, or asynchronous/non-blocking. Async APIs return a `jobid`, which can be used to poll the result of the API call. Since th

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-22 Thread via GitHub
GitHub user bernardodemarco added a comment to the discussion: How to call scaleVirtualMachine api with details parameter APIs in CloudStack: can be synchronous/blocking, or asynchronous/non-blocking. Async APIs return a `jobid`, which can be used to poll the result of the API call. Since th

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user YashasAnand edited a comment on the discussion: How to call scaleVirtualMachine api with details parameter Hi @bernardodemarco @weizhouapache Thank you for your respective responses. Below is my python code. def generate_signature(baseurl, request, secretkey): encoded_reque

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user YashasAnand edited a comment on the discussion: How to call scaleVirtualMachine api with details parameter Hi @bernardodemarco @weizhouapache Thank you for your respective responses. Below is my python code. `import hashlib import hmac import base64 import urllib.parse import jso

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user YashasAnand edited a comment on the discussion: How to call scaleVirtualMachine api with details parameter Hi @bernardodemarco @weizhouapache Thank you for your respective responses. Below is my python code. def generate_signature(baseurl, request, secretkey): en

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user YashasAnand edited a comment on the discussion: How to call scaleVirtualMachine api with details parameter Hi @bernardodemarco @weizhouapache Thank you for your respective responses. Below is my python code. ` def generate_signature(baseurl, request, secretkey): encoded_requ

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user YashasAnand added a comment to the discussion: How to call scaleVirtualMachine api with details parameter Hi @bernardodemarco @weizhouapache Thank you for your respective responses. Below is my python code. `import hashlib import hmac import base64 import urllib.parse import json

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user bernardodemarco added a comment to the discussion: How to call scaleVirtualMachine api with details parameter Hello, @YashasAnand The `details` parameter of the `scaleVirtualMachine` API is a `MAP`. Basically, the `MAP` parameter type in CloudStack expects the keys and values as:

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user weizhouapache edited a comment on the discussion: How to call scaleVirtualMachine api with details parameter Can you try ["memory": "3072", "cpunumber": "2"] or similar ? GitHub link: https://github.com/apache/cloudstack/discussions/9961#discussioncomment-11338433 This is

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user weizhouapache added a comment to the discussion: How to call scaleVirtualMachine api with details parameter Can you try {"memory": "3072", "cpunumber": "2"} ? GitHub link: https://github.com/apache/cloudstack/discussions/9961#discussioncomment-11338433 This is an automatic

Re: [D] How to call scaleVirtualMachine api with details parameter [cloudstack]

2024-11-21 Thread via GitHub
GitHub user YashasAnand edited a discussion: How to call scaleVirtualMachine api with details parameter I am trying to call scaleVirtualMachine API using python, but the documentation is very vague on how to use details parameter [https://cloudstack.apache.org/api/apidocs-4.19/apis/scaleVirtua