cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Eskandari <>
Subject Re: hook or callback for CloudStack API
Date Fri, 22 Feb 2019 20:34:53 GMT
Async jobs is not my concern.
Imagine that you have a firewall that is not integrated with CS and you
want to insert new roles in it each time a new VM is created.
In this case you need a hook that triggers an external script to configure
the firewall.
Pulling is time and resource consuming and its effect is not instant.

On Fri, Feb 22, 2019 at 8:02 PM Anurag Awasthi <>

> Hi Alireza,
> Could you elaborate a more on the use case you have in mind? The
> description you mention is very generic.
> As far as I know we need to use polling to track the status of any async
> job (which is another API call) and execute based on response. That seems
> to be foundation principle behind all async calls. Alternately, you can
> also use CloudMonkey (
> as a framework or dig a little into code there to implement a similar
> solution to execute hooks.
> Regards,
> Anurag
> ´╗┐On 2/22/19, 6:22 PM, "Alireza Eskandari" <> wrote:
>     Hi,
>     I'm looking for a solution to implement hooks or callbacks for
> CloudStack
>     API.
>     For example execute an script when user calls deployVirtualMachine API.
>     This script could be executed right after user submit his request or
> after
>     the request completed successfully or failed.
>     Maybe some API management solution could help me but the problem is
>     understanding CS asyncjobs and their status.
>     Thanks
> Amadeus House, Floral Street, London  WC2E 9DPUK
> @shapeblue

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message