Skip to content

How to call scaleVirtualMachine api with details parameter #9961

Closed Answered by bernardodemarco
YashasAnand asked this question in Q&A
Discussion options

You must be logged in to vote

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 the scaleVirtualMachine API is asynchronous, the jobid was returned, as expected. It means that the request was successfully authenticated and its response can be retrieved using the queryAsyncJobResult API:

query asyncjobresult jobid="<job-id>"

When retrieving the result of a job related to the scaleVirtualMachine API, a successful response will be something like:

(localcloud) 🐱 > query asyncjobresult jobid=75f6ebd3-e4ed-477c-b6ff-2577e2e56c30
{
  (...)
  "jobresult": {
    "virtualmachine": {
      "account": "admin",
      "a…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@YashasAnand
Comment options

Answer selected by YashasAnand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants