ID returned in wrong format #3
-
I am not using this software in particular, but just extracting data through the API with PowerShell. Any idea what to do? This is my query: $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" Invoke-WebRequest 'https://api.ui.com/ea/hosts' -Method 'GET' -Headers $headers -SessionVariable session |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
@gammelgaard52 Ik think the pattern here is that these lowercase id's (UUIDs) are used for software-based controllers and the uppercase ones for UniFi OS-based consoles (CloudKeys, UDM's etc.) although there are a few exceptions to that rule. It looks as if only the uppercase host id types are accepted as filter in the devices list. Can you confirm? |
Beta Was this translation helpful? Give feedback.
-
Maybe something to ask on the UI Community with the "Site Manager" tag? Make sure to mention the UI-Team as well. |
Beta Was this translation helpful? Give feedback.
-
This is what I get when I run the invoke-webrequest. As you can see, the ID seems to me to be in the wrong format. |
Beta Was this translation helpful? Give feedback.
The ID is okay to not look like the example at UI API documentation.