openAPI endpoints for application control
Hello,
Could somebody tell me what are the endpoints for openAPIs for application control?
I can use successfully other openapi APIs but it looks like the document is incorrect.
For example:
https://use1-omada-northbound.tplinkcloud.com/doc.html#/00%20All/Application%20Control/getApplicationControlStatus
I receive a 404 error.
try {
>> $appControlStatusUrl = "$OMADA_URL/openapi/v1/$OMADA_ID/sites/$SITE_ID/applicationControl/status"
>> $appControlStatusHeaders = @{
>> "Content-Type" = "application/json"
>> "Authorization" = "AccessToken=$ACCESSTOKEN"
>> }
>> $appControlStatusResponse = Invoke-RestMethod -Uri $appControlStatusUrl -Method Get -Headers $appControlStatusHeaders -WebSession $session -UseBasicParsing
>> Write-Output ($appControlStatusResponse | ConvertTo-Json -Depth 10)
>> } catch {
>> Write-Error "Failed to get application Control status: $_"
>> }
try {
$appControlStatusUrl = "$OMADA_URL/openapi/v1/$OMADA_ID/sites/$SITE_ID/applicationControl/status"
$appControlStatusHeaders = @{
"Content-Type" = "application/json"
"Authorization" = "AccessToken=$ACCESSTOKEN"
}
$appControlStatusResponse = Invoke-RestMethod -Uri $appControlStatusUrl -Method Get -Headers $appControlStatusHeaders -WebSession $session -UseBasicParsing
Write-Output ($appControlStatusResponse | ConvertTo-Json -Depth 10)
} catch {
Write-Error "Failed to get application Control status: $_"
} : Failed to get application Control status: The remote server returned an error: (404) Not Found.
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException