sec.credentialsSetAzure( storage-account as String, storage-key as String ) as null
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. |
http://marklogic.com/xdmp/privileges/credentials-set-azure
// execute this against the security database declareUpdate(); const sec = require('/MarkLogic/security.xqy'); sec.credentialsSetAzure("myaccount","mykey");