Jump to content
Welcome to our new Citrix community!
  • 0

API for launching apps desktops on citrix cloud

Daniel Winkler1709162548


Is there an API available for launching an APP or Desktop via citrix cloud ?  (HTML5 or ICA)

For onprem/storefront installations there is a REST API available which we did not achieved to get it working for citrix cloud:


javascript code sample:
                            url: 'GatewayAuth/Login',
                            dataType: 'xml',
                            data: {},
                            success: function (xmlData) {
                                var $loginXml = $(xmlData);
                                var result = $loginXml.find('Result').text();
                                if (result == 'success') {
                                        url: 'Resources/List',
                                        success: function (resData) {
                                            try {
                                                var resourcesData = resData.resources;
                                                var jResData = JSON.stringify(resourcesData);
                                                //if (resourcesData != null)
                                                //    $("#ResourceList").html(jResData);
                                            } catch (ex) {
                                        error: function (qXHR_jqXHR, String_textStatus, String_errorThrown) {
                                } else {
                            error: function (qXHR_jqXHR, String_textStatus, String_errorThrown) {


    function ajaxWrapper(options) {
        var defaultOptions = {
            type: 'POST',
            dataType: 'json',
            traditional: true,
            //async: false,
            beforeSend: function (jqXHR) {
                var csrfToken = getCookie('CsrfToken');
                if (csrfToken != null) {
                    jqXHR.setRequestHeader("Csrf-Token", csrfToken);
                var isUsingHttps = location.protocol.toLowerCase() == "https:" ? "Yes" : "No";
                jqXHR.setRequestHeader("X-Citrix-IsUsingHTTPS", isUsingHttps);
            success: function (msg) {
                //var parseMsg = msg.e;
            error: function (ex) {
                displayError(ex.message, "ajaxWrapper failed");
                console.log('Ajax error accessing URL: ' + options.url);
                console.log('Ajax error details: ' + ex.message);

        options = $.extend({}, defaultOptions, options);

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...