Topology Manager PowerShell cmdlets
When you initially set up your Topology Manager environment, you used PowerShell cmdlets beginning with Add-Ttm to create and configure topologies and related . To further manage the environment, use a number of additional PowerShell cmdlets (installed along with Topology Manager).
CRUD operations
The following table lists the various Topology Manager cmdlets that can be used for CRUD (create, read, update and delete) operations.
| Type of Topology Manager item | Add | Read | Update | Delete |
|---|---|---|---|---|
| Topology Type | Add-TtmCdTopologyType | Get-TtmCdTopologyType | Set-TtmCdTopologyType | Remove-TtmCdTopologyType |
| Content Delivery environment | Add-TtmCdEnvironment | Get-TtmCdEnvironment | Set-TtmCdEnvironment | Remove-TtmCdEnvironment |
| Topology | Add-TtmCdTopology | Get-TtmCdTopology | Set-TtmCdTopology | Remove-TtmCdTopology |
| Website | Add-TtmWebsite | Get-TtmWebsite | Set-TtmWebsite | Remove-TtmWebsite |
| Web application | Add-TtmWebApplication | Get-TtmWebApplication | Set-TtmWebApplication | Remove-TtmWebApplication |
| Content Manager environment | Add-TtmCmEnvironment | Get-TtmCmEnvironment | Set-TtmCmEnvironment | Remove-TtmCmEnvironment |
| Mapping from web application to Publication | Add-TtmMapping | Get-TtmMapping | Set-TtmMapping | Remove-TtmMapping |
Migration and synchronization
You can use the following cmdlets to migrate Content Delivery environment information from one Tridion Sites instance to another:
- Export cmdlet
-
Use the export cmdlets, Export-TtmCdStructure, to export a JSON file containing all information about your Content Delivery environments from your source Tridion Sites instance. You can edit this file after export and before import in order to duplicate the logical structure, but use different physical Content Delivery machines.
- Import cmdlet
- Use the export cmdlets, Import-TtmCdStructure, to import the JSON file into a target Tridion Sites instance.
- Synchronization cmdlet
- Use the synchronization cmdlets, Sync-TtmCdEnvironment, to recreate the Content Delivery configuration on the target Content Delivery environment, using the configuration of the Topology Manager.