Export-IDQPublishing

Navigation:  Catalog & System Administration > L'Automation Console > I cmdlet di IrionEDM > Change Management >

Export-IDQPublishing

Previous pageReturn to chapter overviewNext page

Il Cmdlet Export-IDQPublishing permette di esportare su file i logical service e le relative pubblicazioni, sia a livello di Package che di DatasShelf.

 

info

Per poter eseguire questo cmdlet, l'utente necessita del privilegio Manage Publishing.

 

Sintassi

<# Exports a Logical Service in a idqls file on the file system from a registered Catalog #>

Export-IDQPublishing [-Catalog] <string> [[-LogicalService] <string>] [-Destination] <string> [[-Overwrite]]

[-WhatIf] [-Confirm]  [<CommonParameters>]

 

<# Exports a Logical Service in a idqls file on the file system from a Server #>

Export-IDQPublishing [-Server] <string> [[-Instance] <string>] [[-LogicalService] <string>] [-Destination]

<string> [[-Overwrite]] [-WhatIf] [-Confirm]  [<CommonParameters>]

 

Argomenti

 

Parametro

Descrizione

 Richiesto

-Catalog <string>

Catalog da cui esportare.

Y

-Server <string>

Nome del server da cui esportare.

Y

-Destination <string>

Path e filename dove è salvato l'export.

Y

-LogicalService <string>

Nome del logical service da esportare. Se non presente sono esportati tutti i logical service presenti sul Catalog.

N

-Overvrite

Indica se sovrascrivere o meno il file. Di default NON sovrascrive

N

-Instance <string>

Nome dell'istanza. Se non specificato il parametro, viene presa quella di default.

N

-Confirm

Visualizza un messaggio di conferma all’atto dell’esecuzione del comando

N

-WhatIf

Simula il commandlet restituendo a video gli step di esecuzione senza effettuarli

N

 

Destination

Verrà esportato un solo file (estensione .idqls) contenente uno o più Logical Service esportati.

 

ex

 

ESEMPIO:

 

Esportazione della configurazione del logical service 'MyLogicalService' del catalog 'MyCatalog' nel file 'C:\tmp\MyLS.idqwls' del file system, in modalità Catalog:

 

Export-IDQPublishing -Catalog 'MyCatalog' -LogicalService 'MyLogicalService' -Destination 'C:\tmp'

 

Esportazione della configurazione del logical service 'MyLogicalService' dell'istanza 'MyInstance' del server 'MyServer' nel file 'C:\tmp\MyLS.idqwls' del file system, da usare se il Catalog non è registrato:

 

Export-IDQPublishing -Server 'MyServer' -Instance 'MyInstance' -LogicalService 'MyLogicalService' -Destination 'C:\tmp'

La struttura del file di esportazione è riportata nell'esempio seguente.

ex

ESEMPIO DI FILE DI ESPORTAZIONE DEL PUBLISHING

Il file contiene la seguente struttura XML:

<LogicalServices xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="5.9.0.284">

  <LogicalService Name="DataServer" Enabled="false">

    <Books />

    <Shelves />

  </LogicalService>

  <LogicalService Name="DataServer147" Enabled="false">

    <Books />

    <Shelves />

  </LogicalService>

  <LogicalService Name="renametest" Enabled="true">

    <Books>

      <Book Enabled="true" PublishedName="pluto" BookName="\TestConvert\PopulateNorthwindDataShelf" EntityName="\Book" CommandName="Start" RPC="false" />

    </Books>

    <Shelves>

      <Shelf Enabled="true" PublishedName="qqqqqq" ShelfName="\System\Default AuditShelf" />

    </Shelves>

  </LogicalService>

  <LogicalService Name="WebApi" Enabled="false">

    <Books />

    <Shelves />

  </LogicalService>

  <LogicalService Name="WebApi123" Enabled="false">

    <Books />

    <Shelves />

  </LogicalService>

  <LogicalService Name="WebApi789" Enabled="true">

    <Books />

    <Shelves />

  </LogicalService>

  <LogicalService Name="www" Enabled="false">

    <Books />

    <Shelves />

  </LogicalService>

</LogicalServices>