You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Fariborz Navidan <md...@gmail.com> on 2024/08/14 18:30:47 UTC

Integration of console access fails for 4.18.2.1

Hello Everyone,

I am using "getCommandQuery" API passing "cmd=access", "vm" and "apiKey"
parameters to integrate console access to our own client panel. We have two
ACS installations, v4.15.0.0 and 4.18.2.1. If I call the API against v4.15
management server it returns a query string for console access and by
appending it to the management server URL I'm able to view the VM's console
in the browser. However, If I run the same command against v4.18 and append
the returned query string to the management server URL, I just get "failed"
string displayed in the browser. The query string returned from vf4.18 has
all the parameters. Below is the example of URL I'm building using the
returned query string:

http://
<mgmt_server>:8080/console?apiKey=w19-cW1y9pPW8epJTCXZznnW0oz4fbifGWlTfoy_rrVpfhZLUqz_pQ5rysSm442KPL4jEcBNsWMdlTE4V32txQ&cmd=access&vm=3257f9bd-ae5f-448d-a052-6eded88f1d44&signature=UniJRaHso9nV8TW1%2BTkYXmJDvsY%3D

Any help would be appreciated.

Thanks.

Re: Integration of console access fails for 4.18.2.1

Posted by Fariborz Navidan <md...@gmail.com>.
Thank you. It works well.

On Wed, 14 Aug 2024, 22:50 Wei ZHOU, <us...@gmail.com> wrote:

> Try this
>
>
>
> https://cloudstack.apache.org/api/apidocs-4.18/apis/createConsoleEndpoint.html
>
>
> On Wednesday, August 14, 2024, Fariborz Navidan <md...@gmail.com>
> wrote:
>
> > Hello Everyone,
> >
> > I am using "getCommandQuery" API passing "cmd=access", "vm" and "apiKey"
> > parameters to integrate console access to our own client panel. We have
> two
> > ACS installations, v4.15.0.0 and 4.18.2.1. If I call the API against
> v4.15
> > management server it returns a query string for console access and by
> > appending it to the management server URL I'm able to view the VM's
> console
> > in the browser. However, If I run the same command against v4.18 and
> append
> > the returned query string to the management server URL, I just get
> "failed"
> > string displayed in the browser. The query string returned from vf4.18
> has
> > all the parameters. Below is the example of URL I'm building using the
> > returned query string:
> >
> > http://
> > <mgmt_server>:8080/console?apiKey=w19-cW1y9pPW8epJTCXZznnW0oz4fbifGW
> > lTfoy_rrVpfhZLUqz_pQ5rysSm442KPL4jEcBNsWMdlTE4V3
> > 2txQ&cmd=access&vm=3257f9bd-ae5f-448d-a052-6eded88f1d44&
> > signature=UniJRaHso9nV8TW1%2BTkYXmJDvsY%3D
> >
> > Any help would be appreciated.
> >
> > Thanks.
> >
>

Re: Integration of console access fails for 4.18.2.1

Posted by Wei ZHOU <us...@gmail.com>.
Try this


https://cloudstack.apache.org/api/apidocs-4.18/apis/createConsoleEndpoint.html


On Wednesday, August 14, 2024, Fariborz Navidan <md...@gmail.com>
wrote:

> Hello Everyone,
>
> I am using "getCommandQuery" API passing "cmd=access", "vm" and "apiKey"
> parameters to integrate console access to our own client panel. We have two
> ACS installations, v4.15.0.0 and 4.18.2.1. If I call the API against v4.15
> management server it returns a query string for console access and by
> appending it to the management server URL I'm able to view the VM's console
> in the browser. However, If I run the same command against v4.18 and append
> the returned query string to the management server URL, I just get "failed"
> string displayed in the browser. The query string returned from vf4.18 has
> all the parameters. Below is the example of URL I'm building using the
> returned query string:
>
> http://
> <mgmt_server>:8080/console?apiKey=w19-cW1y9pPW8epJTCXZznnW0oz4fbifGW
> lTfoy_rrVpfhZLUqz_pQ5rysSm442KPL4jEcBNsWMdlTE4V3
> 2txQ&cmd=access&vm=3257f9bd-ae5f-448d-a052-6eded88f1d44&
> signature=UniJRaHso9nV8TW1%2BTkYXmJDvsY%3D
>
> Any help would be appreciated.
>
> Thanks.
>