Created
January 21, 2025 13:12
-
-
Save azurekid/23d0683339fbefd1963e59cf60267ab6 to your computer and use it in GitHub Desktop.
Security Copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession | |
$session.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0" | |
Invoke-WebRequest -UseBasicParsing -Uri "https://api.securityplatform.microsoft.com/account/capacities?api-version=2023-12-01-preview" ` | |
-WebSession $session ` | |
-Headers @{ | |
"authority"="api.securityplatform.microsoft.com" | |
"method"="GET" | |
"path"="/account/capacities?api-version=2023-12-01-preview" | |
"scheme"="https" | |
"accept"="application/json" | |
"accept-encoding"="gzip, deflate, br, zstd" | |
"accept-language"="en-US,en;q=0.9,nl;q=0.8" | |
"authorization"="Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IllUY2VPNUlKeXlxUjZqekRTNWlBYnBlNDJKdyIsImtpZ" | |
"origin"="https://securitycopilot.microsoft.com" | |
"priority"="u=1, i" | |
"sec-ch-ua"="`"Microsoft Edge`";v=`"131`", `"Chromium`";v=`"131`", `"Not_A Brand`";v=`"24`"" | |
"sec-ch-ua-mobile"="?0" | |
"sec-ch-ua-platform"="`"Windows`"" | |
"sec-fetch-dest"="empty" | |
"sec-fetch-mode"="cors" | |
"sec-fetch-site"="same-site" | |
"traceparent"="00-325ef32a225d457caab60a2d3b433e53-1fd588d5c2eb4070-01" | |
"x-edge-shopping-flag"="1" | |
} ` | |
-ContentType "application/json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://api.securityplatform.microsoft.com/account/workspaces?api-version=2023-12-01-preview