<h2>How to execute AWS & Azure REST APIs using Postman</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><h3>Azure</h3> <ol style="list-style-position: inside;"><li><a title="Download and install Postman" href="https://www.getpostman.com/apps">Download and install Postman</a> (postman.com)</li><li><a title="Click Here to download the Azure Postman collection" href="https://app.getpostman.com/run-collection/8088015fa8e6df7d59ed#?env%5BAzure%20REST%5D=W3siZW5hYmxlZCI6dHJ1ZSwia2V5IjoidGVuYW50SWQiLCJ2YWx1ZSI6IiJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoiY2xpZW50SWQiLCJ2YWx1ZSI6IiJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5IjoiY2xpZW50U2VjcmV0IiwidmFsdWUiOiIifSx7ImVuYWJsZWQiOnRydWUsImtleSI6InJlc291cmNlIiwidmFsdWUiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tLyJ9LHsiZW5hYmxlZCI6dHJ1ZSwia2V5Ijoic3Vic2NyaXB0aW9uSWQiLCJ2YWx1ZSI6IiJ9LHsia2V5IjoiYWN0aW9uIiwidmFsdWUiOiIiLCJkZXNjcmlwdGlvbiI6IiIsInR5cGUiOiJ0ZXh0IiwiZW5hYmxlZCI6dHJ1ZX1d">Click Here to download the Azure Postman collection</a> (getpostman.com)</li><li>Make sure you are in the "Azure REST" environment, then select "Manage Environment" with the settings cog<br /><br /><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=16a844d9db01c150a538826305961900" width="966" height="202" align="baseline" border="1" /></li><li>Set your environment variables in the "Current Value" column:<br /><br /><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=dea844d9db01c150a538826305961901" width="408" height="398" align="baseline" border="1" /></li><li>Variables:<br /> <ol><li>tenantId: Azure Dashboard > Azure Active Directory > Manage/Properties > Copy "Directory ID"</li><li>clientId: Azure Dashboard > Azure Active Directory > App Registrations > Select/Create > Copy "Application ID"</li><li>clientSecret: Select App Registration > Settings > Keys > Create new "Passwords" > Copy Secret Key "Value"</li><li>subscriptionId: Azure Dashboard > Subscriptions > Select > Overview > Copy "Subscription ID"</li><li>action: API call that you wish to make (e.g: resourceGroups?api-version=2014-04-01)</li></ol> </li><li>If done correctly, you should be able to execute the "Get AAD Token" step in order to obtain the Bearer token for authentication for API calls. You can now execute the "Azure REST API Request" action and receive a response from Azure<br /><br /><img style="align: baseline;" title="" src="sys_attachment.do?sys_id=9aa844d9db01c150a538826305961903" alt="" width="934" height="374" align="baseline" border="" hspace="" vspace="" /><br /><br /></li><li>Note that some modifications may be necessary (such as the HTTP action or the URL) in order to make specific API requests. You can defer to the "Azure Resource Explorer" (link in Additional Info) for further details on how the API call should be formatted.</li></ol> <h3>AWS</h3> <ol style="list-style-position: inside;"><li><a title="Download and install Postman" href="https://www.getpostman.com/apps">Download and install Postman</a></li><li><a title="Click Here to download the AWS Postman collection" href="https://app.getpostman.com/run-collection/62b7df2540c21664612b#?env%5BAWS%20REST%5D=W3sia2V5IjoiYWNjZXNzS2V5IiwidmFsdWUiOiIiLCJkZXNjcmlwdGlvbiI6IiIsImVuYWJsZWQiOnRydWV9LHsia2V5Ijoic2VjcmV0S2V5IiwidmFsdWUiOiIiLCJkZXNjcmlwdGlvbiI6IiIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udGVudFR5cGUiLCJ2YWx1ZSI6ImFwcGxpY2F0aW9uL2pzb24iLCJkZXNjcmlwdGlvbiI6IiIsImVuYWJsZWQiOnRydWV9LHsia2V5Ijoic2VydmljZSIsInZhbHVlIjoiIiwiZGVzY3JpcHRpb24iOiIiLCJlbmFibGVkIjp0cnVlfSx7ImtleSI6InJlZ2lvbiIsInZhbHVlIjoiIiwiZGVzY3JpcHRpb24iOiIiLCJlbmFibGVkIjp0cnVlfSx7ImtleSI6InZlcnNpb24iLCJ2YWx1ZSI6IiZWZXJzaW9uPTIwMTYtMTEtMTUiLCJkZXNjcmlwdGlvbiI6IiIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiYWN0aW9uIiwidmFsdWUiOiIiLCJkZXNjcmlwdGlvbiI6IiIsImVuYWJsZWQiOnRydWV9XQ==">Click Here to download the AWS Postman collection</a></li><li>Make sure you are in the "AWS REST" environment, then select "Manage Environment" with the Settings cog<br /><br /><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=c2a804d9db01c150a53882630596198a" width="907" height="218" align="baseline" border="1" /><br /><br /></li><li>Set your environment variables in the "Current Value" column<br /><br /><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=9ea804d9db01c150a5388263059619fc" width="410" height="466" align="baseline" border="1" /></li><li>Variables<br /> <ol><li>accessKey: Programmatic API access key from configured IAM user</li><li>secretKey: Programmatic API secret key from configured IAM user</li><li>contentType: Generic JSON format since Postman's default value will cause errors</li><li>service: Name of the AWS API service you're attempting to query</li><li>region: Optional. Specific region for the query, if desired</li><li>version: Enforce versioning for V4 signing protocol, which is what Postman will be using for authentication</li><li>action: API call you're wanting to make</li></ol> </li><li>If done correctly, after filling out these variables you should be able to get a response by clicking "Send"<br /><br /><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=5aa804d9db01c150a5388263059619fe" width="948" height="574" align="baseline" border="1" /><br /><br /></li><li>Note that you may need to change the HTTP request type (GET, POST, PUT) depending on the desired API call. You may also need to modify the URL to accommodate additional requirements depending on the API call (e.g: Buckets for S3 requests). You can reference the API guides in Additional Information for more details on how the API call should be formatted.</li></ol></section></div><div ><h3 >Related Links</h3><section><ul style="list-style-position: inside;"><li><a title="AWS Service Names" href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces">AWS Service Names</a> </li><li><a title="AWS API Reference" href="https://docs.aws.amazon.com/index.html#lang/en_us">AWS API Reference</a> </li><li><a title="Azure REST API Browser" href="https://docs.microsoft.com/en-us/rest/api/?view=Azure">Azure REST API Browser</a></li><li><a title="Azure Resource Explorer" href="https://resources.azure.com/">Azure Resource Explorer</a> (See the REST API responses made from/by Azure, for a better understanding of proper query format)</li></ul></section></div></article></div>