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
{{ message }}
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
I can successfully retrieve the archival status of an asset with Get-SmaAsset, using -QueryParameters "?filtering=asset.archive eq completed,asset.id eq 1234", however, running Get-SmaArchiveAsset against the same AssetID returns a 500 error.
Get-SmaArchiveAsset -Server 'https://kace.example.com' -Credential (Get-Credential) -AssetID 1234
- Invoke-RestMethod : The remote server returned an error: (500) Internal Server Error.
I can successfully retrieve the archival status of an asset with Get-SmaAsset, using
-QueryParameters "?filtering=asset.archive eq completed,asset.id eq 1234"
, however, runningGet-SmaArchiveAsset
against the same AssetID returns a 500 error.Working Endpoint:
"/api/asset/assets?filtering=asset.archive eq completed,asset.id eq 1234"
Not Working Endpoint:
Steps to reproduce:
Error:
Get-SmaArchiveAsset -Server 'https://kace.example.com' -Credential (Get-Credential) -AssetID 1234 - Invoke-RestMethod : The remote server returned an error: (500) Internal Server Error.
Workaround using Get-SmaAsset with filter:
Get-SmaAsset -Server 'https://kace.example.com' -Credential (Get-Credential) -QueryParameters "?filtering=asset.archive eq completed,asset.id eq 1234" + Returns successfully
The text was updated successfully, but these errors were encountered: