Loading TOC...

MarkLogic 10 Product Documentation
sec:credentials-set-azure

sec:credentials-set-azure(
   $storage-account as xs:string,
   $storage-key as xs:string
) as empty-sequence()

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")
       

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