Public/Targets/New-SIASSHCAPublicKeyScript.ps1
|
function New-SIASSHCAPublicKeyScript { <# .SYNOPSIS Generates a deployment script for the SIA SSH CA public key. .DESCRIPTION Retrieves a ready-to-run script that installs the SIA SSH CA public key as a trusted certificate authority on a target Linux host. .EXAMPLE New-SIASSHCAPublicKeyScript Retrieves the CA key deployment script. .INPUTS None. .OUTPUTS psSIA.SSHCAPublicKeyScript .LINK https://api-docs.cyberark.com/secure-infra-access/docs/sia-ssh-public-keys-api #> [CmdletBinding()] [OutputType('psSIA.SSHCAPublicKeyScript')] [Diagnostics.CodeAnalysis.SuppressMessage('PSUseShouldProcessForStateChangingFunctions', '', Justification = 'Read-only GET request; it does not create or modify any tenant resource.')] param() Invoke-SIARequest -Method GET -Path '/api/public-keys/scripts' | ConvertFrom-SIAResponse -TypeName 'psSIA.SSHCAPublicKeyScript' } |