昔からプラモデルは説明書を読まずに組み合わせて後から絶望していました。反省が活かせていない。恥ずかしいけどまたやりそうなので備忘的に残します。 このごろAWSを久しぶりに触っているのですが、今まではCloud Watchのイベントスケジュール等でLambda ...
Working with the Microsoft Defender for Cloud Apps API using PowerShell involves making HTTP requests to interact with the API endpoints. The API allows you to manage your cloud apps and perform ...
Wrote some scripts in PowerShell using "Invoke-RestMethod" to interact with the Gemini API. This is a quick and easy way to interact with the API in the PowerShell console. If you would like to play ...
# This is the URL where you will send the authentication request to obtain an access token. $tokenEndpoint = "https://login.microsoftonline.com/$tenantId/oauth2/v2.0 ...
$pat = "_PAT_" $encodedPat = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$pat")) $body = @" { "accessToken": "_PAT_", "organizationName ...