|
632 | 632 | string |
633 | 633 | </td><td><b>approvalSid</b></td><td><div class="description">Leave empty. Used for internal purposes.</div></td></tr><tr><td> |
634 | 634 | string |
635 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;">::TestShellAPI::CreateImmediateReservation "immediate reservation" "admin" 30 0 0 0 resultXml</div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
| 635 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;">::TestShellAPI::CreateImmediateReservation "immediate reservation" "admin" 30 0 0 0 0 resultXml</div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
636 | 636 | <ResponseInfo> |
637 | 637 | <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"> |
638 | 638 | <Topologies/> |
|
691 | 691 | boolean |
692 | 692 | </td><td><b>notifyOnSetupComplete</b></td><td><div class="description">Indicate whether to notify the reservation owner when the reservation setup completes.</div></td></tr><tr><td> |
693 | 693 | string |
694 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;">::TestShellAPI::CreateImmediateTopologyReservation "immediate reservation" "admin" 30 0 0 0 "Temp Automation Resources/TP1" {{"GlobalInputName_0" "GlobalInputValue_0"} {"GlobalInputName_1" "GlobalInputValue_1"}} {{"ResourceName_0" "RequiredInputName_0" "RequiredInputValue_0" "RequiredInputType_0"}} {{"ResourceName_0" "AdditionalInfoName_0" "AdditionalInfoValue_0"}} resultXml</div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
| 694 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;">::TestShellAPI::CreateImmediateTopologyReservation "immediate reservation" "admin" 30 0 0 0 0 "Temp Automation Resources/TP1" {{"GlobalInputName_0" "GlobalInputValue_0"} {"GlobalInputName_1" "GlobalInputValue_1"}} {{"ResourceName_0" "RequiredInputName_0" "RequiredInputValue_0" "RequiredInputType_0"}} {{"ResourceName_0" "AdditionalInfoName_0" "AdditionalInfoValue_0"}} resultXml</div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
695 | 695 | <ResponseInfo> |
696 | 696 | <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"> |
697 | 697 | <Topologies/> |
|
721 | 721 | string |
722 | 722 | </td><td><b>approvalSid</b></td><td><div class="description">Leave empty. Used for internal purposes.</div></td></tr><tr><td> |
723 | 723 | string |
724 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;">::TestShellAPI::CreateReservation "test reservation" "admin" "01/01/1970 00:00" "12/21/2012 00:00" 1 1 10 resultXml</div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
| 724 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;">::TestShellAPI::CreateReservation "test reservation" "admin" "01/01/2026 00:00" "12/21/2026 00:00" 1 1 0 0 0 "" resultXml</div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
725 | 725 | <ResponseInfo> |
726 | 726 | <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"> |
727 | 727 | <Topologies/> |
|
808 | 808 | string |
809 | 809 | </td><td><b>resourceDescription</b></td><td><div class="description">Provide a short description to help identify the resource.</div></td></tr><tr><td> |
810 | 810 | string |
811 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><br /> #create chassis<br /> ::TestShellAPI::CreateResource "Generic Chassis" "Generic Chassis Model" "Router 1234" "192.168.1.200" "Lab Routers" "" "a generic router" resultXml<br /> #create a child port for the chassis<br /> ::TestShellAPI::CreateResource "Generic Port" "Generic Port Model" "Port 1" "1" "Lab Routers" "Router 1234" "a generic router port" resultXml<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
| 811 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"> |
| 812 | +<br /> #create chassis |
| 813 | +<br /> ::TestShellAPI::CreateResource "Generic Chassis" "Generic Chassis Model" "Router 1234" "192.168.1.200" "Lab Routers" "" "a generic router" resultXml |
| 814 | +<br /> #create a child port for the chassis |
| 815 | +<br /> ::TestShellAPI::CreateResource "Generic Port" "Generic Port Model" "Port 1" "1" "Lab Routers" "Router 1234" "a generic router port" resultXml |
| 816 | +<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
812 | 817 | <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"> |
813 | 818 | <ResourceAttributes> |
814 | 819 | <ResourceAttribute Name="SW_Version" Value="" Type="String"/> |
|
831 | 836 | list |
832 | 837 | </td><td><b>resourceInfoDtos</b></td><td><div class="description">List of resources to add. </div></td></tr><tr><td> |
833 | 838 | string |
834 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><br /> #create chassis<br /> ::TestShellAPI::CreateResources {{"Generic Chassis" "Generic Chassis Model" "Router 1234" "192.168.1.200" "Lab Routers" "" "a generic router"}} resultXml<br /> #create two child ports for the chassis<br /> ::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<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"><ResponseInfo Output=""/></pre></div></div></div></p></p></div></div><a class="iref" href="#TOC">back to TOC</a><HR /><div class="command"><a name="CreateRouteInReservation" /><h3>CreateRouteInReservation<span class="commandTitle">Create a route between two resources.</span></h3><div class="description">Creates a route between the specified source and target resources.</div><p><b> |
| 839 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"> |
| 840 | +<br /> #create chassis |
| 841 | +<br /> ::TestShellAPI::CreateResources {{"Generic Chassis" "Generic Chassis Model" "Router 1234" "192.168.1.200" "Lab Routers" "" "a generic router"}} resultXml |
| 842 | +<br /> #create two child ports for the chassis |
| 843 | +<br /> ::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 |
| 844 | +<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"><ResponseInfo Output=""/></pre></div></div></div></p></p></div></div><a class="iref" href="#TOC">back to TOC</a><HR /><div class="command"><a name="CreateRouteInReservation" /><h3>CreateRouteInReservation<span class="commandTitle">Create a route between two resources.</span></h3><div class="description">Creates a route between the specified source and target resources.</div><p><b> |
835 | 845 | Syntax |
836 | 846 | </b></p><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre><p class="syntax">::TestShellAPI::CreateRouteInReservation reservationId sourceResourceFullPath targetResourceFullPath overrideActiveRoutes mappingType maxHops routeAlias isShared ?resultXml?</p></pre></div></div></div><p><b> |
837 | 847 | Parameters |
|
1515 | 1525 | string |
1516 | 1526 | </td><td><b>topologyPath</b></td><td><div class="description">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.</div></td></tr><tr><td> |
1517 | 1527 | string |
1518 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><br /> ::TestShellAPI::GetCategoriesOfTopology "Folder1/exampleTopology" resultXml<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
| 1528 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"> |
| 1529 | +<br /> ::TestShellAPI::GetCategoriesOfTopology "Folder1/exampleTopology" resultXml |
| 1530 | +<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
1519 | 1531 | <ResponseInfo xsi:type="CategoriesOfTopologyInfo"> |
1520 | 1532 | <Categories> |
1521 | 1533 | <Category Name="sampleCategory" Value="hello"/> |
|
2202 | 2214 | string |
2203 | 2215 | </td><td><b>categoryValue</b></td><td><div class="description">Specify the category's value/sub category</div></td></tr><tr><td> |
2204 | 2216 | string |
2205 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><br /> ::TestShellAPI::GetTopologiesByCategory lookUpCategory bonjour resultXml<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
| 2217 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output.</div><div class="moreDescription">If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"> |
| 2218 | +<br /> ::TestShellAPI::GetTopologiesByCategory lookUpCategory bonjour resultXml |
| 2219 | +<br /> </div></div></div><p><b>Output</b><br /><li><b>resultXml</b></li><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre class="preStyle"> |
2206 | 2220 | <ResponseInfo> |
2207 | 2221 | <Topologies> |
2208 | 2222 | <FullPath> |
|
2598 | 2612 | string |
2599 | 2613 | </td><td><b>categoryName</b></td><td><div class="description">Specify the category's name which we want to remove.</div></td></tr><tr><td> |
2600 | 2614 | string |
2601 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><br /> ::TestShellAPI::RemoveTopologyCategory "myDir/myTopology" lookUpCategory resultXml<br /> </div></div></div></p></div></div><a class="iref" href="#TOC">back to TOC</a><HR /><div class="command"><a name="MoveResources" /><h3>MoveResources<span class="commandTitle">Move multiple resources.</span></h3><div class="description">Allows to change the folder that the specified root resources belong to.</div><p><b> |
| 2615 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"> |
| 2616 | +<br /> ::TestShellAPI::RemoveTopologyCategory "myDir/myTopology" lookUpCategory resultXml |
| 2617 | +<br /> </div></div></div></p></div></div><a class="iref" href="#TOC">back to TOC</a><HR /><div class="command"><a name="MoveResources" /><h3>MoveResources<span class="commandTitle">Move multiple resources.</span></h3><div class="description">Allows to change the folder that the specified root resources belong to.</div><p><b> |
2602 | 2618 | Syntax |
2603 | 2619 | </b></p><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre><p class="syntax">::TestShellAPI::MoveResources resourcesName targetFolder ?resultXml?</p></pre></div></div></div><p><b> |
2604 | 2620 | Parameters |
|
2941 | 2957 | string |
2942 | 2958 | </td><td><b>categoryValue</b></td><td><div class="description">Specify the category's value</div></td></tr><tr><td> |
2943 | 2959 | string |
2944 | | - </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><br /> ::TestShellAPI::SetTopologyCategory "dir1/myTopology" lookUpCategory bonjour resultXml<br /> </div></div></div></p></div></div><a class="iref" href="#TOC">back to TOC</a><HR /><div class="command"><a name="SyncResourceFromDevice" /><h3>SyncResourceFromDevice<span class="commandTitle">Update a resource with current device settings and mappings.</span></h3><div class="description">Synchronizes the specified resource with current device settings and mappings.</div><p><b> |
| 2960 | + </td><td><b>?resultXml?</b></td><td><div class="description">Specify the variable for the XML output. If a variable is not provided, the results will be sent to stdout.</div></td></tr></table><div><p><b>Example</b><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"> |
| 2961 | +<br /> ::TestShellAPI::SetTopologyCategory "dir1/myTopology" lookUpCategory bonjour resultXml |
| 2962 | +<br /> </div></div></div></p></div></div><a class="iref" href="#TOC">back to TOC</a><HR /><div class="command"><a name="SyncResourceFromDevice" /><h3>SyncResourceFromDevice<span class="commandTitle">Update a resource with current device settings and mappings.</span></h3><div class="description">Synchronizes the specified resource with current device settings and mappings.</div><p><b> |
2945 | 2963 | Syntax |
2946 | 2964 | </b></p><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetContainerCode" dir="ltr"><div style="color:Black;"><pre><p class="syntax">::TestShellAPI::SyncResourceFromDevice resourceFullPath ?resultXml?</p></pre></div></div></div><p><b> |
2947 | 2965 | Parameters |
|
0 commit comments