'Azure key vault - Authorization header

I'm trying to use the API below to get access to a key vault. https://docs.microsoft.com/en-us/rest/api/keyvault/keyvault/vaults/get When I try to run this API in Alteryx, it asks for a authorization header. I'm not sure what information I need to provide in this authorization header in order to get access to the specific key vault. Can someone please share some knowledge on this?

enter image description here

Thanks



Solution 1:[1]

Azure Key Vault describes its request authentication in the Authentication section of this Authentication, requests and responses documentation:

Access tokens must be sent to the service using the HTTP Authorization header:

PUT /keys/MYKEY?api-version=<api_version>  HTTP/1.1  
Authorization: Bearer <access_token>

The access token is a token string that can be obtained via OAuth2 authentication. An easy way to obtain access tokens for Azure resources in Python is with the azure-identity library, which can be used with the azure-mgmt-keyvault library to make the request you're describing here.

If you'd like to use plain REST requests instead, access tokens are described thoroughly in this Microsoft identity platform access tokens documentation.

Disclaimer: I work with the Azure SDK for Python.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 McCoy PatiƱo