Cisco UCS Director – Carmel (5.0) Ravikumar Pisupati Senior Manager, Engineering Jun, 2014
Objectives Newly added API’s OA samples PowerShell Commandlets Agenda 6.Module Overview Objectives Newly added API’s OA samples PowerShell Commandlets Agenda API’s added to Carmel Samples added in OA Module
List Of Newly Added API’s S.No API name 1 userAPIExportVDC 2 userAPIImportVDC 3 userAPIDeleteCatalogItem 4 customtaskImport 5 customworkflowImport 6 customworkflowExport 7 userAPICreateServiceContainerTemplate 8 userAPIUpdateServiceContainerTemplate 9 userAPICreateServiceContainerwithoutCatalog
userAPIExportVDC Input Request in JSON Format API to export existing vDC’s. Input vDC Name Request in JSON Format /app/api/rest?formatType=json&opName=userAPIExportVDC&opData= {param0:"sample"}
userAPIImportVDC Input Request in JSON Format API to import selected vDC Input String Request in JSON Format /app/api/rest?formatType=json&opName=userAPIImportVDC&opData={ param0:"sample"}
userAPIDeleteCatalogItem API to delete a catalog item Input Catalog Item Name Request in JSON Format /app/api/rest?formatType=json&opName=userAPIDeleteCatalogItem&op Data={param0:"sample"}
customtaskImport Input API to import selected custom task into the system Input This API has to be tested in rest API client Workflow task is to be encoded in UTF-8 format and given as input Link for encoding : http://www.url-encode-decode.com/
customworkflowImport API to Import one or more workflows into the system Input This API has to be tested in rest API client Workflow task is to be encoded in UTF-8 format and given as input Link for encoding : http://www.url-encode-decode.com/
customworkflowExport API to Export one or more workflows into the system Input This API has to be tested in rest API client Workflow task is to be encoded in UTF-8 format and given as input Link for encoding : http://www.url-encode-decode.com/
userAPICreateServiceContainerTemplate API to create service container template with the given inputs Input Service container Template Request in JSON Format /app/api/rest?formatType=json&opName=fenced:userAPICreateService ContainerTemplate&opData={param0:{"templateId":1000,"templateType" :"sample","templateName":"sample","templateDescription":"sample","con tainerType":"sample","templateDefinitionData":"sample","templateConfig" :{"vInfraPolicy":"sample","networks“
userAPIUpdateServiceContainerTemplate API to update existing service container with the details provided Input Service container Template Request in JSON Format /app/api/rest?formatType=json&opName=fenced:userAPIUpdateService ContainerTemplate&opData={param0:{"templateId":1000,"templateType" :"sample","templateName":"sample","templateDescription":"sample","con tainerType":"sample","templateDefinitionData":"sample","templateConfig" :{"vInfraPolicy":"sample","networks“}
userAPICreateServiceContainerwithoutCatalog API to create service container without using a catalog Input Name of the container Group Id Application container Template name Request in JSON Format /app/api/rest?formatType=json&opName=fenced:userAPICreateService ContainerWithoutCatalog&opData={param0:"sample",param1:1000,para m2:"sample"}
Open Automation Samples Form Controller/Validation Validates the form in OA sample.
Bar Chart Bar Chart used in OA sample
Pie Chart Pie Chart used in OA sample
Line Chart Line Chart used in OA sample
Heat Map Heat Map used in OA sample
Form Report Form Report used in OA sample
Summary Report Summary Report used in OA sample
Monitoring trigger Monitoring Trigger used in OA sample
Adding UI Menu UI Menu used in OA sample
PowerShell Commandlets Microsoft PowerShell is one of the widely-used environments for Network and Datacenter management purposes. A Power-Shell interface to the UCSD APIs would help the existing administrators trained on PowerShell to handle Datacenter Management with ease. UCSD provides a REST interface to manage its internal behavior. The PowerShell cmdlets provide a wrapper to these REST APIs.
PowerShell Commandlets Pre requisites .NET Framework 4.0 and above PowerShell version 3 and above
PowerShell Commandlets API’s supported The command Get-Module shall be used to verify that the UCSD Module has been added to the PowerShell runtime, as shown above. .
PowerShell Commandlets Setting up the environment [Environment]::SetEnvironmentVariable("UCSD_SERVER","10.1. 1.1","User") [Environment]::SetEnvironmentVariable("UCSD_RESTKEY","562 FDF763A384E78B9BAB7FE02CA13B6","User") To check the configured environment [Environment]::GetEnvironmentVariable("UCSD_RESTKEY","Use r") .
PowerShell Commandlets Commandlets execution .