Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sec.credentialsSetAzure

sec.credentialsSetAzure(
   storage-account as String,
   storage-key as String
) as null

Summary

Sets the Azure storage account name and access key. These are used when accessing files on Microsoft Azure Blob storage. If you set both $storage-account and $storage-key to the empty string, then the credentials are deleted from the security database.

Parameters
storage-account An Azure storage account name.
storage-key An Azure storage access key.

Required Privileges

http://marklogic.com/xdmp/privileges/credentials-set-azure

Example


    // execute this against the security database
    declareUpdate();
    const sec = require('/MarkLogic/security.xqy');

    sec.credentialsSetAzure("myaccount","mykey");
      

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.