Public/Access/Get-SIAAsset.ps1
|
function Get-SIAAsset { <# .SYNOPSIS Lists assets the caller can access through CyberArk Secure Access. .DESCRIPTION Retrieves the catalog of assets the authenticated session is entitled to access. This calls CyberArk's shared Access API, used by SIA and other Secure Access experiences, rather than a SIA-specific endpoint. .EXAMPLE Get-SIAAsset Lists every asset the current session can access. .INPUTS None. .OUTPUTS psSIA.Asset .LINK https://api-docs.cyberark.com/secure-access/docs/secure-access-api #> [CmdletBinding()] [OutputType('psSIA.Asset')] param() Invoke-SIARequest -Method GET -Path '/api/assets' -Service UserPortal | ConvertFrom-SIAResponse -TypeName 'psSIA.Asset' } |