{"info":{"_postman_id":"7ee875e1-89ae-44f1-902f-5e51f5c2fa7f","name":"MinIO Admin Examples","description":"<html><head></head><body><p>These are examples for a MinIO REST API example implementation</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1747463","collectionId":"7ee875e1-89ae-44f1-902f-5e51f5c2fa7f","publishedId":"SzzheJEs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-14T05:26:58.000Z"},"item":[{"name":"Add Server Keys","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"addKeys\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"4e8accc6-0a5e-410d-8185-122238ca3d0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=addKeys&endpoint=http://130.245.177.211:9000&accessKey=xiojvasAhbaaskjdAAebhibvizocajnaewiaibeIJasdkandiaA&secret=HE3ds6cugB7G3sCCLQeFnvgLDhB6pTjdGBHDchdgLZSZJWZHpaYRptvGdfG","description":"<p><a href=\"http://130.245.177.209:9000\">http://130.245.177.209:9000</a>\n<a href=\"http://3.235.68.217:9000\">http://3.235.68.217:9000</a>\n(First one is Zeblok Datalake beta, second one is milestone)</p>\n","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"addKeys"},{"key":"endpoint","value":"http://130.245.177.211:9000"},{"key":"accessKey","value":"xiojvasAhbaaskjdAAebhibvizocajnaewiaibeIJasdkandiaA"},{"key":"secret","value":"HE3ds6cugB7G3sCCLQeFnvgLDhB6pTjdGBHDchdgLZSZJWZHpaYRptvGdfG"}],"variable":[]}},"response":[],"_postman_id":"4e8accc6-0a5e-410d-8185-122238ca3d0b"},{"name":"Add Server Keys Orig","event":[{"listen":"prerequest","script":{"id":"32436614-afbb-4551-9b05-95e9f1788207","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"addKeys\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"177952b3-3c2c-423c-b391-7ffd2af31491","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"url":"{{endpoint}}?action=addKeys&endpoint=http://130.245.177.209:9000&accessKey=lwzlJgSubYjdbGhYL87jgbwxhXSEAxdA&secret=Gc_Gj4sNAeo5zlSM56xPWa0dLpGaOUD_FtLiUydhKmOTDK15VbZeWb1wl9NwiD1t_phXodwCPDZ1_C4DC_mcAw","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"addKeys"},{"key":"endpoint","value":"http://130.245.177.209:9000"},{"key":"accessKey","value":"lwzlJgSubYjdbGhYL87jgbwxhXSEAxdA"},{"key":"secret","value":"Gc_Gj4sNAeo5zlSM56xPWa0dLpGaOUD_FtLiUydhKmOTDK15VbZeWb1wl9NwiD1t_phXodwCPDZ1_C4DC_mcAw"}],"variable":[]}},"response":[],"_postman_id":"177952b3-3c2c-423c-b391-7ffd2af31491"},{"name":"Add User","event":[{"listen":"prerequest","script":{"id":"306db58c-7d56-4005-b7e8-b6f73ea0e497","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"addUser\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"c7acdaa9-87e8-411c-b704-01f4faec0eb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=addUser&accessKey=jcarlson&secret=password321","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"addUser"},{"key":"accessKey","value":"jcarlson"},{"key":"secret","value":"password321"}],"variable":[]}},"response":[],"_postman_id":"c7acdaa9-87e8-411c-b704-01f4faec0eb9"},{"name":"List Users","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"listUsers\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"6b907030-42d2-40e2-b1e1-addd3b9cc66f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=listUsers","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"listUsers"}],"variable":[]}},"response":[],"_postman_id":"6b907030-42d2-40e2-b1e1-addd3b9cc66f"},{"name":"Get Server Info","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"getServerInfo\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"57e27dbe-9af5-48c8-be4e-bb1ab92f685d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=getServerInfo","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"getServerInfo"}],"variable":[]}},"response":[],"_postman_id":"57e27dbe-9af5-48c8-be4e-bb1ab92f685d"},{"name":"Stop Server","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"stopServer\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"86ab3c7b-0cb6-4368-b49b-3613f135aa43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=stopServer","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"stopServer"}],"variable":[]}},"response":[],"_postman_id":"86ab3c7b-0cb6-4368-b49b-3613f135aa43"},{"name":"Restart Server","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"restartServer\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"fe029b1c-ab74-499d-9009-593f09e7ef14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=restartServer","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"restartServer"}],"variable":[]}},"response":[],"_postman_id":"fe029b1c-ab74-499d-9009-593f09e7ef14"},{"name":"List Policies","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"listPolicies\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"6bc25632-a80a-451e-a84d-25b6259366ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=listPolicies","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"listPolicies"}],"variable":[]}},"response":[],"_postman_id":"6bc25632-a80a-451e-a84d-25b6259366ad"},{"name":"Set Policy","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"setPolicy\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"4c5f0765-5633-43c0-9999-e8d9888fd3bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=setPolicy&accessKey=jcarlson&policy=readwrite","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"setPolicy"},{"key":"accessKey","value":"jcarlson"},{"key":"policy","value":"readwrite"}],"variable":[]}},"response":[],"_postman_id":"4c5f0765-5633-43c0-9999-e8d9888fd3bf"},{"name":"Get User Details","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"getUser\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"6f03c6a8-83aa-47ee-aa2f-f044e8a27bad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=getUser&accessKey=jcarlson","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"getUser"},{"key":"accessKey","value":"jcarlson"}],"variable":[]}},"response":[],"_postman_id":"6f03c6a8-83aa-47ee-aa2f-f044e8a27bad"},{"name":"Remove User","event":[{"listen":"prerequest","script":{"id":"306db58c-7d56-4005-b7e8-b6f73ea0e497","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"removeUser\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"c6ab99cb-d0e9-42ad-87c1-dc53e1a87f13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=removeUser&accessKey=jcarlson","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"removeUser"},{"key":"accessKey","value":"jcarlson"}],"variable":[]}},"response":[],"_postman_id":"c6ab99cb-d0e9-42ad-87c1-dc53e1a87f13"},{"name":"Add New Policy","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"addPolicy\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"bec07a22-765c-428b-87a7-3593ca591b12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=addPolicy&path=/tmp/standarduser.json","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"addPolicy"},{"key":"path","value":"/tmp/standarduser.json"}],"variable":[]}},"response":[],"_postman_id":"bec07a22-765c-428b-87a7-3593ca591b12"},{"name":"Remove Policy","event":[{"listen":"prerequest","script":{"id":"aeb020ea-2ee3-4b1f-948a-83de17c77348","exec":["// Get the action from request parameter (must match what is in params)\r","var action = \"removePolicy\";\r","\r","// Access your env variable to get secret\r","var secret = pm.environment.get(\"secret\");\r","\r","// Use the CryptoJS to calculate MD5\r","var hash = CryptoJS.MD5(secret + action).toString();\r","\r","// Set the new environment variable\r","pm.environment.set(\"authorization\", hash);"],"type":"text/javascript"}}],"id":"0e57d586-22f3-41c0-ae42-d4d0bffea8fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{endpoint}}?action=removePolicy&policy=standarduser","urlObject":{"host":["{{endpoint}}"],"query":[{"key":"action","value":"removePolicy"},{"key":"policy","value":"standarduser"}],"variable":[]}},"response":[],"_postman_id":"0e57d586-22f3-41c0-ae42-d4d0bffea8fe"}]}