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 itemAddReadUpdateDelete
Topology TypeAdd-TtmCdTopologyTypeGet-TtmCdTopologyTypeSet-TtmCdTopologyTypeRemove-TtmCdTopologyType
Content Delivery environmentAdd-TtmCdEnvironmentGet-TtmCdEnvironmentSet-TtmCdEnvironmentRemove-TtmCdEnvironment
TopologyAdd-TtmCdTopologyGet-TtmCdTopologySet-TtmCdTopologyRemove-TtmCdTopology
WebsiteAdd-TtmWebsiteGet-TtmWebsiteSet-TtmWebsiteRemove-TtmWebsite
Web applicationAdd-TtmWebApplicationGet-TtmWebApplicationSet-TtmWebApplicationRemove-TtmWebApplication
Content Manager environmentAdd-TtmCmEnvironmentGet-TtmCmEnvironmentSet-TtmCmEnvironmentRemove-TtmCmEnvironment
Mapping from web application to PublicationAdd-TtmMappingGet-TtmMappingSet-TtmMappingRemove-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.