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 :)
  xquery version "1.0-ml"; 

  import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

  sec:credentials-set-azure("myaccount","mykey")
       
Powered by MarkLogic Server | Terms of Use | Privacy Policy