ActivateTopologyActivate a topology.
Syntax
::TestShellAPI::ActivateTopology reservationId topologyFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="TP1" MachineName="PRODUCT-W7 - Tcl" Username="admin" Topology="TP1"> <Resources> <ResourceInfo Name="Router 1234" FolderFullPath="Lab Routers" Address="192.168.1.201" FullAddress="192.168.1.201" RootAddress="192.168.1.201" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Alias="Router 1234" Locked="false"> <ResourceAttributes> <ResourceAttribute Name="SW_Version" Value="" Type="String"/> </ResourceAttributes> <LockInfo/> </ResourceInfo> <ResourceInfo Name="L1 Switch 1234/Blade 1/Port 1" FolderFullPath="Temp Automation Resources" Address="1" FullAddress="192.168.43.240/1/1" RootAddress="192.168.43.240" ResourceFamilyName="L1 Switch Port" ResourceModelName="Port EMPMC-36RJ" Alias="" Locked="true"> <ResourceAttributes> <ResourceAttribute Name="Shutdown" Value="Disable" Type="Lookup"/> <ResourceAttribute Name="Linked" Value="False" Type="String"/> <ResourceAttribute Name="Shutdown Unmapped" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="LIN" Value="Disable" Type="Lookup"/> <ResourceAttribute Name="Auto Negotiation" Value="True" Type="Boolean"/> <ResourceAttribute Name="Speed" Value="10 Mbps" Type="Lookup"/> <ResourceAttribute Name="Duplex" Value="Full" Type="Lookup"/> <ResourceAttribute Name="Link Match" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="MDI" Value="AutoSense" Type="Lookup"/> <ResourceAttribute Name="Auto Negotiation Advertise" Value="Other/Uknown" Type="Lookup"/> </ResourceAttributes> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/GenericResource 1234/Port 1"/> </ResourceInfo> <ResourceInfo Name="L1 Switch 1234/Blade 1/Port 2" FolderFullPath="Temp Automation Resources" Address="2" FullAddress="192.168.43.240/1/2" RootAddress="192.168.43.240" ResourceFamilyName="L1 Switch Port" ResourceModelName="Port EMPMC-36RJ" Alias="" Locked="true"> <ResourceAttributes> <ResourceAttribute Name="Shutdown" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="Linked" Value="False" Type="String"/> <ResourceAttribute Name="Shutdown Unmapped" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="LIN" Value="Disable" Type="Lookup"/> <ResourceAttribute Name="Auto Negotiation" Value="True" Type="Boolean"/> <ResourceAttribute Name="Speed" Value="1 Gbps" Type="Lookup"/> <ResourceAttribute Name="Duplex" Value="Full" Type="Lookup"/> <ResourceAttribute Name="Link Match" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="MDI" Value="AutoSense" Type="Lookup"/> <ResourceAttribute Name="Auto Negotiation Advertise" Value="Other/Uknown" Type="Lookup"/> </ResourceAttributes> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/GenericResource 1234/Port 2"/> </ResourceInfo> <ResourceInfo Name="L1 Switch 1234/Blade 1/Port 3" FolderFullPath="Temp Automation Resources" Address="3" FullAddress="192.168.43.240/1/3" RootAddress="192.168.43.240" ResourceFamilyName="L1 Switch Port" ResourceModelName="Port EMPMC-36RJ" Alias="" Locked="true"> <ResourceAttributes> <ResourceAttribute Name="Shutdown" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="Linked" Value="False" Type="String"/> <ResourceAttribute Name="Shutdown Unmapped" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="LIN" Value="Disable" Type="Lookup"/> <ResourceAttribute Name="Auto Negotiation" Value="True" Type="Boolean"/> <ResourceAttribute Name="Speed" Value="1 Gbps" Type="Lookup"/> <ResourceAttribute Name="Duplex" Value="Full" Type="Lookup"/> <ResourceAttribute Name="Link Match" Value="Enable" Type="Lookup"/> <ResourceAttribute Name="MDI" Value="AutoSense" Type="Lookup"/> <ResourceAttribute Name="Auto Negotiation Advertise" Value="Other/Uknown" Type="Lookup"/> </ResourceAttributes> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Lab Routers/Router 1234/Port 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234" FolderFullPath="Temp Automation Resources" Address="192.168.1.20" FullAddress="192.168.1.20" RootAddress="192.168.1.20" ResourceFamilyName="Generic Resource" ResourceModelName="Generic Resource Model" Alias="GenericResource 1234" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/Port 1" FolderFullPath="Temp Automation Resources" Address="1" FullAddress="192.168.1.20/1" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 1" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/Port 2" FolderFullPath="Temp Automation Resources" Address="2" FullAddress="192.168.1.20/2" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 2" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 2"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/PowerPort 11" FolderFullPath="Temp Automation Resources" Address="11" FullAddress="192.168.1.20/11" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="PowerPort 11" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/SmartPower2L 1234/PowerPort 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/PowerPort 12" FolderFullPath="Temp Automation Resources" Address="12" FullAddress="192.168.1.20/12" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="PowerPort 12" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/SmartPower2L 1234/PowerPort 2"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/ConsolePort 21" FolderFullPath="Temp Automation Resources" Address="21" FullAddress="192.168.1.20/21" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="ConsolePort 21" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/ConsoleServer 1234/ConsolePort 1"/> </ResourceInfo> <ResourceInfo Name="Router 1234/Port 1" FolderFullPath="Lab Routers" Address="1" FullAddress="192.168.1.201/1" RootAddress="192.168.1.201" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 1" Locked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T18:03:50"/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3"/> </ResourceInfo> </Resources> <Routes> <Route Source="Temp Automation Resources/GenericResource 1234/Port 1" Target="Lab Routers/Router 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Temp Automation Resources/GenericResource 1234/Port 1" Target="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 1" Target="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3" Target="Lab Routers/Router 1234/Port 1"/> </Segments> </Route> <Route Source="Lab Routers/Router 1234/Port 1" Target="Temp Automation Resources/GenericResource 1234/Port 2" RouteType="uni" Shared="true"> <Segments> <Segment Source="Lab Routers/Router 1234/Port 1" Target="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3" Target="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 2"/> <Segment Source="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 2" Target="Temp Automation Resources/GenericResource 1234/Port 2"/> </Segments> </Route> </Routes> <Connectors> </Connectors> </ResponseInfo>
AddGroupsToDomainAdd groups to a domain.
Syntax
::TestShellAPI::AddGroupsToDomain domainName groupNames readOnly ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
list | groupNames | Specify an array of one or more groups. |
boolean | readOnly | Specify if the array of group should be added with view only permissions. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddNewDomainAdds a new domain.
Syntax
::TestShellAPI::AddNewDomain domainName description ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | description | Specify the description of the domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddNewGroupAdd a new group.
Syntax
::TestShellAPI::AddNewGroup groupName description groupRole ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | groupName | Specify the name of the group. |
string | description | Provide a short description of the group. |
string | groupRole | Specify the role of the group, possible values: External, Regular, DomainAdmin. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="QA_Users" Description="QA users"> <TestShellDomains/> </ResponseInfo>
AddNewUserAdd a new TestShell user.
Syntax
::TestShellAPI::AddNewUser username password email isActive isAdmin ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | Specify the name of the user. |
string | password | Specify the user’s login password. |
string | Specify the user’s email address. | |
boolean | isActive | Grant or deny active access to the application. |
boolean | isAdmin | Add the user to the System Administrators group. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="UserInfo" Name="User1234" IsAdmin="false" IsActive="true" IsDomainAdmin="false" Email="user1234@work.com"/>
AddPermittedUsersToReservationAdd permitted users to a reservation.
Syntax
::TestShellAPI::AddPermittedUsersToReservation reservationId usernames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | usernames | List of users to permit access to the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddResourcesToDomainAdd resources to a domain.
Syntax
::TestShellAPI::AddResourcesToDomain domainName resourcesNames includeDecendants ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
list | resourcesNames | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
boolean | includeDecendants | Specify whether to include child resources. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddResourcesToReservationReserve resources for locking.
Syntax
::TestShellAPI::AddResourcesToReservation reservationId resourcesFullPath shared ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | shared | Specify whether all resources will be shared among other enviroments |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Conflicts/> </ResponseInfo>
AddRoutesToReservationReserve specified routes.
Syntax
::TestShellAPI::AddRoutesToReservation reservationId sourceResourcesFullPath targetResourcesFullPath mappingType maxHops routeAlias isShared ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | sourceResourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
list | targetResourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. Use 'bi' for bidirectional mapping or 'uni' for unidirectional mapping. |
number | maxHops | Specify the maximum number or allowed hops. |
string | routeAlias | Specify the route’s alias. |
boolean | isShared | Specify whether these routes are shared. Shared routes can be used in more than one reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="L1 Switch 1234/Blade 1/Port 1" Target="GenericResource 1234/Port 1"/> </Segments> </Route> </Routes> </ResponseInfo>
AddTopologiesToDomainAdds a list of one or more topologies to a domain.
Syntax
::TestShellAPI::AddTopologiesToDomain domainName topologyNames validateResourceAvailability ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
list | topologyNames | Specify a list of topology names. Include the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
boolean | validateResourceAvailability | Validates the existence of the resource resolution in the target domain. Default value: 'True'. Note: when value 'False' is supplied, there is no process of associating resources and routes with the target domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddUsersToGroupAdd users to a group.
Syntax
::TestShellAPI::AddUsersToGroup usernames groupName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | usernames | Specify an array of one or more users. |
string | groupName | Specify the name of the group. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AutoLoadOverwrite switch settings with current data.
Syntax
::TestShellAPI::AutoLoad resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddAttributeRestrictedValuesadd attribute restrictions
Syntax
::TestShellAPI::AddAttributeRestrictedValues addAttributeRestrictionRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | addAttributeRestrictionRequests | Attribute restrictions to add. |
string | ?resultXml? | Specify the variable for the XML output. |
Example
Output
<ResponseInfo Password="addAttributeRestrictionRequests">
ArchiveDomainArchive the domain
Syntax
::TestShellAPI::ArchiveDomain domainName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddAppToReservationAdd an App resource to an existing reservation.
Syntax
::TestShellAPI::AddAppToReservation reservationId appName deploymentPath positionX positionY ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | appName | Specify the App template's name. |
string | deploymentPath | Specify the way the app will be deploy from a given list of options. |
string | positionX | Specify the x coordinate of the App's top left corner. |
string | positionY | Specify the y coordinate of the App's top left corner. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="AddAppToReservationResponseInfo" ReservedAppName="Added app"> </ResponseInfo>
AddServiceToReservationAdd service resource to existing reservation.
Syntax
::TestShellAPI::AddServiceToReservation reservationId serviceName alias attributes ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | serviceName | Specify the service name. |
string | alias | Specify the service alias. |
list | attributes | Specify a matrix of attributes and associated attribute values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/>
CopyDomainsResourcesCopy resources to a domain.
Syntax
::TestShellAPI::CopyDomainsResources domainNameSources domainNameDestination ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | domainNameSources | Specify the names of the source domains. |
string | domainNameDestination | Specify the name of the target domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ClearAndResetConsoleClear and reset consoles.
Syntax
::TestShellAPI::ClearAndResetConsole reservationId resourceFullPath consolePortsFullPath baudRate ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | consolePortsFullPath | Specify a list of console ports according to their location in the Resource Explorer. Include the full path from the root to each console port, separated by slashes. For example: Console/Ports/PortName. |
string | baudRate | Specify the baud rate to apply to the ports. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
ConnectRoutesInReservationConnects a list of routes.
Syntax
::TestShellAPI::ConnectRoutesInReservation reservationId endpoints mappingType ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | endpoints | The routes’ endpoints to connect. |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. Use 'bi' for bidirectional mapping or 'uni' for unidirectional mapping. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="L1 Switch 1234/Blade 1/Port 1" Target="GenericResource 1234/Port 1"/> </Segments> </Route> </Routes> </ResponseInfo>
CreateFolderAdd a new folder.
Syntax
::TestShellAPI::CreateFolder folderFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | folderFullPath | Specify the full folder name. Include the full path from the root to a specific folder, separated by slashes. For example: ResourceFamilyFolder/ResourceModelFolder. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
CreateImmediateReservationCreate an imminent reservation.
Syntax
::TestShellAPI::CreateImmediateReservation reservationName owner durationInMinutes notifyOnStart notifyOnEnd notificationMinutesBeforeEnd notifyOnSetupComplete isTerminationProtectionEnabled approvalSid ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationName | Specify the name of the reservation. |
string | owner | Specify the user name of the reservation owner. |
number | durationInMinutes | Specify the length of the reservation. (in minutes) |
boolean | notifyOnStart | Indicate whether to notify the reservation owner when the reservation starts. |
boolean | notifyOnEnd | Indicate whether to notify the reservation owner when the reservation ends. |
number | notificationMinutesBeforeEnd | Indicate the number of minutes before the end of the reservation to send out a Notify On End alert to the reservation owner. (0 = disabled) |
boolean | isTerminationProtectionEnabled | Indicate whether to protect the reservation from being terminated. |
string | approvalSid | Leave empty. Used for internal purposes. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservation Id="28cb2a71-c8fc-4f41-a22b-e65685ebed14" Name="Immediate reservation" StartTime="2012-06-20T15:05:00" EndTime="2012-06-20T15:35:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Active" ActualEndTime="" CreateDate="2012-06-20T15:05:06" ModificationDate="2012-06-20T15:05:06"> <Topologies/> </Reservation> </ResponseInfo>
CreateImmediateTopologyReservationCreate an imminent reservation.
Syntax
::TestShellAPI::CreateImmediateTopologyReservation reservationName owner durationInMinutes notifyOnStart notifyOnSetupComplete notifyOnEnd notificationMinutesBeforeEnd topologyFullPath globalInputs requirementsInputs additionalInfoInputs ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationName | Specify the name of the reservation. |
string | owner | Specify the user name of the reservation owner. |
number | durationInMinutes | Specify the length of the reservation. (in minutes) |
boolean | notifyOnStart | Indicate whether to notify the reservation owner when the reservation starts. |
boolean | notifyOnSetupComplete | Indicate whether to notify the reservation owner when the reservation setup completes. |
boolean | notifyOnEnd | Indicate whether to notify the reservation owner when the reservation ends. |
number | notificationMinutesBeforeEnd | Indicate the number of minutes before the end of the reservation to send out a Notify On End alert to the reservation owner. (0 = disabled) |
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
list | globalInputs | Global inputs associated with the specified topology. |
list | requirementsInputs |
Requirements inputs associated with the specified topology. For example: {['Resource Name', 'Input Name', 'Value', 'AttributeType';]}, AttributeType can be one of the following: Attributes/Models/Quantity.
The Value field can be used to input to requirement fields with different operator types.
If pass value as is, it will be treated as "equals", for example if pass "5" it will indicate to system that seek requirement that fulfills =5
Other operators (aside from equals) can be fulfilled using this convention:
in the value field, write use the format symbol[space]value
for example
for numeric values
> 4
< 4
>= 4
<= 4
= 4
!= 4
for textual values
= "hi there"
!= "hi there"
startswith hi there
endswith hi there
contains hi there
doesnotcontain hi there
|
list | additionalInfoInputs | Additional info inputs associated with the specified topology. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservation Id="28cb2a71-c8fc-4f41-a22b-e65685ebed14" Name="Immediate reservation" StartTime="2012-06-20T15:05:00" EndTime="2012-06-20T15:35:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Active" ActualEndTime="" CreateDate="2012-06-20T15:05:06" ModificationDate="2012-06-20T15:05:06"> <Topologies/> </Reservation> </ResponseInfo>
CreateReservationCreate a reservation.
Syntax
::TestShellAPI::CreateReservation reservationName owner startTime endTime notifyOnStart notifyOnEnd notifyOnSetupComplete notificationMinutesBeforeEnd isTerminationProtectionEnabled approvalSid ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationName | Specify the name of the reservation. |
string | owner | Specify the user name of the reservation owner. |
string | startTime | The start time of the reservation. |
string | endTime | The end time of the reservation. |
boolean | notifyOnStart | Indicate whether to notify the reservation owner when the reservation starts. |
boolean | notifyOnEnd | Indicate whether to notify the reservation owner when the reservation ends. |
number | notificationMinutesBeforeEnd | Indicate the number of minutes before the end of the reservation to send out a Notify On End alert to the reservation owner. (0 = disabled) |
boolean | isTerminationProtectionEnabled | Indicate whether to protect the reservation from being terminated. |
string | approvalSid | Leave empty. Used for internal purposes. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservation Id="af626b88-458b-4e7a-9054-c03d8cffa260" Name="test reservation" StartTime="2015-01-01T10:00:00" EndTime="2015-01-01T11:00:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Pending" ActualEndTime="" CreateDate="2012-06-20T10:40:47" ModificationDate="2012-06-20T10:40:47"> <Topologies/> </Reservation> </ResponseInfo>
CreateTopologyReservationCreate a reservation.
Syntax
::TestShellAPI::CreateTopologyReservation reservationName owner startTime endTime notifyOnStart notifyOnSetupComplete notifyOnEnd notificationMinutesBeforeEnd topologyFullPath globalInputs requirementsInputs additionalInfoInputs ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationName | Specify the name of the reservation. |
string | owner | Specify the user name of the reservation owner. |
string | startTime | The start time of the reservation. |
string | endTime | The end time of the reservation. |
boolean | notifyOnStart | Indicate whether to notify the reservation owner when the reservation starts. |
boolean | notifyOnSetupComplete | Indicate whether to notify the reservation owner when the reservation setup completes. |
boolean | notifyOnEnd | Indicate whether to notify the reservation owner when the reservation ends. |
number | notificationMinutesBeforeEnd | Indicate the number of minutes before the end of the reservation to send out a Notify On End alert to the reservation owner. (0 = disabled) |
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
list | globalInputs | Global inputs associated with the specified topology. |
list | requirementsInputs |
Requirements inputs associated with the specified topology. For example: {['Resource Name', 'Input Name', 'Value', 'AttributeType';]}, AttributeType can be one of the following: Attributes/Models/Quantity.
The Value field can be used to input to requirement fields with different operator types.
If pass value as is, it will be treated as "equals", for example if pass "5" it will indicate to system that seek requirement that fulfills =5
Other operators (aside from equals) can be fulfilled using this convention:
in the value field, write use the format symbol[space]value
for example
for numeric values
> 4
< 4
>= 4
<= 4
= 4
!= 4
for textual values
= "hi there"
!= "hi there"
startswith hi there
endswith hi there
contains hi there
doesnotcontain hi there
|
list | additionalInfoInputs | Additional info inputs associated with the specified topology. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservation Id="af626b88-458b-4e7a-9054-c03d8cffa260" Name="test reservation" StartTime="2015-01-01T10:00:00" EndTime="2015-01-01T11:00:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Pending" ActualEndTime="" CreateDate="2012-06-20T10:40:47" ModificationDate="2012-06-20T10:40:47"> <Topologies/> </Reservation> </ResponseInfo>
CreateResourceAdd a new resource.
Syntax
::TestShellAPI::CreateResource resourceFamily resourceModel resourceName resourceAddress folderFullPath parentResourceFullPath resourceDescription ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFamily | Specify the name of the resource family (optional). |
string | resourceModel | Specify the resource model. |
string | resourceName | Specify the resource name. |
string | resourceAddress | Specify the resource address. |
string | folderFullPath | Specify the full folder name. Include the full path from the root to a specific folder, separated by slashes. For example: ResourceFamilyFolder/ResourceModelFolder. |
string | parentResourceFullPath | Specify the full path from the root to a parent resource, separated by slashes. For example: Traffic Generators/Generic. |
string | resourceDescription | Provide a short description to help identify the resource. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
#create chassis
::TestShellAPI::CreateResource "Generic Chassis" "Generic Chassis Model" "Router 1234" "192.168.1.200" "Lab Routers" "" "a generic router" resultXml
#create a child port for the chassis
::TestShellAPI::CreateResource "Generic Port" "Generic Port Model" "Port 1" "1" "Lab Routers" "Router 1234" "a generic router port" resultXml
Output
<ResponseInfo Name="Router 1234" FolderFullPath="Lab Routers" Address="192.168.1.200" FullAddress="192.168.1.200" RootAddress="192.168.1.200" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Locked="false" Excluded="false" Description="a generic router"> <ResourceAttributes> <ResourceAttribute Name="SW_Version" Value="" Type="String"/> </ResourceAttributes> <Domains/> <ChildResources/> <LockInfo/> </ResponseInfo> <ResponseInfo Name="Router 1234/Port 1" FolderFullPath="Lab Routers" Address="1" FullAddress="192.168.1.200/1" RootAddress="192.168.1.200" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Locked="false" Excluded="false" Description="a generic router port"> <ResourceAttributes/> <Domains/> <ChildResources/> <LockInfo/> </ResponseInfo>
CreateResourcesAdds new resources.
Syntax
::TestShellAPI::CreateResources resourceInfoDtos ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourceInfoDtos | List of resources to add. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
#create chassis
::TestShellAPI::CreateResources {{"Generic Chassis" "Generic Chassis Model" "Router 1234" "192.168.1.200" "Lab Routers" "" "a generic router"}} resultXml
#create two child ports for the chassis
::TestShellAPI::CreateResources {{Generic Port" "Generic Port Model" "Port 1" "1" "Lab Routers" "Router 1234" "a generic router port"} {Generic Port" "Generic Port Model" "Port 2" "2" "Lab Routers" "Router 1234" "a generic router port"}} resultXml
Output
<ResponseInfo Output=""/>
CreateRouteInReservationCreate a route between two resources.
Syntax
::TestShellAPI::CreateRouteInReservation reservationId sourceResourceFullPath targetResourceFullPath overrideActiveRoutes mappingType maxHops routeAlias isShared ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | sourceResourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | targetResourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
boolean | overrideActiveRoutes | Specify whether the new route can override existing routes. |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. |
number | maxHops | Specify the maximum number or allowed hops. |
string | routeAlias | Specify the route’s alias. |
boolean | isShared | Specify whether this route is shared. Shared routes can be used in more than one reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="L1 Switch 1234/Blade 1/Port 1" Target="GenericResource 1234/Port 1"/> </Segments> </Route> </Routes> </ResponseInfo>
CreateRoutesInReservationCreate routes between the listed source and target resources.
Syntax
::TestShellAPI::CreateRoutesInReservation reservationId sourceResourcesFullPath targetResourcesFullPath overrideActiveRoutes mappingType maxHops routeAlias isShared ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | sourceResourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
list | targetResourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
boolean | overrideActiveRoutes | Specify whether the new route can override existing routes. |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. Use 'bi' for bidirectional mapping or 'uni' for unidirectional mapping. |
number | maxHops | Specify the maximum number or allowed hops. |
string | routeAlias | Specify the route’s alias. |
boolean | isShared | Specify whether these routes are shared. Shared routes can be used in more than one reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2" RouteType="uni" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 2"/> <Segment Source="L1 Switch 1234/Blade 1/Port 2" Target="GenericResource 1234/Port 2"/> </Segments> </Route> </Routes> </ResponseInfo>
DeleteDomainDeletes a domain.
Syntax
::TestShellAPI::DeleteDomain domainName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteTopologyDelete a topology.
Syntax
::TestShellAPI::DeleteTopology topologyFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteFolderDelete a folder.
Syntax
::TestShellAPI::DeleteFolder folderFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | folderFullPath | Specify the full folder name. Include the full path from the root to a specific folder, separated by slashes. For example: ResourceFamilyFolder/ResourceModelFolder. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteGroupDelete a group.
Syntax
::TestShellAPI::DeleteGroup groupName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | groupName | Specify the name of the group. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteReservationDelete a reservation.
Syntax
::TestShellAPI::DeleteReservation reservationId unmap ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
boolean | unmap | Specify whether to keep mappings or release mapped resources when deleting the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteResourceDelete a resource.
Syntax
::TestShellAPI::DeleteResource resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteResourcesDeletes the specified resources.
Syntax
::TestShellAPI::DeleteResources resourcesFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteUserDeletes a user.
Syntax
::TestShellAPI::DeleteUser username ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | Specify the name of the user. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DisconnectRoutesInReservationDisconnects a list of routes.
Syntax
::TestShellAPI::DisconnectRoutesInReservation reservationId endpoints ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | endpoints | The routes endpoints to disconnect. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Cisco Catalyst 1/Blade 1/Port 1" Target="IXIA 400T/Card 1/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Cisco Catalyst 1/Blade 1/Port 1" Target="ONPATH 3901 1/Blade01/Port15"/> <Segment Source="ONPATH 3901 1/Blade01/Port15" Target="ONPATH 3901 1/Blade01/Port09"/> <Segment Source="ONPATH 3901 1/Blade01/Port09" Target="IXIA 400T/Card 1/Port 1"/> </Segments> </Route> </Routes> </ResponseInfo>
DecryptPasswordDecrypt a password.
Syntax
::TestShellAPI::DecryptPassword encryptedString ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | encryptedString | The encrypted string for decryption. |
string | ?resultXml? | Specify the variable for the XML output. |
Example
Output
<ResponseInfo Password="decryptedPassword">
DeleteResourceTemplateDeletes a specific resource template.
Syntax
::TestShellAPI::DeleteResourceTemplate resourceTemplateName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceTemplateName | Specify the resource template name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
EndReservationEnd a reservation.
Syntax
::TestShellAPI::EndReservation reservationId unmap ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
boolean | unmap | Specify whether to keep mappings or release mapped resources when deleting the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExcludeResourceExclude a resource.
Syntax
::TestShellAPI::ExcludeResource resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExcludeResourcesExcludes the specified resources.
Syntax
::TestShellAPI::ExcludeResources resourcesFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetResourceVisibilitySet the resource visibility state.
Syntax
::TestShellAPI::SetResourceVisibility resourceFullPath newVisibility ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | newVisibility | The new visibility state for the resource. options: AdminOnly, Everyone or FamilyDefault |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
EnqueueResourceCommand
Syntax
::TestShellAPI::EnqueueResourceCommand reservationId resourceFullPath commandName parameterValues printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | commandName | Specify the name of the command. |
list | parameterValues | Specify the list of parameters values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
EnqueueServiceCommand
Syntax
::TestShellAPI::EnqueueServiceCommand reservationId serviceAlias commandName parameterValues printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | serviceAlias | Specify the alias of the service. The service alias is its identifier in the environment context. It can be retrieved via the environment details API and is displayed visually on the diagram. |
string | commandName | Specify the name of the command. |
list | parameterValues | Specify the list of parameters values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExecuteResourceCommand
Syntax
::TestShellAPI::ExecuteResourceCommand reservationId resourceFullPath commandName parameterValues printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | commandName | Specify the name of the command. |
list | parameterValues | Specify the list of parameters values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
ExecuteResourceConnectedCommand
Syntax
::TestShellAPI::ExecuteResourceConnectedCommand reservationId resourceFullPath commandName commandTag parameterValues connectedPortsFullPath printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: RouterA/Port1. |
string | commandName | Specify the name of the command. |
string | commandTag | Specify the command tag. Connected command tags are used to define categories of functionality (e.g 'virtualization'). |
list | parameterValues | Specify the list of parameters values required for executing the command. |
list | connectedPortsFullPath | Specify the list of connected ports to use in this operation. Include the full path from the root resource to each port, separated by slashes. For example: Switch20/Blade5/PowerPort1. Leave blank to perform the connected operation on all of the specified resource’s connected ports. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
EnqueueTopologyCommandEnqueue a topology command.
Syntax
::TestShellAPI::EnqueueTopologyCommand reservationId commandName parameterValues printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | commandName | Specify the name of the command. |
list | parameterValues | Specify the list of parameters values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExecuteTopologyCommandExecute a topology command.
Syntax
::TestShellAPI::ExecuteTopologyCommand reservationId commandName parameterValues printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | commandName | Specify the name of the command. |
list | parameterValues | Specify the list of parameters values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
ExtendReservationExtend a reservation.
Syntax
::TestShellAPI::ExtendReservation reservationId minutesToAdd ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
number | minutesToAdd | Specify the number of minutes to add to the specified reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateReservationEndTimeUpdate a reservation end time or persistence.
Syntax
::TestShellAPI::UpdateReservationEndTime reservationId isPersistent endTime ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
boolean | isPersistent | Enable or disable Reservation Persistence. |
string | endTime | The end time of the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExportFamiliesAndModelsExports the resource families, models, attributes and structure configuration.
Syntax
::TestShellAPI::ExportFamiliesAndModels ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo>
ExecuteServiceCommand
Syntax
::TestShellAPI::ExecuteServiceCommand reservationId serviceAlias commandName parameterValues printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | serviceAlias | Specify the alias of the service. |
string | commandName | Specify the name of the command. |
list | parameterValues | Specify the list of parameters values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
DeployAppToCloudProviderDeploy app to cloud provider
Syntax
::TestShellAPI::DeployAppToCloudProvider reservationId appName commandInputs printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | appName | Specify the name of the app. |
list | commandInputs | Specify a list of input names and values required for executing the command. Note that to change a deployed App's name, specify the new name as an input value - for example: api.DeployAppToCloudProvider(reservation_id, "Azure Ubuntu", [InputNameValue("Name", "myvm01")]). |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
EditAppsInReservation
Syntax
::TestShellAPI::EditAppsInReservation reservationId editAppsRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | editAppsRequests | Changes to implement in the App. Please note that when modifying attributes, *all* the attributes in deployed app must be updated. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
PrepareSandboxConnectivity
Syntax
::TestShellAPI::PrepareSandboxConnectivity reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
CleanupSandboxConnectivity
Syntax
::TestShellAPI::CleanupSandboxConnectivity reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
CheckoutFromPoolCheckout from pool
Syntax
::TestShellAPI::CheckoutFromPool selectionCriteriaJson ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | selectionCriteriaJson | Json string that represents a selection request for an item or multiple items from a pool. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
ReleaseFromPoolRelease from pool
Syntax
::TestShellAPI::ReleaseFromPool values poolId reservationId ownerId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | values | Values to release from the pool. |
string | poolId | The specific pool where to search for the values that you want to release. |
string | reservationId | Reservation id that is assoicated with the pool values. It can also be an empty string if the values are not associated with a reservation. |
string | ownerId | The owner of the pool values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
EnqueueEnvironmentCommandEnqueue an environment command.
Syntax
::TestShellAPI::EnqueueEnvironmentCommand reservationId commandName commandInputs printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | commandName | Specify the name of the command. |
list | commandInputs | Specify a matrix of input names and values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExecuteEnvironmentCommandExecute an environment command.
Syntax
::TestShellAPI::ExecuteEnvironmentCommand reservationId commandName commandInputs printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | commandName | Specify the name of the command. |
list | commandInputs | Specify a matrix of input names and values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
EnqueueCommandEnqueue a command.
Syntax
::TestShellAPI::EnqueueCommand reservationId targetName targetType commandName commandInputs printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | targetName | Specify the name of the target according to the target type: for resources - specify the resouce's name, for services - the service's alias. |
string | targetType | Specify the target type for command execution, possible values are: Resource, Service, App. Use 0 for Resource, 1 for Service, 2 for App. |
string | commandName | Specify the name of the command. |
list | commandInputs | Specify a matrix of input names and values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ExecuteCommandExecute a command.
Syntax
::TestShellAPI::ExecuteCommand reservationId targetName targetType commandName commandInputs printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | targetName | Specify the name of the target according to the target type: for resources - specify the resouce's name, for services - the service's alias. |
string | targetType | Specify the target type for command execution, possible values are: Resource, Service, App. Use 0 for Resource, 1 for Service, 2 for App. |
string | commandName | Specify the name of the command. |
list | commandInputs | Specify a matrix of input names and values required for executing the command. |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="success"/>
FindResources
Syntax
::TestShellAPI::FindResources resourceFamily resourceModel attributeValues showAllDomains resourceFullName exactName includeSubResources resourceAddress resourceUniqueIdentifier maxResults includeExcludedResources ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFamily | Specify the name of the resource family. |
string | resourceModel | Specify the resource model. |
list | attributeValues | Specify an array of one or more attributes and attribute values. |
boolean | showAllDomains | Show all domains associated with the logged in user. |
string | resourceFullName | Specify part of or the full name of the resource. |
boolean | exactName | Specify whether to search the exact given name or not. |
boolean | includeSubResources | Specify whether to retrieve the sub resources once the parent matches the name. |
string | resourceAddress | Specify the resource address. Can be partial (e.g. '192.168.'). |
string | resourceUniqueIdentifier | Specify the resource unique identifier. |
number | maxResults | Specify the maximum number of resources to return. |
boolean | includeExcludedResources | Specify whether to retrieve resources that are excluded |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Resources> <Resource Name="Router 1234" Description="a new description for the resource" Address="192.168.1.201" FullName="Lab Routers/Router 1234" FullPath="Lab Routers/Router 1234" FullAddress="192.168.1.201" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Status="Available" Permission="ReadOnly"> <Reservations/> <UsageSummary NumOfNotInReservation="130" NumOfReserved="14" NumOfShared="0"/> </Resource> </Resources> </ResponseInfo>
FindResourcesInTimeRange
Syntax
::TestShellAPI::FindResourcesInTimeRange resourceFamily resourceModel fromTime untilTime attributeValues showAllDomains resourceFullName exactName includeSubResources resourceAddress resourceUniqueIdentifier maxResults ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFamily | Specify the name of the resource family. |
string | resourceModel | Specify the resource model. |
string | fromTime | Specify from which future time and date to check the resource's availability. |
string | untilTime | Specify until which time and date to check the resource's availability. |
list | attributeValues | Specify an array of one or more attributes and attribute values. |
boolean | showAllDomains | Show all domains associated with the logged in user. |
string | resourceFullName | Specify part of or the full name of the resource. |
boolean | exactName | Specify whether to search the exact given name or not. |
boolean | includeSubResources | Specify whether to retrieve the sub resources once the parent matches the name. |
string | resourceAddress | Specify the resource address. Can be partial (e.g. '192.168.'). |
string | resourceUniqueIdentifier | Specify the resource unique identifier. |
number | maxResults | Specify the maximum number of resources to return. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Resources> <Resource Name="Router 1234" Description="a new description for the resource" Address="192.168.1.201" FullName="Lab Routers/Router 1234" FullPath="Lab Routers/Router 1234" FullAddress="192.168.1.201" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Status="Available" Permission="ReadOnly"> <Reservations/> <UsageSummary NumOfNotInReservation="130" NumOfReserved="14" NumOfShared="0"/> </Resource> </Resources> </ResponseInfo>
GetReservationResourcesPositionsGet resource positions in a reservation.
Syntax
::TestShellAPI::GetReservationResourcesPositions reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <layout/> </ResponseInfo>
GetRoutesSolutionGet solution for specified routes.
Syntax
::TestShellAPI::GetRoutesSolution reservationId sourceResourcesFullPath targetResourcesFullPath mappingType maxHops isShared ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | sourceResourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: RootResourceName/ResourceName |
list | targetResourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: RootResourceName/ResourceName |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. Use 'bi' for bidirectional mapping or 'uni' for unidirectional mapping. |
number | maxHops | Specify the maximum number or allowed hops. |
boolean | isShared | Specify whether these routes are shared. Shared routes can be used in more than one reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="L1 Switch 1234/Blade 1/Port 1" Target="GenericResource 1234/Port 1"/> </Segments> </Route> </Routes> </ResponseInfo>
GenerateUtilizationReportGenerate a utilization report.
Syntax
::TestShellAPI::GenerateUtilizationReport resourceFamilyName fromDate toDate resourceFullName resourceModelName includeChildResources groupBy utilizationReportType ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFamilyName | Specify the name of the resource family. |
string | fromDate | Specify the start time and date. |
string | toDate | Specify the end time and date. |
string | resourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName. |
string | resourceModelName | Specify the resource model. |
boolean | includeChildResources | Specify whether to include child resources utilization. |
string | groupBy | Specify how to group the utilization results: Resource, User, or Machine Use 0 for Resource, 1 for User and 2 for Machine. |
string | utilizationReportType | Specify the report type: Lock or Mapping. Use 0 for Lock and 1 for Mapping. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
GetActiveTopologyNamesRetrieve a user's reserved topologies.
Syntax
::TestShellAPI::GetActiveTopologyNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Topologies> <TopologyName>Temp Automation Resources/TP1</TopologyName> </Topologies> </ResponseInfo>
GetAllUsersDetailsRetrieve all users and user settings.
Syntax
::TestShellAPI::GetAllUsersDetails ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Users> <User Name="admin" IsAdmin="true" IsActive="true" IsDomainAdmin="false"> <Groups> <Group Name="System Administrators" Description="Built in group, all members have administrative rights."> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> </Group> <Group Name="Everyone"> <TestShellDomains/> </Group> </Groups> </User> <User Name="User1234" IsAdmin="false" IsActive="true" IsDomainAdmin="false" Email="user1234@work.com"> <Groups> <Group Name="Everyone"> <TestShellDomains/> </Group> </Groups> </User> <User Name="User2345" IsAdmin="false" IsActive="true" IsDomainAdmin="false" Email=""> <Groups> <Group Name="Everyone"> <TestShellDomains/> </Group> </Groups> </User> </Users> </ResponseInfo>
GetAttributeValueRetrieve an attribute's value.
Syntax
::TestShellAPI::GetAttributeValue resourceFullPath attributeName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | attributeName | Specify the attribute name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="SW_Version" Value="1.3"/>
GetCategoriesOfTopologyRetrieves all categories of a given topology.
Syntax
::TestShellAPI::GetCategoriesOfTopology topologyPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
::TestShellAPI::GetCategoriesOfTopology "Folder1/exampleTopology" resultXml
Output
<ResponseInfo xsi:type="CategoriesOfTopologyInfo"> <Categories> <Category Name="sampleCategory" Value="hello"/> <Category Name="Category2" Value="bye"/> </Categories> </ResponseInfo>
GetCurrentReservationsRetrieve current reservations.
Syntax
::TestShellAPI::GetCurrentReservations reservationOwner ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationOwner | Specify the user name of the reservation owner. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservations> <Reservation Id="65b45c9b-7694-4a42-b8fa-0239109b5246" Name="Reservation" StartTime="2012-06-19T14:30:00" EndTime="2012-06-19T16:30:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Overtime" ProvisioningStatus="Ready" ActualEndTime="" CreateDate="2012-06-19T14:30:23" ModificationDate="2012-06-19T14:37:55" DomainName="Global"> <Topologies> <TopologyName>Topologies/Lab 1/Topology</TopologyName> <TopologyName>Topologies/Lab 1/TrafficTopology</TopologyName> <TopologyName>Topologies/Lab 1/TrafficTopology1</TopologyName> </Topologies> </Reservation> </Reservations> </ResponseInfo>
GetDomainDetailsRetrieves a domain's details including groups, topologies and resources associated with the specified domain.
Syntax
::TestShellAPI::GetDomainDetails domainName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="Domain1" Description="" TopologiesFolder="Root\Domain1 topologies"> <Groups> <Group Name="Animals" Role="Regular"></Group> </Groups> <Topologies> <Topology Name="Topology" Description=""></Topology> </Topologies> <Resources> <Resource Name="b1" Path="b1"></Resource> </Resources> </ResponseInfo>
GetFolderContentRetrieve content for a specified path.
Syntax
::TestShellAPI::GetFolderContent fullPath showAllDomains ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | fullPath | Specify the full folder name. Include the full path from the root to a specific folder, separated by slashes. For example: ResourceFamilyFolder/ResourceModelFolder. |
boolean | showAllDomains | Show all domains associated with the logged in user. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <ContentArray> <Content Name="Router 1234" Type="Resource"/> <Content Name="Router 4321" Type="Resource"/> </ContentArray> </ResponseInfo>
MoveFolderAllows to change the location of a folder (and all its content, including sub folders) in the folder hierarchy.
Syntax
::TestShellAPI::MoveFolder originalFolder targetFolder ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | originalFolder | Path of the folder to be moved. |
string | targetFolder | The path of the new containing folder. To move a folder to root, value should be empty. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
GetGroupDomainsRetrieve a group's domains.
Syntax
::TestShellAPI::GetGroupDomains groupName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | groupName | Specify the name of the group. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="QA_Users" Description="QA users"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> </ResponseInfo>
GetGroupsDetailsRetrieve all system groups.
Syntax
::TestShellAPI::GetGroupsDetails ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Groups> <Group Name="System Administrators" Description="Built in group, all members have administrative rights." GroupRole="SystemAdmin"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> <Users> <User Name="admin" IsAdmin="true" IsActive="true" IsDomainAdmin="false"> <Groups> <Group Name="System Administrators" Description="Built in group, all members have administrative rights."> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> </Group> <Group Name="Everyone"> <TestShellDomains/> </Group> <Group Name="Lab1"> <TestShellDomains> <TestShellDomain Name="Lab1" Description="" Id="71aa4f7e-174d-4df1-b50a-59e98f09005c"/> </TestShellDomains> </Group> </Groups> </User> </Users> </Group> <Group Name="Domain Administrators" Description="Built in group, all members have administrative Domain rights." GroupRole="DomainAdmin"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> <Users> <User Name="User1234" IsAdmin="false" IsActive="true" IsDomainAdmin="true" Email=""> <Groups> <Group Name="Domain Administrators" Description="Built in group, all members have administrative Domain rights."> <TestShellDomains> <TestShellDomain Name="Global" Description="" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> </Group> <Group Name="Everyone"> <TestShellDomains/> </Group> </Groups> </User> </Users> </Group> <Group Name="QA_Users" Description="QA users" GroupRole="Regular"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> <Users> <User Name="User1234" IsAdmin="false" IsActive="true" IsDomainAdmin="false" Email="user1234@work.com"> <Groups> <Group Name="Everyone"> <TestShellDomains/> </Group> <Group Name="QA_Users" Description="QA users"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> </Group> </Groups> </User> <User Name="User2345" IsAdmin="false" IsActive="true" IsDomainAdmin="false" Email=""> <Groups> <Group Name="Everyone"> <TestShellDomains/> </Group> <Group Name="QA_Users" Description="QA users"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> </Group> </Groups> </User> </Users> </Group> <Group Name="RND_Users" GroupRole="Regular"> <TestShellDomains> <TestShellDomain Name="Global" Description="A domain that includes all available resources" Id="dbaf480c-09f7-46d3-a2e2-e35d3e374a16"/> </TestShellDomains> <Users/> </Group> </Groups> </ResponseInfo>
GetLockedResourcesRetrieve a list of locked resources.
Syntax
::TestShellAPI::GetLockedResources user machine folderFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | user | Specify a user name to retrieve locked resources for that user. |
string | machine | Specify a machine name to retrieve locked resources for that computer. |
string | folderFullPath | Specify the full folder name. Include the full path from the root to a specific folder, separated by slashes. For example: ResourceFamilyFolder/ResourceModelFolder. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservations> <Reservation Name="Immediate reservation" Owner="admin" Created="2012-06-20T15:05:06"> <LockedResources> <Resource Name="GenericResource 1234/Port 2" FolderFullPath="Temp Automation Resources" Address="2" FullAddress="192.168.1.20/2" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Locked="true" Excluded="false"/> <Resource Name="GenericResource 1234/Port 1" FolderFullPath="Temp Automation Resources" Address="1" FullAddress="192.168.1.20/1" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Locked="true" Excluded="false"/> </LockedResources> </Reservation> </Reservations> </ResponseInfo>
GetReservationDetailsRetrieve reservation details and parameters.
Syntax
::TestShellAPI::GetReservationDetails reservationId disableCache ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
boolean | disableCache | Specify if the reservation detail is new or cached |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetReservationDescriptionResponseInfo"> <ReservationDescription Id="a97ce9c2-48eb-420e-85b7-2318106c35a3" Name="Sandbox-5-16-2017 15-59" StartTime="16/05/2017 15:59:00" EndTime="16/05/2017 17:59:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Started" ProvisioningStatus="Not Run" ActualEndTime="" CreateDate="16/05/2017 15:59:21" ModificationDate="16/05/2017 16:01:38" DomainName="Global"> <Topologies> <TopologyName>Environment-03-02-2015 18-21</TopologyName> </Topologies> <TopologiesInfo> <Topology Name="Environment-03-02-2015 18-21" Alias="Environment-03-02-2015 18-21"> <Type>Regular</Type> <State>Pending</State> </Topology> </TopologiesInfo> <PermittedUsers> <PermittedUser>admin</PermittedUser> </PermittedUsers> <Resources> <ReservedResource Name="Database_ec513a05" FolderFullPath="" FullAddress="NA" Shared="false" Availability="Available" Locked="false" Released="false" ResourceFamilyName="Generic App Family" ResourceModelName="Generic App Model" CreatedByUser="admin" CreatedInDomain="Global" CreatedInReservation="a97ce9c2-48eb-420e-85b7-2318106c35a3"> <VmDetails UID="4232175a-6a64-bb3c-1cca-e8699845549b" CloudProviderFullName="testing"> <VmCustomParams> <VmCustomParam Name="ip_regex" Value="" /> <VmCustomParam Name="auto_power_on" Value="True" /> <VmCustomParam Name="auto_power_off" Value="True" /> <VmCustomParam Name="wait_for_ip" Value="True" /> <VmCustomParam Name="auto_delete" Value="True" /> <VmCustomParam Name="refresh_ip_timeout" Value="600" /> <VmCustomParam Name="autoload" Value="True" /> </VmCustomParams> </VmDetails> <AppDetails AppName="Database" /> </ReservedResource> </Resources> <TopologiesReservedResources /> <Conflicts /> <TopologiesRouteInfo /> <TopologiesResourcesAttributeInfo /> <TopologiesInstructionsInfo /> <ActiveRoutesInfo /> <RequestedRoutesInfo /> <Connectors /> <Apps> <ReservedApp Name="MonitoringApp"> <LogicalResource Family="Monitoring" Model="DefaultMonitoring"/> </ReservedApp> </Apps> <ReservationLiveStatus ReservationId="a97ce9c2-48eb-420e-85b7-2318106c35a3" /> <SetupStage>None</SetupStage> <Services /> </ReservationDescription> </ResponseInfo>
GetResourcesLabelsInReservationGet resources associated with labels in reservation.
Syntax
::TestShellAPI::GetResourcesLabelsInReservation reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetResourcesLabelsInTopologyResponseInfo"> <Resources> <Resource Name="res" Type="Resource" LabelName="label1"> </Resource> <Resource Name="res2" Type="Resource" LabelName="label2"> </Resource> <Resource Name="service1" Type="Service" LabelName="label3"> </Resource> <Resource Name="app1" Type="App" LabelName="label4"> </Resource> </Resources> </ResponseInfo>
GetStickyNotesInReservationGet sticky notes in reservation.
Syntax
::TestShellAPI::GetStickyNotesInReservation reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetStickyNotesInReservationResponseInfo"> <StickyNotes> <StickyNote Id="14acdd6f-90c9-413a-bb2f-de73421483ac" Content="Phase 1 - Planning" Color="#FFBD47"> </StickyNote> <StickyNote Id="cf60f589-dbfb-4153-8da1-256b05438bc5" Content="Requirements Gathering" LabelName="#94B0DA"> </StickyNote> </StickyNotes> </ResponseInfo>
GetReservationInputsRetrieves all topology inputs for a specified reservation.
Syntax
::TestShellAPI::GetReservationInputs reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | globalInputs | Global inputs associated with the specified reservation. |
list | requirementsInputs | Requirements inputs associated with the specified reservation. |
list | additionalInfoInputs | Additional info inputs associated with the specified reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/>
GetReservationRemainingTimeRetrieve the amount of time until the end of a reservation.
Syntax
::TestShellAPI::GetReservationRemainingTime reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo RemainingTimeInMinutes="26.4"/>
GetResourceAvailabilityGet resource availability.
Syntax
::TestShellAPI::GetResourceAvailability resourcesNames showAllDomains ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesNames | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
boolean | showAllDomains | Show all domains associated with the logged in user. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
GetResourceAvailabilityInTimeRangeGet resource availability during a specific time range.
Syntax
::TestShellAPI::GetResourceAvailabilityInTimeRange resourcesNames startTime endTime showAllDomains ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesNames | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | startTime | The start time of the reservation. |
string | endTime | The end time of the reservation. |
boolean | showAllDomains | Show all domains associated with the logged in user. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
GetResourceCommandsRetrieve resource driver commands.
Syntax
::TestShellAPI::GetResourceCommands resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Commands> <Command Name="ExampleCommand" DisplayName="Example Command" > <Parameters> <Parameter Name="userParam1" Type="String" Mandatory="false" DefaultValue="Hello"/> <Parameter Name="userParam2" Type="Numeric" Mandatory="false" DefaultValue="42"/> </Parameters> </Command> <Command Name="ResetDriver" DisplayName="Reset Driver" > <Parameters/> </Command> </Commands> </ResponseInfo>
GetServiceCommandsRetrieve service driver commands.
Syntax
::TestShellAPI::GetServiceCommands serviceName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | serviceName | Specify the service name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Commands> <Command Name="ExampleCommand" DisplayName="Example Command" > <Parameters> <Parameter Name="userParam1" Type="String" Mandatory="false" DefaultValue="Hello"/> <Parameter Name="userParam2" Type="Numeric" Mandatory="false" DefaultValue="42"/> </Parameters> </Command> <Command Name="ResetDriver" DisplayName="Reset Driver" > <Parameters/> </Command> </Commands> </ResponseInfo>
GetResourceConnectedCommandsRetrieve resource driver commands.
Syntax
::TestShellAPI::GetResourceConnectedCommands resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Commands> <Command Name="SpinUp" Tag="virtualization" DisplayName="Example virtualiztion command" > <Parameters> <Parameter Name="userParam1" Type="String" Mandatory="false" DefaultValue="Hello"/> <Parameter Name="userParam2" Type="Numeric" Mandatory="false" DefaultValue="42"/> </Parameters> </Command> <Command Name="PowerOn" Tag="power" DisplayName="Example power command" > <Parameters/> </Command> </Commands> </ResponseInfo>
GetResourceDetailsRetrieve the resource parameters and attributes.
Syntax
::TestShellAPI::GetResourceDetails resourceFullPath showAllDomains ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
boolean | showAllDomains | Show all domains associated with the logged in user. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="Router 1234" DriverName="Router Driver" FolderFullPath="Lab Routers" Address="192.168.1.200" FullAddress="192.168.1.200" RootAddress="192.168.1.200" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Locked="false" Excluded="false" Description="a generic router" Permissions="ReadOnly" ResourceLiveStatusName="name1" ResourceLiveStatusDescription="description1" > <ResourceAttributes> <ResourceAttribute Name="SW_Version" Value="" Type="String"></ResourceAttribute> </ResourceAttributes> <Domains></Domains> <ChildResources> <ResourceInfo Name="Router 1234/Port 1" FolderFullPath="Lab Routers" Address="1" FullAddress="192.168.1.200/1" RootAddress="192.168.1.200" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Locked="false" Excluded="false" Description="a generic router port" Permissions="ReadOnly"> <ResourceAttributes></ResourceAttributes> <Domains></Domains> <LockInfo></LockInfo> </ResourceInfo> </ChildResources> <LockInfo></LockInfo> <CreatedInReservation></CreatedInReservation> <CreatedByUser></CreatedByUser> <CreatedInDomain></CreatedInDomain> </ResponseInfo>
GetResourcesAttributeValuesRetrieve the resources attributes.
Syntax
::TestShellAPI::GetResourcesAttributeValues resourceFullNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourceFullNames | Specify the resource names array. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <ResourceAttributeInfoList> <ResourceAttributeInfo FullPath="Lab Routers/Router 1234"> <ResourceAttribute Name="SW_Version" Value="" Type="String"> </ResourceAttribute> </ResourceAttributeInfo> </ResourceAttributeInfoList> </ResponseInfo>
GetResourceListRetrieve a list of resources for a specified path.
Syntax
::TestShellAPI::GetResourceList folderFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | folderFullPath | Specify the full folder name. Include the full path from the root to a specific folder, separated by slashes. For example: ResourceFamilyFolder/ResourceModelFolder. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Resources> <Resource Name="Router 1234" FolderFullPath="Lab Routers" Address="192.168.1.200" FullAddress="192.168.1.200" RootAddress="192.168.1.200" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Locked="false" Excluded="false"> <LockInfo/> </Resource> <Resource Name="Router 4321" FolderFullPath="Lab Routers" Address="192.168.1.201" FullAddress="192.168.1.201" RootAddress="192.168.1.201" ResourceFamilyName="Generic Resource" ResourceModelName="Generic Resource Model" Locked="false" Excluded="false"> <LockInfo/> </Resource> </Resources> </ResponseInfo>
GetResourceLiveStatusGets the live status of a resource.
Syntax
::TestShellAPI::GetResourceLiveStatus resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo type="ResourceLiveStatusInfo" liveStatusName="Online" liveStatusDescription="Resource was responding to pings at 12/12/2013 10:35 AM"/> </Response>
GetReservationsLiveStatusGets the live status the reservations.
Syntax
::TestShellAPI::GetReservationsLiveStatus reservationsId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | reservationsId | Specifies a string array that represents reservation unique identifiers. |
string | ?resultXml? | Specify the variable for the XML output. |
Example
Output
<ResponseInfo> <ReservationLiveStatuses> <ReservationLiveStatus ReservationId="a2f1b35e-3deb-42ee-b70d-78189dd10d56" ReservationLiveStatusName="Pass" ReservationLiveStatusDescription="My Description"></ReservationLiveStatus> </ReservationLiveStatuses> </ResponseInfo>
GetResourceMappingsRetrieve current mappings for specified resources.
Syntax
::TestShellAPI::GetResourceMappings resources ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resources | Specify a list of resources. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Mapping Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 2" RouteType="uni"/> </ResponseInfo>
GetRouteSegmentsRetrieves all the ports on the route.
Syntax
::TestShellAPI::GetRouteSegments resource ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resource | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="L1 Switch 1234/Blade 1/Port 1" Target="GenericResource 1234/Port 1"/> </Segments> </Route> </Routes> </ResponseInfo>
GetScheduledReservationsRetrieve scheduled reservations for a specified time range.
Syntax
::TestShellAPI::GetScheduledReservations fromTime untilTime ownerName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | fromTime | Specify from which time and date to search. |
string | untilTime | Specify until which time and date to search. |
string | ownerName | Specify reservation owner name |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Reservations> <Reservation Id="af626b88-458b-4e7a-9054-c03d8cffa260" Name="test reservation" StartTime="2015-01-01T10:00:00" EndTime="2015-01-01T12:00:00" RecurrenceType="None" Owner="admin" Booked="true" Status="Pending" ProvisioningStatus="Ready" ActualEndTime="" CreateDate="2012-06-20T10:40:47" ModificationDate="2012-06-20T10:45:16" DomainName="Global"> <Topologies/> </Reservation> </Reservations> </ResponseInfo>
GetServerDateAndTimeRetrieve the server's date and time.
Syntax
::TestShellAPI::GetServerDateAndTime ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo ServerDateTime="2012-06-21T10:52:43.4464527Z" ServerDateTimeString="06/21/2012 10:52"/>
GetTopologyCommandsRetrieve available topology commands in a reservation.
Syntax
::TestShellAPI::GetTopologyCommands reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Commands> <Command Name="ExampleCommand"> <Parameters> <Parameter Name="userParam1" Type="String" Mandatory="false" DefaultValue="Hello"/> <Parameter Name="userParam2" Type="Numeric" Mandatory="false" DefaultValue="42"/> </Parameters> </Command> <Command Name="Setup"> <Parameters/> </Command> </Commands> </ResponseInfo>
GetEnvironmentCommandsRetrieve available environment commands in a reservation.
Syntax
::TestShellAPI::GetEnvironmentCommands reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Commands> <Command Name="ExampleCommand"> <Parameters> <Parameter Name="userParam1" Type="String" Mandatory="false" DefaultValue="Hello"/> <Parameter Name="userParam2" Type="Numeric" Mandatory="false" DefaultValue="42"/> </Parameters> </Command> <Command Name="Setup"> <Parameters/> </Command> </Commands> </ResponseInfo>
GetTopologyDetailsRetrieve the topology parameters and attributes.
Syntax
::TestShellAPI::GetTopologyDetails topologyFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="TP1" Owner="admin" Type="Build" State="Ready"> <Resources> <ResourceInfo Name="Router 1234" FolderFullPath="Lab Routers" Address="192.168.1.201" FullAddress="192.168.1.201" RootAddress="192.168.1.201" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Alias="Router 1234" Locked="false" Excluded="false" WillBeLocked="false"> <ResourceAttributes> <ResourceAttribute Name="SW_Version" Value="" Type="String"/> </ResourceAttributes> <LockInfo/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/ConsolePort 21" FolderFullPath="Temp Automation Resources" Address="21" FullAddress="192.168.1.20/21" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="ConsolePort 21" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/ConsoleServer 1234/ConsolePort 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/Port 2" FolderFullPath="Temp Automation Resources" Address="2" FullAddress="192.168.1.20/2" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 2" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 2"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/PowerPort 12" FolderFullPath="Temp Automation Resources" Address="12" FullAddress="192.168.1.20/12" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="PowerPort 12" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/SmartPower2L 1234/PowerPort 2"/> </ResourceInfo> <ResourceInfo Name="Router 1234/Port 1" FolderFullPath="Lab Routers" Address="1" FullAddress="192.168.1.201/1" RootAddress="192.168.1.201" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 1" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/PowerPort 11" FolderFullPath="Temp Automation Resources" Address="11" FullAddress="192.168.1.20/11" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="PowerPort 11" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/SmartPower2L 1234/PowerPort 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234" FolderFullPath="Temp Automation Resources" Address="192.168.1.20" FullAddress="192.168.1.20" RootAddress="192.168.1.20" ResourceFamilyName="Generic Resource" ResourceModelName="Generic Resource Model" Alias="GenericResource 1234" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/Port 1" FolderFullPath="Temp Automation Resources" Address="1" FullAddress="192.168.1.20/1" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 1" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 1"/> </ResourceInfo> </Resources> <AbstractResources/> <Routes> <Route Source="GenericResource 1234/Port 1" Target="Router 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="GenericResource 1234/Port 1" Target="Router 1234/Port 1"/> </Segments> </Route> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2" RouteType="uni" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2"/> </Segments> </Route> </Routes> <Instructions> Topology instructions. </Instructions> <Driver> ExampleTopologyDriver </Driver> <GlobalInputs ParamName="Some global input"></GlobalInputs> <RequirementsInputs ParamName="Model" ResourceName="test*" InputType="Models"> <PossibleValues>Test Model</PossibleValues> </RequirementsInputs> <RequirementsInputs ParamName="Speed" ResourceName="test*" InputType="Attributes"> <PossibleValues>10 Mbps</PossibleValues> <PossibleValues>100 Mbps</PossibleValues> <PossibleValues>1 Gbps</PossibleValues> <PossibleValues>10 Gbps</PossibleValues> </<RequirementsInputs> <AdditionalInfoInputs ParamName="Test" ResourceName="test*"></AdditionalInfoInputs> <ParentTopology Name="Template01"> <Type>Build</Type> <State>Pending</State> </ParentTopology> <MaxDuration>02:00:00</MaxDuration> </ResponseInfo>
GetResourcesLabelsInTopologyGet resources associated with labels in topology.
Syntax
::TestShellAPI::GetResourcesLabelsInTopology topologyName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyName | Specify the topology name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetResourcesLabelsInTopologyResponseInfo"> <Resources> <Resource Name="res" Type="Resource" LabelName="label1"> </Resource> <Resource Name="res2" Type="Abstract Resource" LabelName="label2"> </Resource> <Resource Name="service1" Type="Service" LabelName="label3"> </Resource> <Resource Name="app1" Type="App" LabelName="label4"> </Resource> </Resources> </ResponseInfo>
GetStickyNotesInTopologyGet sticky notes in topology.
Syntax
::TestShellAPI::GetStickyNotesInTopology topologyName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyName | Specify the topology name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetStickyNotesInTopologyResponseInfo"> <StickyNotes> <StickyNote Id="14acdd6f-90c9-413a-bb2f-de73421483ac" Content="Phase 1 - Planning" Color="#FFBD47"> </StickyNote> <StickyNote Id="cf60f589-dbfb-4153-8da1-256b05438bc5" Content="Requirements Gathering" LabelName="#94B0DA"> </StickyNote> </StickyNotes> </ResponseInfo>
GetTopologiesByCategoryRetrieves the full path of all topologies.
Syntax
::TestShellAPI::GetTopologiesByCategory categoryName categoryValue ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | categoryName | Specify the category's name, If category name is not provided will return all topologies in domain. |
string | categoryValue | Specify the category's value/sub category |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
::TestShellAPI::GetTopologiesByCategory lookUpCategory bonjour resultXml
Output
<ResponseInfo> <Topologies> <FullPath> Root\otherTopology </FullPath> <FullPath> dir1/myTopology </FullPath> </Topologies> </ResponseInfo>
GetTopologyCategoriesRetrieves all topology categories.
Syntax
::TestShellAPI::GetTopologyCategories ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. |
Example
Output
<ResponseInfo xsi:type="CategoryListInfo"> <Categories> <Name> category1 </Name> <Name> otherCategory </Name> <Name> lookUpCategory </Name> </Categories> </ResponseInfo>
GetCategoriesRetrieves all the logged in user's root categories and sub categories
Syntax
::TestShellAPI::GetCategories type ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | type | Specify the categoriy type: Services, Environment or empty for both. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="CategoryListBriefInfo"> <Categories> <Category Name="root1/bpc1" Description="blueprint category" Type="blueprint"/> <Category Name="root2/svcc1" Description="service category" Type="service"/> </Categories> </ResponseInfo>
GetUserDetailsRetrieve a user's settings.
Syntax
::TestShellAPI::GetUserDetails username ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | Specify the name of the user. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="User1234" IsAdmin="false" IsActive="true" IsDomainAdmin="false" Email="user1234@work.com"> <Groups> <Group Name="Everyone"> <TestShellDomains/> </Group> </Groups> </ResponseInfo>
GetAbstractTemplateListRetrieve a list of abstract templates.
Syntax
::TestShellAPI::GetAbstractTemplateList ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <AbstractTemplates> <AbstractTemplate ResourceFamilyName="VM Instance" ResourceModelName="VM" Name="abs" Description="" Owner="admin" DomainName="Global" CreateDate="5/18/2014 6:09:07 AM" Valid="true"></AbstractTemplate> <AbstractTemplate ResourceFamilyName="VM Instance" ResourceModelName="VM" Name="abs2" Description="" Owner="admin" DomainName="Global" CreateDate="5/18/2014 6:09:07 AM" Valid="true"></AbstractTemplate> </AbstractTemplates> </ResponseInfo>
GetServicesRetrieve a list of services and their attributes.
Syntax
::TestShellAPI::GetServices categoryName serviceName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | categoryName | The name of the category of the services you want to receive. |
string | serviceName | The name of the service you want to receive. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Services> <Service Name="ServiceModel1" Description=""> <Attributes> <Attribute Name="Alarm State" Type="String" IsRequired="false" DefaultValue="On" PossibleValues="On,Off"> </Attribute> <Attribute Name="Part Number" Type="String" IsRequired="false" DefaultValue="1" PossibleValues=""> </Attribute> </Attributes> </Service> </Services> </ResponseInfo>
GetReservationServicesPositionsGet service positions in a reservation.
Syntax
::TestShellAPI::GetReservationServicesPositions reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <layout/> </ResponseInfo>
IncludeResourceInclude a resource.
Syntax
::TestShellAPI::IncludeResource resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
IncludeResourcesIncludes the specified resources.
Syntax
::TestShellAPI::IncludeResources resourcesFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
LockResourceLock a resource.
Syntax
::TestShellAPI::LockResource reservationId resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
LockResourcesLock multiple resources.
Syntax
::TestShellAPI::LockResources reservationId resourcesFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
LogoffLogoff from resource manager service.
Syntax
::TestShellAPI::Logoff token ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?token? | Specify the token to be revoked (optional). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
LogonLog in to the TestShell service.
Syntax
::TestShellAPI::Logon username password domainName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | Username to logon with. |
string | password | Specify the user’s login password. |
string | domainName | Specify the name of the domain. If no domain is specified, it logs the user in to the global (default) domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="LogonResponseInfo"> <Domain Name="Global" Description="A domain that includes all available resources" DomainId="dbaf480c-09f7-46d3-a2e2-e35d3e374a16" /> <User Name="admin" IsAdmin="false" IsActive="false" IsDomainAdmin="false" /> <Token Token="Yzhumq0qVkyIwyMkxzk7wQ==" /> </ResponseInfo>
LogoutTNSessionLogout from a console port TN session.
Syntax
::TestShellAPI::LogoutTNSession reservationId resourceFullPath consolePortsFullPath baudRate ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | consolePortsFullPath | Specify a list of console ports according to their location in the Resource Explorer. Include the full path from the root to each console port, separated by slashes. For example: Console/Ports/PortName. |
string | baudRate | Specify the baud rate to apply to the ports. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
MapPortsMap ports on a L1 switch.
Syntax
::TestShellAPI::MapPorts sourcePort destinationPort mappingType ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | sourcePort | Specify the source port. |
string | destinationPort | Specify the destination port. |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. Use 'bi' for Bidirectional mapping or 'uni' for Unidirectional mapping. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
PowerCycleResourceCycle power for resource power ports.
Syntax
::TestShellAPI::PowerCycleResource reservationId resourceFullPath powerPortsFullPath delay ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation’s unique identifier. Admin users may leave this parameter blank to perform power operations on excluded resources. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | powerPortsFullPath | Specify the list of power ports to use in this operation. Include the full path from the root resource to each power port, separated by slashes. For example: Switch20/Blade5/PowerPort1. Leave blank to perform the power operation on all of the specified resource’s power ports. |
string | delay | Specify the number of seconds to delay between each power cycle. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
PowerOffResourcePower off resource power ports.
Syntax
::TestShellAPI::PowerOffResource reservationId resourceFullPath powerPortsFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation’s unique identifier. Admin users may leave this parameter blank to perform power operations on excluded resources. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | powerPortsFullPath | Specify the list of power ports to use in this operation. Include the full path from the root resource to each power port, separated by slashes. For example: Switch20/Blade5/PowerPort1. Leave blank to perform the power operation on all of the specified resource’s power ports. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
PowerOnResourcePower on resource power ports.
Syntax
::TestShellAPI::PowerOnResource reservationId resourceFullPath powerPortsFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation’s unique identifier. Admin users may leave this parameter blank to perform power operations on excluded resources. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | powerPortsFullPath | Specify the list of power ports to use in this operation. Include the full path from the root resource to each power port, separated by slashes. For example: Switch20/Blade5/PowerPort1. Leave blank to perform the power operation on all of the specified resource’s power ports. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
RemoveAttributeRestrictedValuesremove attribute restrictions
Syntax
::TestShellAPI::RemoveAttributeRestrictedValues removeAttributeRestrictionRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | removeAttributeRestrictionRequests | Attribute restrictions to remove". |
string | ?resultXml? | Specify the variable for the XML output. |
RecheckConflictsView which resources are available for a reservation.
Syntax
::TestShellAPI::RecheckConflicts reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ReleaseResourcesFromReservationRelease occupied testing resources.
Syntax
::TestShellAPI::ReleaseResourcesFromReservation reservationId resourcesFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ReleaseTopologyResourcesRelease resources used in topology.
Syntax
::TestShellAPI::ReleaseTopologyResources reservationId topologyFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemoveGroupsFromDomainRemove groups from a domain.
Syntax
::TestShellAPI::RemoveGroupsFromDomain domainName groupNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
list | groupNames | Specify an array of one or more groups. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemovePermittedUsersFromReservationRemove permitted users from a reservation.
Syntax
::TestShellAPI::RemovePermittedUsersFromReservation reservationId usernames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | usernames | List of permitted users to remove from the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemoveResourcesFromDomainRemove resources from a domain.
Syntax
::TestShellAPI::RemoveResourcesFromDomain domainName resourcesNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
list | resourcesNames | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemoveResourcesFromReservationRemove resources from a reservation.
Syntax
::TestShellAPI::RemoveResourcesFromReservation reservationId resourcesFullPath deleteDeployedApps ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
boolean | deleteDeployedApps | Specify false to block deletion of deployed apps when removing them from reservation - only applies to resources of that are deployed apps, when applied to other resources argument is ignored. Parameter is optional and can be left empty |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Conflicts/> </ResponseInfo>
RemoveConnectorsFromReservationRemove connectors from a reservation.
Syntax
::TestShellAPI::RemoveConnectorsFromReservation reservationId endpoints ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | endpoints | The list of removed endpoints. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Connectors> <Connector Alias="a connector" Type="Default" ResourceMappingType="bi" Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1"> </Connector> <Connector Alias="uni connector" Type="Default" ResourceMappingType="uni" Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2"> </Connector> </Connectors> </ResponseInfo>
RemoveRoutesFromReservationRemove routes from a reservation.
Syntax
::TestShellAPI::RemoveRoutesFromReservation reservationId endpoints mappingType ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | endpoints | The list of removed endpoints. |
string | mappingType | Specify bidirectional or unidirectional as the mapping type. Use 'bi' for bidirectional mapping or 'uni' for unidirectional mapping. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 1" Alias="a route" RouteType="bi" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 1"/> <Segment Source="L1 Switch 1234/Blade 1/Port 1" Target="GenericResource 1234/Port 1"/> </Segments> </Route> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2" Alias="uni route" RouteType="uni" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 2"/> <Segment Source="L1 Switch 1234/Blade 1/Port 2" Target="GenericResource 1234/Port 2"/> </Segments> </Route> </Routes> </ResponseInfo>
RemoveTopologiesFromDomainRemoves a list of one or more topologies from a domain.
Syntax
::TestShellAPI::RemoveTopologiesFromDomain domainName topologyNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
list | topologyNames | Specify a list of topology names. Include the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemoveUsersFromGroupRemove users from a group.
Syntax
::TestShellAPI::RemoveUsersFromGroup usernames groupName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | usernames | Specify an array of one or more users. |
string | groupName | Specify the name of the group. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemoveTopologyCategoryRemoves a category from given topology.
Syntax
::TestShellAPI::RemoveTopologyCategory topologyFullPath categoryName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyFullPath | Specify the topology (name or full path), from which to remove the category. For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | categoryName | Specify the category's name which we want to remove. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
::TestShellAPI::RemoveTopologyCategory "myDir/myTopology" lookUpCategory resultXml
SetResourcesFolderSet the folder of multiple resources.
Syntax
::TestShellAPI::SetResourcesFolder resourcesName targetFolder ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesName | Specify the name of the root resources to move to the new target folder. |
string | targetFolder | The path of the target folder. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RenameResourceRename a resource.
Syntax
::TestShellAPI::RenameResource resourceFullPath resourceName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | resourceName | Specify a new resource name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ResetResourceDriverReset a resource driver and cancel its commands.
Syntax
::TestShellAPI::ResetResourceDriver reservationId resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output="Reset completed"/>
RemoveAppFromReservationRemove app resource from existing reservation.
Syntax
::TestShellAPI::RemoveAppFromReservation reservationId appName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | appName | Specify the name of the App. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/>
GetAppsDetailsInReservationRetrieves information on Apps in the reservation.
Syntax
::TestShellAPI::GetAppsDetailsInReservation reservationId appNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | appNames | Specify the name of the Apps. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/>
RemoveServicesFromReservationRemove services and apps from existing reservation.
Syntax
::TestShellAPI::RemoveServicesFromReservation reservationId services ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | services | List of aliases. This list should contain the aliases for both the services and apps that should be removed. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/>
SaveReservationAsTopologyCreate a topology from an existing active reservation.
Syntax
::TestShellAPI::SaveReservationAsTopology reservationId folderFullPath topologyName includeInactiveRoutes ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | folderFullPath | Full container folder path where the new topology will be saved. leaving the folder path empty will try saving the topology under the root. For example: FolderName/FolderNameA. |
string | topologyName | Specify the new name for the new topology. |
boolean | includeInactiveRoutes | Include disconnected routes in the created topology |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Name="TP1"> <Resources> <ResourceInfo Name="Router 1234/Port 1" FolderFullPath="Lab Routers" Address="1" FullAddress="192.168.1.201/1" RootAddress="192.168.1.201" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 1" Locked="true" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Studio" Username="admin" Created="2012-06-20T17:20:37"/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 3"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/Port 1" FolderFullPath="Temp Automation Resources" Address="1" FullAddress="192.168.1.20/1" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 1" Locked="true" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Studio" Username="admin" Created="2012-06-20T17:20:37"/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/Port 2" FolderFullPath="Temp Automation Resources" Address="2" FullAddress="192.168.1.20/2" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="Port 2" Locked="true" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo ReservationName="Immediate reservation" MachineName="PRODUCT-W7 - Tcl" Username="admin" Created="2012-06-20T17:20:37"/> <Connections FullPath="Temp Automation Resources/L1 Switch 1234/Blade 1/Port 2"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/PowerPort 11" FolderFullPath="Temp Automation Resources" Address="11" FullAddress="192.168.1.20/11" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="PowerPort 11" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/SmartPower2L 1234/PowerPort 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/PowerPort 12" FolderFullPath="Temp Automation Resources" Address="12" FullAddress="192.168.1.20/12" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="PowerPort 12" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/SmartPower2L 1234/PowerPort 2"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234/ConsolePort 21" FolderFullPath="Temp Automation Resources" Address="21" FullAddress="192.168.1.20/21" RootAddress="192.168.1.20" ResourceFamilyName="Generic Port" ResourceModelName="Generic Port Model" Alias="ConsolePort 21" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> <Connections FullPath="Temp Automation Resources/ConsoleServer 1234/ConsolePort 1"/> </ResourceInfo> <ResourceInfo Name="GenericResource 1234" FolderFullPath="Temp Automation Resources" Address="192.168.1.20" FullAddress="192.168.1.20" RootAddress="192.168.1.20" ResourceFamilyName="Generic Resource" ResourceModelName="Generic Resource Model" Alias="GenericResource 1234" Locked="false" Excluded="false" WillBeLocked="true"> <ResourceAttributes/> <LockInfo/> </ResourceInfo> <ResourceInfo Name="Router 1234" FolderFullPath="Lab Routers" Address="192.168.1.201" FullAddress="192.168.1.201" RootAddress="192.168.1.201" ResourceFamilyName="Generic Chassis" ResourceModelName="Generic Chassis Model" Alias="Router 1234" Locked="false" Excluded="false" WillBeLocked="false"> <ResourceAttributes> <ResourceAttribute Name="SW_Version" Value="" Type="String"/> </ResourceAttributes> <LockInfo/> </ResourceInfo> </Resources> <AbstractResources/> <Routes> <Route Source="GenericResource 1234/Port 1" Target="Router 1234/Port 1" RouteType="bi" Shared="true"> <Segments> <Segment Source="GenericResource 1234/Port 1" Target="Router 1234/Port 1"/> </Segments> </Route> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2" RouteType="uni" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2"/> </Segments> </Route> </Routes> </ResponseInfo>
SecureLogonLog in to the TestShell service using the AuthToken.
Syntax
::TestShellAPI::SecureLogon token domainName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | token | Token to logon with. |
string | domainName | Specify the name of the domain. If no domain is specified, it logs the user in to the global (default) domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="LogonResponseInfo"> <Domain Name="Global" Description="A domain that includes all available resources" DomainId="dbaf480c-09f7-46d3-a2e2-e35d3e374a16" /> <User Name="admin" IsAdmin="false" IsActive="false" IsDomainAdmin="false" /> <Token Token="Yzhumq0qVkyIwyMkxzk7wQ==" /> </ResponseInfo>
SetAttributeValueSet an attribute value.
Syntax
::TestShellAPI::SetAttributeValue resourceFullPath attributeName attributeValue ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | attributeName | Specify the attribute name. |
string | attributeValue | Specify the attribute’s value. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetAttributesValuesSets new attribute values for the specified resources.
Syntax
::TestShellAPI::SetAttributesValues resourcesAttributesUpdateRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | resourcesAttributesUpdateRequests | Specify a list of resources, attribute names, and new attribute values (up to 10000 rows). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetBaudRateSet console port baud rate.
Syntax
::TestShellAPI::SetBaudRate reservationId resourceFullPath consolePortsFullPath baudRate ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | consolePortsFullPath | Specify a list of console ports according to their location in the Resource Explorer. Include the full path from the root to each console port, separated by slashes. For example: Console/Ports/PortName. |
string | baudRate | Specify the baud rate to apply to the ports. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
SetConsoleForXModemSet a console for Xmodem.
Syntax
::TestShellAPI::SetConsoleForXModem reservationId resourceFullPath consolePortsFullPath baudRate ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | consolePortsFullPath | Specify a list of console ports according to their location in the Resource Explorer. Include the full path from the root to each console port, separated by slashes. For example: Console/Ports/PortName. |
string | baudRate | Specify the baud rate to apply to the ports. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo Output=""/>
SetResourceLiveStatusSets the live status of a resource.
Syntax
::TestShellAPI::SetResourceLiveStatus resourceFullName liveStatusName additionalInfo ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA. |
string | liveStatusName | Resource live status name |
string | additionalInfo | Resource live status additional info |
string | ?resultXml? | Resource live status additional info If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo type="ResourceLiveStatusInfo" liveStatusName="Online" liveStatusDescription="Resource was responding to pings at 12/12/2013 10:35 AM"/> </Response>
SetReservationLiveStatusSets the live status of the reservation.
Syntax
::TestShellAPI::SetReservationLiveStatus reservationId liveStatusName additionalInfo ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specifies the string that represents the reservation’s unique identifier. |
string | liveStatusName | Reservation live status name |
string | additionalInfo | Reservation live status additional info |
string | ?resultXml? | Reservations live status additional info. |
Example
Output
<ResponseInfo> <ReservationLiveStatuses> <ReservationLiveStatus reservationId="344c2d21-578c-4653-a826-54c2035ff998" ReservationLiveStatusName="Pass"></ReservationLiveStatus> </ReservationLiveStatuses> </ResponseInfo>
SetResourceSharedStateSet the resource sharing state.
Syntax
::TestShellAPI::SetResourceSharedState reservationId resourcesFullName isShared ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullName | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
boolean | isShared | Specify whether to allow sharing of the resource. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetRouteAttributesSet a route's attributes.
Syntax
::TestShellAPI::SetRouteAttributes reservationId sourceResourceFullPath targetResourceFullPath applyChangesTo attributeRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | sourceResourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | targetResourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | applyChangesTo | Specify on which resources to apply the attribute changes: Source/Target/All.Source refers to the resource connected to the source endpoint of the route. Target refers to the resource connected to the target endpoint of the route. All encompasses all route resources. Use 0 for Source, 1 for Target and 2 for All. |
list | attributeRequests | Specify an array of attributes and associated attribute values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetRouteAttributesViaAliasSet a route's attributes.
Syntax
::TestShellAPI::SetRouteAttributesViaAlias reservationId routeAlias applyChangesTo attributeRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | routeAlias | Specify the route’s alias. |
string | applyChangesTo | Specify on which resources to apply the attribute changes: Source/Target/All.Source refers to the resource connected to the source endpoint of the route. Target refers to the resource connected to the target endpoint of the route. All encompasses all route resources. Use 0 for Source, 1 for Target and 2 for All. |
list | attributeRequests | Specify an array of attributes and associated attribute values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetConnectorAttributesSet a connector's attributes.
Syntax
::TestShellAPI::SetConnectorAttributes reservationId sourceResourceFullName targetResourceFullName attributeRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | sourceResourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | targetResourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
list | attributeRequests | Specify a matrix of attributes and associated attribute values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetConnectorAttributesViaAliasSet a connector's attributes.
Syntax
::TestShellAPI::SetConnectorAttributesViaAlias reservationId connectorAlias attributeRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | connectorAlias | Specify the connector’s alias. |
list | attributeRequests | Specify a matrix of attributes and associated attribute values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetGroupDomainPermissionsSet the permission level of a group in domain.
Syntax
::TestShellAPI::SetGroupDomainPermissions domainName groupName viewOnly ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | groupName | Specify the group name. |
boolean | viewOnly | Specify if the group should be have view only permissions. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetConnectorsInReservationReserve specified connectors.
Syntax
::TestShellAPI::SetConnectorsInReservation reservationId connectors ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | connectors | List of connectors to set in the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Connectors> <Connector Alias="some alias" Type="Default" ResourceMappingType="bi" Source="bridge1/port1" Target="bridge2/port1"></Connector> </Connectors> </ResponseInfo>
SetTopologyCategorySets a category to a topology.
Syntax
::TestShellAPI::SetTopologyCategory topologyFullPath categoryName categoryValue ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyFullPath | Specify the topology (name or full path), to associate the category to. For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | categoryName | Specify the category's name which we want to set |
string | categoryValue | Specify the category's value |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
::TestShellAPI::SetTopologyCategory "dir1/myTopology" lookUpCategory bonjour resultXml
SyncResourceFromDeviceUpdate a resource with current device settings and mappings.
Syntax
::TestShellAPI::SyncResourceFromDevice resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SyncResourceToDeviceUpdate device settings and mappings from the resource.
Syntax
::TestShellAPI::SyncResourceToDevice resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetReservationResourcePositionSet resource position in a reservation.
Syntax
::TestShellAPI::SetReservationResourcePosition reservationId resourceFullName x y ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName. |
string | x | Specify the x coordinate of the resource's top left corner. |
string | y | Specify the y coordinate of the resource's top left corner. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> </ResponseInfo>
SetServiceDriverSets a service model driver.
Syntax
::TestShellAPI::SetServiceDriver serviceName driverName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | serviceName | Specify the name of the service model. |
string | driverName | Specify the name of the driver. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetServiceLiveStatusSets the live status of a service.
Syntax
::TestShellAPI::SetServiceLiveStatus reservationId serviceAlias liveStatusName additionalInfo ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation's unique identifier. |
string | serviceAlias | Specify the string that represents the service's alias. |
string | liveStatusName | Resource live status name |
string | additionalInfo | Resource live status additional info |
string | ?resultXml? | Resource live status additional info If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/> </Response>
GetServiceLiveStatusGets the live status of a service.
Syntax
::TestShellAPI::GetServiceLiveStatus reservationId serviceAlias ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation's unique identifier. |
string | serviceAlias | Specify the string that represents the service's alias. |
string | ?resultXml? | Resource live status additional info If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/> </Response>
SetReservationServicePositionSet service position in a reservation.
Syntax
::TestShellAPI::SetReservationServicePosition reservationId serviceAlias x y ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | serviceAlias | Specify the alias of the service. |
string | x | Specify the x coordinate of the resource's top left corner. |
string | y | Specify the y coordinate of the resource's top left corner. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> </ResponseInfo>
SetServiceAttributesValuesSet a resource's attributes.
Syntax
::TestShellAPI::SetServiceAttributesValues reservationId serviceAlias attributeRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | serviceAlias | Specify the service name. |
list | attributeRequests | Specify a matrix of attributes and associated attribute values. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
TerminateReservationTerminate a reservation.
Syntax
::TestShellAPI::TerminateReservation reservationId ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UnlockResourceUnlock a resource.
Syntax
::TestShellAPI::UnlockResource reservationId resourceFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UnlockResourcesUnlock multiple resources.
Syntax
::TestShellAPI::UnlockResources reservationId resourcesFullPath ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UnMapPortsRemove mapping for a pair of mapped ports.
Syntax
::TestShellAPI::UnMapPorts portA portB ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | portA | Specify the source port. (i.e. Folder1/Chassis1/Blade1/Port1). |
string | portB | Specify the destination port. (i.e. Folder1/Chassis1/Blade1/Port1). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateConnectorAliasInReservationUpdate connector alias in reservation.
Syntax
::TestShellAPI::UpdateConnectorAliasInReservation reservationId sourceResourceFullName targetResourceFullName direction alias ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | sourceResourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | targetResourceFullName | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | direction | Specify bidirectional or unidirectional as the connector direction. Use 'bi' for bidirectional or 'uni' for unidirectional connector. |
string | alias | Specify the connector’s alias. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateConnectionWeightUpdate the connection weight between two resources.
Syntax
::TestShellAPI::UpdateConnectionWeight resourceAFullPath resourceBFullPath weight ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceAFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | resourceBFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
number | weight | Specify a number to represent the connection weight between the specified resources. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateDomainTopologiesFolderUpdate the domain’s topologies folder.
Syntax
::TestShellAPI::UpdateDomainTopologiesFolder domainName topologiesFolder ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | topologiesFolder | Specify the topology name. Include the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UnarchiveDomainUn archive the domain
Syntax
::TestShellAPI::UnarchiveDomain domainName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | domainName | Specify the name of the domain. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateGroup
Syntax
::TestShellAPI::UpdateGroup groupName newName description groupRole ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | groupName | Specify the name of the group. |
string | newName | Specify the new group name. |
string | description | Provide a short description of the group. |
string | groupRole | Specify the role of the group, possible values: External, Regular, DomainAdmin or Ignore (to keep the current role). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdatePhysicalConnectionDefine the physical connection between two resources.
Syntax
::TestShellAPI::UpdatePhysicalConnection resourceAFullPath resourceBFullPath overrideExistingConnections ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceAFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | resourceBFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. You may leave this parameter blank if you wish to disconnect the existing source resource connection. |
boolean | overrideExistingConnections | Overriding existing connections will automatically remove existing physical connection if they conflict with the requested new connections. If set to 'No', an error message will be displayed if any port is already connected and the operation will be cancelled. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdatePhysicalConnectionsDefine physical connections between resources.
Syntax
::TestShellAPI::UpdatePhysicalConnections physicalConnectionUpdateRequest overrideExistingConnections ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | physicalConnectionUpdateRequest | Specify a list of physical connections to update. |
boolean | overrideExistingConnections | Overriding existing connections will automatically remove existing physical connection if they conflict with the requested new connections. If set to 'No', an error message will be displayed if any port is already connected and the operation will be cancelled. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemapConnectionsRemap connections between resources.
Syntax
::TestShellAPI::RemapConnections reservationId resourcesFullPath printOutput ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
list | resourcesFullPath | Specify a list of resource names. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/ResourceName |
boolean | printOutput | Defines whether to print the command output in the reservation command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo/>
UpdateReservationDescriptionChange a reservation description.
Syntax
::TestShellAPI::UpdateReservationDescription reservationId description ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation ID. |
string | description | Provide an updated description of the reservation. This text will replace the current description. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateReservationNameChange a reservation name.
Syntax
::TestShellAPI::UpdateReservationName reservationId name ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation ID. |
string | name | Provide an updated name of the reservation. This text will replace the current name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateReservationGlobalInputsUpdates the unlinked global inputs in a specified reservation.
Syntax
::TestShellAPI::UpdateReservationGlobalInputs reservationId globalInputs ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation ID. |
list | globalInputs | Global inputs associated with the specified reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ChangeReservationOwnerUpdates the owner in a specified reservation.
Syntax
::TestShellAPI::ChangeReservationOwner reservationId ownerName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the reservation ID. |
string | ownerName | New owner for the reservation. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateResourceAddressUpdate a resource address.
Syntax
::TestShellAPI::UpdateResourceAddress resourceFullPath resourceAddress ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | resourceAddress | Specify the resource’s new address. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateResourceDescriptionChange a resource description.
Syntax
::TestShellAPI::UpdateResourceDescription resourceFullPath resourceDescription ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | resourceDescription | Provide an updated description of the resource. This text will replace the current description. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateResourceDriverUpdate a resource driver.
Syntax
::TestShellAPI::UpdateResourceDriver resourceFullPath driverName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullPath | Specify the resource name. You can also include the full path from the root to the resource before the resource name, separated by slashes. For example: FolderName/RouterA/Port1. |
string | driverName | Specify the name of the driver. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateTopologyOwnerUpdate the topology owner.
Syntax
::TestShellAPI::UpdateTopologyOwner topologyName ownerName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyName | Specify the topology name. Include the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | ownerName | Specify the topology owner. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
AddPermittedEditorsToTopologyAdd permitted editors to a topology.
Syntax
::TestShellAPI::AddPermittedEditorsToTopology topologyName editorNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyName | Specify the topology name. Include the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
list | editorNames | A list of user names to be added as permitted editors to a topology. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RemovePermittedEditorsFromTopologyRemove permitted editors from a topology.
Syntax
::TestShellAPI::RemovePermittedEditorsFromTopology topologyName editorNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyName | Specify the topology name. Include the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
list | editorNames | A list of user names to be removed as permitted editors from a topology. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateTopologyDriverUpdate the topology driver.
Syntax
::TestShellAPI::UpdateTopologyDriver topologyFullPath driverName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | topologyFullPath | Specify topology (name or full path). For full path, specify the full path from the root to the topology, separated by slashes. For example: FolderName/Topologies/TopologyName. |
string | driverName | Specify the name of the driver. Leave empty to remove associated driver. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateUser
Syntax
::TestShellAPI::UpdateUser username email isActive ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | The username of the user you want to update. |
string | The new email address to update to. | |
boolean | isActive | Grant or deny active access to the application. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateUsersLimitations
Syntax
::TestShellAPI::UpdateUsersLimitations userUpdateRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | userUpdateRequests | List of Username, MaxConcurrentReservations, MaxReservationDuration, MaxSavedSandboxes, MaxScheduledSandboxes, and MaxOwnedBlueprints of the users you wish to update. |
string | ?resultXml? | Specify the variable for the XML output. |
Example
UpdateUserGroupsModify a user's group memberships.
Syntax
::TestShellAPI::UpdateUserGroups username groupsNames ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | Specify the name of the user. |
list | groupsNames | Use this method to update a user's group memberships. Activating this method will replace the user's memberships with the specified list of groups. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateUserPasswordModify a user's password.
Syntax
::TestShellAPI::UpdateUserPassword username password ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | username | Specify the name of the user. |
string | password | Specify the user's new login password. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateRouteAliasesInReservationUpdate route aliases in a reservation
Syntax
::TestShellAPI::UpdateRouteAliasesInReservation reservationId routeAliases ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specifies the string that represents the reservation’s unique identifier. |
list | routeAliases | Specify a matrix of route source, route target and alias. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo> <Routes> <Route Source="Router 1234/Port 1" Target="GenericResource 1234/Port 2" RouteType="uni" Shared="true"> <Segments> <Segment Source="Router 1234/Port 1" Target="L1 Switch 1234/Blade 1/Port 3"/> <Segment Source="L1 Switch 1234/Blade 1/Port 3" Target="L1 Switch 1234/Blade 1/Port 2"/> <Segment Source="L1 Switch 1234/Blade 1/Port 2" Target="GenericResource 1234/Port 2"/> </Segments> </Route> </Routes> </ResponseInfo>
UpdateDriverUpdate Driver
Syntax
::TestShellAPI::UpdateDriver driverName driverFile driverFileName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | driverName | Specify the driver name. |
string | driverFileName | Specify the driver file name/full path. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UpdateScriptUpdate Script
Syntax
::TestShellAPI::UpdateScript scriptName scriptFile scriptFileName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | scriptName | Specify the script name. |
string | scriptFile | Specify the script file data (base64 file representation). |
string | scriptFileName | Specify the script file name(optional). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
WriteMessageToReservationOutputAllows sending output to the command output window in a reservation.
Syntax
::TestShellAPI::WriteMessageToReservationOutput reservationId message ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | message | Output message to the command output window. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
GetAllApprovalRequestsGet all approval requests.
Syntax
::TestShellAPI::GetAllApprovalRequests ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetAllApprovalRequestsResponseInfo"> <ApprovalRequestResponseInfos> <ApprovalRequest Id="1" RequestedEntityId="de6f5e37-e3e3-46d0-b915-07a1f30c07d4" RequestedEntityType="Blueprint" UserInfoId="3" StartTime="01/02/2023" EndTime="02/02/2023 14:00:00" State="Pending" CreationDate="30/01/2023 13:18:42" ModifiedDate="30/01/2023 13:18:42" EntityName="BlueprintName" IsApprover="true" RequesterName="userA"> <Duration>60</Duration> </ApprovalRequest> </ApprovalRequestResponseInfos> </ResponseInfo>
GetApprovalRequestGet Approval request.
Syntax
::TestShellAPI::GetApprovalRequest id ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
number | id | Specify the number that represents the request’s unique identifier. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetApprovalRequestResponseInfo" Id="1" RequestedEntityId="de6f5e37-e3e3-46d0-b915-07a1f30c07d4" RequestedEntityType="Blueprint" UserInfoId="3" StartTime="01/02/2023" EndTime="02/02/2023 14:00:00" State="Pending" CreationDate="30/01/2023 13:18:42" ModifiedDate="30/01/2023 13:18:42" EntityName="BlueprintName" IsApprover="true" RequesterName="userA"> <Duration>60</Duration> </ResponseInfo>
CreateBlueprintApprovalRequestCreate a new blueprint approval request.
Syntax
::TestShellAPI::CreateBlueprintApprovalRequest entityId requestNotes globalInputs requirementsInputs additionalInfoInputs startTime endTime duration ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | entityId | Unique identifier of the entity (Blueprint id). |
string | requestNotes | Request description (optional). |
list | globalInputs | Global inputs associated with the specified topology. For example: {['Input Name', 'Value';]}. |
list | requirementsInputs | Requirements inputs associated with the specified topology. For example: {['Resource Name', 'Input Name', 'Value', 'AttributeType';]}, AttributeType can be one of the following: Attributes/Models/Quantity. |
list | additionalInfoInputs | Additional info inputs associated with the specified topology. For example: {['Resource Name', 'Input Name', 'Value';]}. |
string | startTime | Start time of the request (leave empty to immediately request approval). |
string | endTime | End time of the request, after which the request will be invalid (leave empty for unlimited request time). |
string | duration | Time in minutes to consume the entity. For example, sandbox duration (leave empty for unlimited consumption time). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="CreateApprovalRequestResponseInfo" Id="3"/>
DeleteApprovalRequestDelete an approval request.
Syntax
::TestShellAPI::DeleteApprovalRequest id ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
number | id | Unique id of the request. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ApproveApprovalRequestApprove an approval request.
Syntax
::TestShellAPI::ApproveApprovalRequest id message ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
number | id | Unique id of the request. |
string | message | message (optional). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
RejectApprovalRequestReject an approval request.
Syntax
::TestShellAPI::RejectApprovalRequest id message ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
number | id | Unique id of the request. |
string | message | message (optional). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
ConsumeApprovalRequestConsume an approval request.
Syntax
::TestShellAPI::ConsumeApprovalRequest id name startTime endTime ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
number | id | Unique id of the request. |
string | name | Name for the consumed entity (Sandbox name). |
string | startTime | Start time of the request (leave empty for immediate use). |
string | endTime | End time of the request (leave empty for unlimited duration). |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="ConsumeApprovalRequest" Id="3"/>
MoveResourceMove resource to a new parent.
Syntax
::TestShellAPI::MoveResource resourceFullName fullTargetPath disconnectResource ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | resourceFullName | Specify the full name of the resource to be moved. |
string | fullTargetPath | The full path of the target parent. Can be either a resource or a folder (to make resource a root) |
string | disconnectResource | When set to true all resource and child connections will be removed. If false will block move when a connection exists |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
GetSystemInfoGet system information
Syntax
::TestShellAPI::GetSystemInfo ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | version | System version. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
Output
<ResponseInfo xsi:type="GetSystemInfoResponseInfo" Version="2024.1"> </ResponseInfo>
GetExecutionServersGet all Execution Servers.
Syntax
::TestShellAPI::GetExecutionServers ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
list | ExecutionServers | Execution Servers details. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
DeleteExecutionServerDelete an Execution Server.
Syntax
::TestShellAPI::DeleteExecutionServer id ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | id | Unique id of the Execution Server. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetWorkOrderResourceStateSets state of a work order resource in a reservation.
Syntax
::TestShellAPI::SetWorkOrderResourceState reservationId abstractFullName workOrderResourceState ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | abstractFullName | Specifies work order resource request full name. |
string | workOrderResourceState | Specifies work order resource request state. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SetWorkOrderResourceCommentSets comment of a work order resource in a reservation.
Syntax
::TestShellAPI::SetWorkOrderResourceComment reservationId abstractFullName comment ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | abstractFullName | Specifies work order resource request full name. |
string | comment | Specifies work order resource request comment. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
UnselectWorkOrderResourceUnselects work order resource resolved resource in a reservation.
Syntax
::TestShellAPI::UnselectWorkOrderResource reservationId abstractFullName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | abstractFullName | Specifies work order resource request full name. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example
SelectWorkOrderResourceSelects concrete resource for work order resource in a reservation.
Syntax
::TestShellAPI::SelectWorkOrderResource reservationId abstractFullName resourceFullName ?resultXml?
Parameters
Type | Name | Description |
---|---|---|
string | reservationId | Specify the string that represents the reservation’s unique identifier. |
string | abstractFullName | Specifies work order resource request full name. |
string | resourceFullName | Specify full name of the resource. |
string | ?resultXml? | Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout. |
Example