Api: Wincc Rest

| Method | Endpoint | Description | |--------|------------------------------|-------------------------------------------| | GET | /tags | List all tags (paginated) | | GET | /tags/<name> | Read single tag value | | POST | /tags/read | Batch read multiple tags | | POST | /tags/write | Write one or more tags | | GET | /alarms/active | Get current active alarms | | GET | /alarms/history | Query alarm log (with filters) | | POST | /alarms/acknowledge | Acknowledge an alarm by ID | | GET | /archives/<tag>/values | Historical values over time range | | GET | /status | WinCC runtime status (running/stopped) | Request (Write tag TankLevel to 75.5):

$cred = Get-Credential $body = @tags=@("Tag1","Tag2") | ConvertTo-Json Invoke-RestMethod -Uri "https://wincc:50051/api/v1/tags/read" -Method Post -Body $body -Credential $cred -ContentType "application/json" wincc rest api

"success": true, "timestamp": "2025-03-15T14:32:10Z", "results": "TankLevel": "value": 75.5, "quality": "good" "results": "TankLevel": "value": 75.5