Public/Discovery/Get-SCAStandingAccessDetail.ps1
|
function Get-SCAStandingAccessDetail { <# .SYNOPSIS Gets standing access detail for a specific cloud identity. .DESCRIPTION Calls GET /detections/cloud-service-entitlements/{id} on the Cloud Discovery Service API to get the full entitlement detail for one identity returned by Get-SCAStandingAccess. .PARAMETER Id The identity's detection ID, as returned by Get-SCAStandingAccess. .PARAMETER Session A psSCA.Session object or session name. Defaults to the current default session. .EXAMPLE Get-SCAStandingAccess -Provider Azure | Get-SCAStandingAccessDetail Gets full entitlement detail for every Azure identity with standing access. .INPUTS System.String. Id can be piped in by value or by property name. .OUTPUTS psSCA.StandingAccess .LINK https://api-docs.cyberark.com/cds-api/docs/cds-api #> [CmdletBinding()] [OutputType('psSCA.StandingAccess')] param( [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] [string]$Id, [Parameter()] [object]$Session ) process { Invoke-SCARequest -Session $Session -Service 'CDS' -Method GET -Path '/detections/cloud-service-entitlements/{id}' ` -PathParameters @{ id = $Id } -Operation 'Get-SCAStandingAccessDetail' -TypeName 'psSCA.StandingAccess' } } |