Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec:credentials-set-aws

sec:credentials-set-aws(
   $access-key as xs:string,
   $secret-key as xs:string,
   [$session-token as xs:string]
) as empty-sequence()

Summary

Sets the Amazon Web Services credentials. Thse are used when accessing files on the simple storage service. If you set both $access-key and $secret-key to the empty string, then the credentials are deleted from the security database.

Parameters
access-key An Amazon Web Services access key.
secret-key An Amazon Web Services secret key.
session-token An Amazon Web Services session token.

Required Privileges

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

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-aws("myaccesskey","mysecretkey")
       

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