<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I know the active nodes of the system using QRS API REST? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1517590#M9648</link>
    <description>Thank you for sharing, great post!</description>
    <pubDate>Thu, 06 Dec 2018 18:59:49 GMT</pubDate>
    <dc:creator>gsp</dc:creator>
    <dc:date>2018-12-06T18:59:49Z</dc:date>
    <item>
      <title>How can I know the active nodes of the system using QRS API REST?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1515872#M9619</link>
      <description>&lt;P&gt;How can I know the real nodes that the system is using at any given moment?&lt;BR /&gt;I made a call to QRS using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://host:4242/qrs/virtualproxyconfig?xrfkey=9251596621723463&lt;/PRE&gt;&lt;P&gt;And I get the installed virtual proxies perfectly and their relationship with the nodes for the load balance distributed among the 4 existing nodes, but at 5:30 PM two (2) nodes are turned off to save resources and when making the request again, the data remain the same.&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp;I tried using the endpoint&lt;/P&gt;&lt;PRE&gt;https://host:4242/qrs/engineservice/count?xrfkey=9251596621723463&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;and gives me 4 engines when I expected to return only the 2 that are on.&amp;nbsp;Please, if someone could help me, I am very grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1515872#M9619</guid>
      <dc:creator>tony_empiredev</dc:creator>
      <dc:date>2024-11-16T07:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know the active nodes of the system using QRS API REST?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1515898#M9621</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56733"&gt;@tony_empiredev&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;For the high level schema:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;GET&amp;nbsp;/qrs/virtualproxyconfig/0722cc73-738d-4ba2-a5f4-001590de57e8&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Sample Response:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "id": "0722cc73-738d-4ba2-a5f4-001590de57e8",
  "createdDate": "2017-05-06T00:54:59.921Z",
  "modifiedDate": "2018-10-11T12:20:46.36Z",
  "modifiedByUserName": "DOMAIN\\USERID",
  "customProperties": [],
  "prefix": "",
  "description": "Central Proxy (Default)",
  "authenticationModuleRedirectUri": "",
  "sessionModuleBaseUri": "",
  "loadBalancingModuleBaseUri": "",
  "useStickyLoadBalancing": false,
  "loadBalancingServerNodes": [
    {
      "id": "f206bf30-1e5c-498a-8f73-f1f9e2120863",
      "name": "Central",
      "hostName": "sense.company.com",
      "roles": [
        {
          "id": "265c41c5-ee84-4435-9ae1-9ae556aa6cb0",
          "definition": 3,
          "privileges": null
        },
        {
          "id": "4b52e61b-2020-41fd-b1c8-446c8cfd9d59",
          "definition": 4,
          "privileges": null
        },
        {
          "id": "5238fa48-522b-48e9-9fd0-962b164ade1b",
          "definition": 1,
          "privileges": null
        },
        {
          "id": "ba2e555b-8ed1-4151-9914-da0472af7521",
          "definition": 0,
          "privileges": null
        },
        {
          "id": "d5700278-4c37-4f4e-a397-65a196556c5e",
          "definition": 5,
          "privileges": null
        },
        {
          "id": "f34481f5-cb50-4d81-9799-5be829df7a3c",
          "definition": 2,
          "privileges": null
        }
      ],
      "serviceCluster": {
        "id": "e0c584b4-0cb9-4d52-8112-27651e855ae8",
        "name": "ServiceCluster",
        "privileges": null
      },
      "privileges": null
    }
  ],
  "authenticationMethod": 0,
  "headerAuthenticationMode": 0,
  "headerAuthenticationHeaderName": "",
  "headerAuthenticationStaticUserDirectory": "",
  "headerAuthenticationDynamicUserDirectory": "",
  "anonymousAccessMode": 0,
  "windowsAuthenticationEnabledDevicePattern": "Windows",
  "sessionCookieHeaderName": "X-Qlik-Session-win",
  "sessionCookieDomain": "",
  "additionalResponseHeaders": "",
  "sessionInactivityTimeout": 71582,
  "extendedSecurityEnvironment": false,
  "websocketCrossOriginWhiteList": [
    "levi.qlik.com",
    "view"
  ],
  "defaultVirtualProxy": true,
  "tags": [],
  "samlMetadataIdP": "",
  "samlHostUri": "",
  "samlEntityId": "",
  "samlAttributeUserId": "",
  "samlAttributeUserDirectory": "",
  "samlAttributeSigningAlgorithm": 0,
  "samlAttributeMap": [],
  "jwtAttributeUserId": null,
  "jwtAttributeUserDirectory": null,
  "jwtPublicKeyCertificate": null,
  "jwtAttributeMap": [],
  "magicLinkHostUri": "https://sense.company.com",
  "magicLinkFriendlyName": "LTU",
  "samlSlo": false,
  "privileges": null,
  "schemaPath": "VirtualProxyConfig"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this, we can see a&amp;nbsp;loadBalancingServerNodes &amp;gt; id (f206bf30-1e5c-498a-8f73-f1f9e2120863). With this ID (or set of IDs) to keep a focus on, we call&amp;nbsp;&lt;FONT face="courier new,courier"&gt; GET/qrs/servicestatus/full&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Sample Response:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[
  {
    "id": "cc4cbb9b-5461-4a5f-9f0c-09515368986e",
    "createdDate": "2017-05-06T00:55:21.402Z",
    "modifiedDate": "2018-12-03T12:49:12.061Z",
    "modifiedByUserName": "INTERNAL\\sa_repository",
    "serverNodeConfiguration": {
      "id": "f206bf30-1e5c-498a-8f73-f1f9e2120863",
      "name": "Central",
      "hostName": "sense.company.com",
      "roles": [
        {
          "id": "265c41c5-ee84-4435-9ae1-9ae556aa6cb0",
          "definition": 3,
          "privileges": null
        },
        {
          "id": "4b52e61b-2020-41fd-b1c8-446c8cfd9d59",
          "definition": 4,
          "privileges": null
        },
        {
          "id": "5238fa48-522b-48e9-9fd0-962b164ade1b",
          "definition": 1,
          "privileges": null
        },
        {
          "id": "ba2e555b-8ed1-4151-9914-da0472af7521",
          "definition": 0,
          "privileges": null
        },
        {
          "id": "d5700278-4c37-4f4e-a397-65a196556c5e",
          "definition": 5,
          "privileges": null
        },
        {
          "id": "f34481f5-cb50-4d81-9799-5be829df7a3c",
          "definition": 2,
          "privileges": null
        }
      ],
      "serviceCluster": {
        "id": "e0c584b4-0cb9-4d52-8112-27651e855ae8",
        "name": "ServiceCluster",
        "privileges": null
      },
      "privileges": null
    },
    "serviceType": 0,
    "serviceState": 2,
    "timestamp": "2018-12-03T12:49:12.045Z",
    "privileges": null,
    "schemaPath": "ServiceStatus"
  },
  {
    "id": "e55fe86c-ceed-4680-bd71-fc95b5cfab52",
    "createdDate": "2017-05-06T00:55:35.987Z",
    "modifiedDate": "2018-12-03T12:49:32.159Z",
    "modifiedByUserName": "INTERNAL\\sa_repository",
    "serverNodeConfiguration": {
      "id": "f206bf30-1e5c-498a-8f73-f1f9e2120863",
      "name": "Central",
      "hostName": "sense.company.com",
      "roles": [
        {
          "id": "265c41c5-ee84-4435-9ae1-9ae556aa6cb0",
          "definition": 3,
          "privileges": null
        },
        {
          "id": "4b52e61b-2020-41fd-b1c8-446c8cfd9d59",
          "definition": 4,
          "privileges": null
        },
        {
          "id": "5238fa48-522b-48e9-9fd0-962b164ade1b",
          "definition": 1,
          "privileges": null
        },
        {
          "id": "ba2e555b-8ed1-4151-9914-da0472af7521",
          "definition": 0,
          "privileges": null
        },
        {
          "id": "d5700278-4c37-4f4e-a397-65a196556c5e",
          "definition": 5,
          "privileges": null
        },
        {
          "id": "f34481f5-cb50-4d81-9799-5be829df7a3c",
          "definition": 2,
          "privileges": null
        }
      ],
      "serviceCluster": {
        "id": "e0c584b4-0cb9-4d52-8112-27651e855ae8",
        "name": "ServiceCluster",
        "privileges": null
      },
      "privileges": null
    },
    "serviceType": 3,
    "serviceState": 2,
    "timestamp": "2018-12-03T12:49:32.128Z",
    "privileges": null,
    "schemaPath": "ServiceStatus"
  },
  {
    "id": "5662a64b-0259-43a2-bc7f-c2a30cb0ab3f",
    "createdDate": "2017-05-06T00:56:21.11Z",
    "modifiedDate": "2018-12-03T12:49:32.189Z",
    "modifiedByUserName": "INTERNAL\\sa_repository",
    "serverNodeConfiguration": {
      "id": "f206bf30-1e5c-498a-8f73-f1f9e2120863",
      "name": "Central",
      "hostName": "sense.company.com",
      "roles": [
        {
          "id": "265c41c5-ee84-4435-9ae1-9ae556aa6cb0",
          "definition": 3,
          "privileges": null
        },
        {
          "id": "4b52e61b-2020-41fd-b1c8-446c8cfd9d59",
          "definition": 4,
          "privileges": null
        },
        {
          "id": "5238fa48-522b-48e9-9fd0-962b164ade1b",
          "definition": 1,
          "privileges": null
        },
        {
          "id": "ba2e555b-8ed1-4151-9914-da0472af7521",
          "definition": 0,
          "privileges": null
        },
        {
          "id": "d5700278-4c37-4f4e-a397-65a196556c5e",
          "definition": 5,
          "privileges": null
        },
        {
          "id": "f34481f5-cb50-4d81-9799-5be829df7a3c",
          "definition": 2,
          "privileges": null
        }
      ],
      "serviceCluster": {
        "id": "e0c584b4-0cb9-4d52-8112-27651e855ae8",
        "name": "ServiceCluster",
        "privileges": null
      },
      "privileges": null
    },
    "serviceType": 2,
    "serviceState": 2,
    "timestamp": "2018-12-03T12:49:32.165Z",
    "privileges": null,
    "schemaPath": "ServiceStatus"
  },
  {
    "id": "9cbfee9e-e7a0-44f6-87b8-6d17d7977369",
    "createdDate": "2017-05-06T00:55:36.065Z",
    "modifiedDate": "2018-12-03T12:49:32.224Z",
    "modifiedByUserName": "INTERNAL\\sa_repository",
    "serverNodeConfiguration": {
      "id": "f206bf30-1e5c-498a-8f73-f1f9e2120863",
      "name": "Central",
      "hostName": "sense.company.com",
      "roles": [
        {
          "id": "265c41c5-ee84-4435-9ae1-9ae556aa6cb0",
          "definition": 3,
          "privileges": null
        },
        {
          "id": "4b52e61b-2020-41fd-b1c8-446c8cfd9d59",
          "definition": 4,
          "privileges": null
        },
        {
          "id": "5238fa48-522b-48e9-9fd0-962b164ade1b",
          "definition": 1,
          "privileges": null
        },
        {
          "id": "ba2e555b-8ed1-4151-9914-da0472af7521",
          "definition": 0,
          "privileges": null
        },
        {
          "id": "d5700278-4c37-4f4e-a397-65a196556c5e",
          "definition": 5,
          "privileges": null
        },
        {
          "id": "f34481f5-cb50-4d81-9799-5be829df7a3c",
          "definition": 2,
          "privileges": null
        }
      ],
      "serviceCluster": {
        "id": "e0c584b4-0cb9-4d52-8112-27651e855ae8",
        "name": "ServiceCluster",
        "privileges": null
      },
      "privileges": null
    },
    "serviceType": 1,
    "serviceState": 2,
    "timestamp": "2018-12-03T12:49:32.209Z",
    "privileges": null,
    "schemaPath": "ServiceStatus"
  },
  {
    "id": "6f6b6254-6729-421f-8c78-b8760cbe3c9f",
    "createdDate": "2017-05-06T00:55:38.231Z",
    "modifiedDate": "2018-12-03T12:49:32.827Z",
    "modifiedByUserName": "INTERNAL\\sa_repository",
    "serverNodeConfiguration": {
      "id": "f206bf30-1e5c-498a-8f73-f1f9e2120863",
      "name": "Central",
      "hostName": "sense.company.com",
      "roles": [
        {
          "id": "265c41c5-ee84-4435-9ae1-9ae556aa6cb0",
          "definition": 3,
          "privileges": null
        },
        {
          "id": "4b52e61b-2020-41fd-b1c8-446c8cfd9d59",
          "definition": 4,
          "privileges": null
        },
        {
          "id": "5238fa48-522b-48e9-9fd0-962b164ade1b",
          "definition": 1,
          "privileges": null
        },
        {
          "id": "ba2e555b-8ed1-4151-9914-da0472af7521",
          "definition": 0,
          "privileges": null
        },
        {
          "id": "d5700278-4c37-4f4e-a397-65a196556c5e",
          "definition": 5,
          "privileges": null
        },
        {
          "id": "f34481f5-cb50-4d81-9799-5be829df7a3c",
          "definition": 2,
          "privileges": null
        }
      ],
      "serviceCluster": {
        "id": "e0c584b4-0cb9-4d52-8112-27651e855ae8",
        "name": "ServiceCluster",
        "privileges": null
      },
      "privileges": null
    },
    "serviceType": 5,
    "serviceState": 2,
    "timestamp": "2018-12-03T12:49:32.811Z",
    "privileges": null,
    "schemaPath": "ServiceStatus"
  }
]&lt;/PRE&gt;
&lt;P&gt;In the response, we see two elements which we need to take note of:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;serviceType&lt;/LI&gt;
&lt;LI&gt;serviceState&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To get the enum mapping, call &lt;FONT face="courier new,courier"&gt;GET&amp;nbsp;/qrs/about/openapi/main&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Abridged response:&lt;/P&gt;
&lt;PRE&gt;"serverNodeConfiguration": {
  "$ref": "#/definitions/ServerNodeConfigurationCondensed"
},
"serviceType": {
  "type": "integer",
  "enum": [
    0,
    1,
    2,
    3,
    4,
    5
  ],
  "x-enumNames": [
    "Repository",
    "Proxy",
    "Scheduler",
    "Engine",
    "AppMigration",
    "Printing"
  ]
},
"serviceState": {
  "type": "integer",
  "enum": [
    0,
    1,
    2,
    3,
    4,
    5
  ],
  "x-enumNames": [
    "Initializing",
    "CertificatesNotInstalled",
    "Running",
    "NoCommunication",
    "Disabled",
    "Unknown"
  ]
}...&lt;/PRE&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 01:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1515898#M9621</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2018-12-04T01:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know the active nodes of the system using QRS API REST?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1516430#M9634</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47469"&gt;@Levi_Turner&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks very much, w&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;ith your answer, you can change the script and I hope it works.&lt;/SPAN&gt; &lt;SPAN class=""&gt;Once tested,&amp;nbsp; I will mark your answer as an accepted solution.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I'm going to post another very interesting question about the tasks, maybe you can help me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 18:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1516430#M9634</guid>
      <dc:creator>tony_empiredev</dc:creator>
      <dc:date>2018-12-04T18:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know the active nodes of the system using QRS API REST?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1516485#M9636</link>
      <description>&lt;P&gt;Sounds good. If I don't see it do&amp;nbsp;@ me.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1516485#M9636</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2018-12-04T21:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I know the active nodes of the system using QRS API REST?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1517590#M9648</link>
      <description>Thank you for sharing, great post!</description>
      <pubDate>Thu, 06 Dec 2018 18:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-know-the-active-nodes-of-the-system-using-QRS-API-REST/m-p/1517590#M9648</guid>
      <dc:creator>gsp</dc:creator>
      <dc:date>2018-12-06T18:59:49Z</dc:date>
    </item>
  </channel>
</rss>

