You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$hash=@{
"aggregations"=@(@{"fieldName"="sumBytesTx"
"fieldNames"="sumBytesTx"
"name"="traffic"
type="longSum"})
"dataSource"="ucs_ether_port_stat"
"dimension"="deviceId"
"granularity"="all"
"intervals"= "2023-08-15T17:23:40+00:00/2023-08-22T17:23:40+00:00"
"metric"="traffic"
"postAggregations"=@()
"queryType"="topN"
"threshold"=100
}
New-IntersightManagedObject -ObjectType telemetry.TimeSeries -AdditionalProperties $hash
New-IntersightManagedObject: The remote server returned an error: (403) Forbidden.
{"code":"InvalidUrl","message":"Operation not supported. Check if the API path and method are valid.
However, this works fine if I truncate the tailing 's' from TimeSeries
Expected behavior
-Being able to pass ObjectType=telemetry.TimeSeries
-Specialized cmdlets for TimeSeries API
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
briamorr
changed the title
New-IntersightManagedObject adding a 's' to ObjectType to TimeSeries ObjectType
New-IntersightManagedObject adding a 's' to ObjectType of TimeSeries
Aug 23, 2023
Describe the bug
Due to lack of a Get-IntersightTelmetryTimeseries cmdlet was trying to use New-IntersightManagedObject as a workaround.
Noticed that it was sending to the wrong API endpoint with an extra 's' unless I do the following:
New-IntersightManagedObject -ObjectType telemetry.TimeSerie -AdditionalProperties $hash
To Reproduce
However, this works fine if I truncate the tailing 's' from TimeSeries
Version used
1.0.11.13236
SaaS
Expected behavior
-Being able to pass ObjectType=telemetry.TimeSeries
-Specialized cmdlets for TimeSeries API
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: