--- title: "Get-VEPSQLInstanceInstantRecovery" description: "Returns PostgreSQL instances that are published within an instant recovery session. Product: Veeam Backup & Replication Product Edition: Enterprise, Enterprise Plus, Veeam Universal License This cmdlet returns an array of PostgreSQL instances tha" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/get-vepsqlinstanceinstantrecovery.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for PostgreSQL > Get-VEPSQLInstanceInstantRecovery" dateModified: "2026-08-18" --- # Get-VEPSQLInstanceInstantRecovery ## Short Description Returns PostgreSQL instances that are published within an instant recovery session. **Product**: Veeam Backup & Replication **Product Edition**: Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VEPSQLInstanceInstantRecovery [[-InstanceName] ] [] ``` ## Detailed Description This cmdlet returns an array of PostgreSQL instances that are published within an instant recovery session. After you get the published PostgreSQL instances within an instant recovery session, you can perform the following operations with these instances: - [`Switch-VEPSQLInstanceInstantRecovery`](switch-vepsqlinstanceinstantrecovery.md) - [`Set-VEPSQLInstanceInstantRecovery`](set-vepsqlinstanceinstantrecovery.md) - [`Stop-VEPSQLInstanceInstantRecovery`](stop-vepsqlinstanceinstantrecovery.md) - [`Restart-VEPSQLInstanceInstantRecovery`](restart-vepsqlinstanceinstantrecovery.md) ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

InstanceName

Specifies a name of a PostgreSQL instance. The cmdlet will return an array of instances with the specified name.

String

False

0

True (ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Output Object The cmdlet returns the [`VEPSQLInstanceInstantRecovery`](vepsqlinstanceinstantrecovery.md)`[]` array that contains PostgreSQL instances that are published within an instant recovery session. ## Examples ::: example ### Example 1. Getting All Published PostgreSQL Instances Within Instant Recovery Session This command returns a list of all published PostgreSQL instances within an instant recovery session. Save the result to the `$IRInstance` variable to be able to use it with other cmdlets. ``` $IRInstance = Get-VEPSQLInstanceInstantRecovery ``` ::: ::: example ### Example 2. Getting PostgreSQL Instances with Specific Name Published Within Instant Recovery Session This command returns all PostgreSQL instances with the specified name published within an instant recovery session. Save the result to the `$IRInstance` variable to be able to use it with other cmdlets. ``` $IRInstance = Get-VEPSQLInstanceInstantRecovery -InstanceName "rhel01:5433" ``` :::