MicrosoftDocs / CloudAppSecurityDocs

Public repo for CloudAppSecurityDocs-pr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curl Command incorrect

Spen789 opened this issue · comments

Curl command incorrect
curl -XGET -H "Authorization:Token <your_token_key>" "https://<tenant_id>.<tenant_region>.contoso.com/api/discovery_block_scripts/?format=102&type=banned"
should be

curl -XGET -H "Authorization:Bearer <your_token_key>" "https://<tenant_id>.<tenant_region>.contoso.com/api/discovery_block_scripts/?format=102&type=banned"

also if running command from PowerShell use curl.exe not just curl

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Thank you for your comment. We'll investigate and get back to you.

Hi @Spen789,
Our team has confirmed that we support both token and bearer options.
When you use "Token", you'll need to provide the API token you produced in the portal, in the API Token tab.
When you use "Bearer" you need to provide the token you produced through AAD graph.

Please confirm whether this helps with your issue, and we can clarify this in an upcoming fix.
Thanks for contributing to docs!

We haven't heard back from you, so we will now close this issue. If this remains an issue, please reply and we will gladly continue the discussion.
#please-close