Public/Get-JuribaAppRGenericIntegrationProperty.ps1

function Get-JuribaAppRGenericIntegrationProperty {
    <#
      .SYNOPSIS
      Gets properties for a publishing in a generic integration.
      .DESCRIPTION
      Retrieves the collection of properties for a specific publishing that is
      executing against a generic integration.

      This is a refactored version of the original Get-PublishingPropertiesList cmdlet.
      .PARAMETER Instance
      The URL of the App Readiness instance. Not required if connected via Connect-JuribaAppR.
      .PARAMETER APIKey
      The API key for authentication. Not required if connected via Connect-JuribaAppR.
      .PARAMETER IntegrationId
      The unique identifier of the generic integration.
      .PARAMETER PublishingId
      The unique identifier of the publishing record.
      .EXAMPLE
      Get-JuribaAppRGenericIntegrationProperty -IntegrationId 1 -PublishingId 2
      Returns properties for publishing 2 in integration 1.
    #>


    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $false)]
        [string]$Instance,

        [Parameter(Mandatory = $false)]
        [string]$APIKey,

        [Parameter(Mandatory = $true)]
        [int]$IntegrationId,

        [Parameter(Mandatory = $true)]
        [int]$PublishingId
    )

    $conn = Get-JuribaAppRConnection -Instance $Instance -APIKey $APIKey

    Invoke-JuribaAppRRestMethod -Instance $conn.Instance -APIKey $conn.APIKey `
        -Uri "api/v1/integration/generic/$IntegrationId/published-app/$PublishingId" -Method GET
}