<?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: Need an example for snowflake data connection via API and key-pair authentication in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/Need-an-example-for-snowflake-data-connection-via-API-and-key/m-p/2508735#M3158</link>
    <description>&lt;P&gt;Ok, so I changed a little bit the query and this appears to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "connectionProperties": {
        "allowNonSelectQueries": false,
        "authenticator": "snowflake_jwt",
        "database": "***********_PDT",
        "port": "443",
        "PRIV_KEY_FILE": [
            {
                "name" : "SNOWFLAKE_PDT.p8", 
				"value": "LS**********LS0K"
            }
        ],
        "role": "QLIK_*********_TST_R",
        "schema": "PDT",
        "server": "********.west-europe.azure.snowflakecomputing.com",
        "useBulkReader": true,
        "username": "ROBOTIC_*********_tst_cd_01_tst",
        "warehouse": "WAREHOUSE_************_PDT_XS"
    },
    "dataSourceId": "snowflake",
    "qName": "SNOWFLAKE_PDT",
    "space": "67c86133d40d37802a29fac4"
}&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 07 Mar 2025 09:01:29 GMT</pubDate>
    <dc:creator>thomasmaure</dc:creator>
    <dc:date>2025-03-07T09:01:29Z</dc:date>
    <item>
      <title>Need an example for snowflake data connection via API and key-pair authentication</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Need-an-example-for-snowflake-data-connection-via-API-and-key/m-p/2508725#M3157</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to create via REST API a data connection to snowflake with Key-pair authentication.&amp;nbsp;&lt;BR /&gt;however I am struggling with the&amp;nbsp;&lt;SPAN&gt;"PRIV_KEY_FILE" property .&amp;nbsp;&lt;BR /&gt;I am using&amp;nbsp;&lt;BR /&gt;&lt;A href="https://qlik.dev/apis/rest/data-connections/#post-v1-data-connections" target="_blank"&gt;https://qlik.dev/apis/rest/data-connections/#post-v1-data-connections&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;with qlik cli&amp;nbsp;&lt;BR /&gt;qlik raw post --body &amp;lt;body&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Where &amp;lt;body&amp;gt; =&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
"connectionProperties": {
"allowNonSelectQueries": false,
"authenticator": "snowflake_jwt",
"database": "***********_PDT",
"port": "443",
"PRIV_KEY_FILE": [ { "SNOWFLAKE_PDT.p8": "LS**********LS0K" }],
"role": "QLIK_*********_TST_R",
"schema": "PDT",
"server": "********.west-europe.azure.snowflakecomputing.com",
"useBulkReader": true,
"username": "ROBOTIC_*********_tst_cd_01_tst",
"warehouse": "WAREHOUSE_************_PDT_XS"
},
"dataSourceId": "snowflake",
"qName": "SNOWFLAKE_PDT",
"space": "67c86133d40d37802a29fac4"
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The error returned is :&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;   {
      "code": "DCERROR-0071",
      "title": "Other external dependency request error",
      "status": 424,
      "detail": "dcaas API call 'POST /v1/data-sources/actions/generate-connection-string' failed with code: 400",
      "meta": [
        {
          "code": "DCAAS-2004",
          "title": "Unsuccessful command execution",
          "status": 400,
          "detail": "",
          "meta": {
            "description": "Command 'testConnection' exection was not successful",
            "detail": "ERROR [28000] [Qlik][DSI] (20032) Required setting 'PRIV_KEY_FILE' is not present in the connection settings.",
            "message": "Error message:\r\nPlease check the values for Username‚ Password‚ Host and other properties. Description: Access credentials are not valid for this connection."
          }
        }
      ]
    }
  ],
  "traceId": "d0009b14956e0060cdc6f3263f65f4e6"
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;So I imagine the format for the PRIV_KEY_FILE property is not correct but I cannot find any example in the doc.&lt;BR /&gt;&lt;BR /&gt;Could someone please help me with this parameter by providing me the correct syntax ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thomas&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 21:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Need-an-example-for-snowflake-data-connection-via-API-and-key/m-p/2508725#M3157</guid>
      <dc:creator>thomasmaure</dc:creator>
      <dc:date>2025-03-19T21:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need an example for snowflake data connection via API and key-pair authentication</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Need-an-example-for-snowflake-data-connection-via-API-and-key/m-p/2508735#M3158</link>
      <description>&lt;P&gt;Ok, so I changed a little bit the query and this appears to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "connectionProperties": {
        "allowNonSelectQueries": false,
        "authenticator": "snowflake_jwt",
        "database": "***********_PDT",
        "port": "443",
        "PRIV_KEY_FILE": [
            {
                "name" : "SNOWFLAKE_PDT.p8", 
				"value": "LS**********LS0K"
            }
        ],
        "role": "QLIK_*********_TST_R",
        "schema": "PDT",
        "server": "********.west-europe.azure.snowflakecomputing.com",
        "useBulkReader": true,
        "username": "ROBOTIC_*********_tst_cd_01_tst",
        "warehouse": "WAREHOUSE_************_PDT_XS"
    },
    "dataSourceId": "snowflake",
    "qName": "SNOWFLAKE_PDT",
    "space": "67c86133d40d37802a29fac4"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Need-an-example-for-snowflake-data-connection-via-API-and-key/m-p/2508735#M3158</guid>
      <dc:creator>thomasmaure</dc:creator>
      <dc:date>2025-03-07T09:01:29Z</dc:date>
    </item>
  </channel>
</rss>

