Created
April 22, 2020 21:20
-
-
Save kahou82/2cab960462d9ce59aecce5ee64b76b34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Results": [ | |
{ | |
"Moid": "5e9dded1696e652d3095c862", | |
"ObjectType": "workflow.BatchApiExecutor", | |
"CreateTime": "2020-04-20T17:41:37.858Z", | |
"ModTime": "2020-04-20T17:41:37.859Z", | |
"Tags": [], | |
"Owners": [ | |
"5e9ddc4a7564612d30e5f1a7", | |
"shared" | |
], | |
"SharedScope": "shared", | |
"AccountMoid": "5e9ddc4a7564612d30e5f1a7", | |
"DomainGroupMoid": "5e9ddc4a7564612d30e5f1a8", | |
"Ancestors": [], | |
"PermissionResources": [ | |
{ | |
"ObjectType": "organization.Organization", | |
"Moid": "5e9ddec96972652d301eb1f2", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/organization/Organizations/5e9ddec96972652d301eb1f2" | |
} | |
], | |
"Batch": [ | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configConfMo dn="sys/rack-unit-1/boot-precision" inHierarchical="true"> <inConfig> <lsbootDevPrecision dn="sys/rack-unit-1/boot-precision" rebootOnUpdate="no" reapply="Yes" status="modified"><lsbootHdd order="1" type="LOCALHDD" rn="hdd-os" state="Enabled" {{if (eq .global.task.input.BootMode "Uefi")}}{{if (ContainsString .global.task.input.Model "M4")}}{{if (ContainsString .global.task.input.OsVersion "ESXi")}} boot-loader-path="\\EFI\\BOOT\\" boot-loader-name="BOOTx64.EFI" boot-loader-descr="UEFI_OS" {{end}}{{end}}{{end}} /><lsbootVMedia order="2" type="VMEDIA" subtype="cimc-mapped-dvd" name="vmos" state="Enabled" /></lsbootDevPrecision> </inConfig> </configConfMo>", | |
"ContentType": "xml", | |
"Name": "SetRackServerBootOrder", | |
"Outcomes": null, | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
}, | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configConfMo dn="sys/rack-unit-1/one-time-precision-boot" inHierarchical="true"> <inConfig> <oneTimePrecisionBootDevice device={{if ne .global.task.input.AnswerSource "Embedded"}}"os"{{else}}"vmos"{{end}} rebootOnUpdate="Yes"/> </inConfig> </configConfMo>", | |
"ContentType": "xml", | |
"Name": "SetOneTimeBootOrderRackServer", | |
"Outcomes": [ | |
{ | |
"Condition": "true", | |
"Message": "Boot Order configured", | |
"ObjectType": "workflow.Outcome" | |
} | |
], | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
} | |
], | |
"Constraints": { | |
"ObjectType": "workflow.TaskConstraints", | |
"TargetDataType": null | |
}, | |
"Description": "Rack Server Boot order Task Batch APIs", | |
"Name": "SetRackServerBootOrder", | |
"Outcomes": null, | |
"Output": null, | |
"SkipOnCondition": "", | |
"TaskDefinition": { | |
"ObjectType": "workflow.TaskDefinition", | |
"Moid": "5e9dded1696f6e2d30ffde56", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/workflow/TaskDefinitions/5e9dded1696f6e2d30ffde56" | |
} | |
}, | |
{ | |
"Moid": "5e9dded2696e652d3095c872", | |
"ObjectType": "workflow.BatchApiExecutor", | |
"CreateTime": "2020-04-20T17:41:38.161Z", | |
"ModTime": "2020-04-20T17:41:38.161Z", | |
"Tags": [], | |
"Owners": [ | |
"5e9ddc4a7564612d30e5f1a7", | |
"shared" | |
], | |
"SharedScope": "shared", | |
"AccountMoid": "5e9ddc4a7564612d30e5f1a7", | |
"DomainGroupMoid": "5e9ddc4a7564612d30e5f1a8", | |
"Ancestors": [], | |
"PermissionResources": [ | |
{ | |
"ObjectType": "organization.Organization", | |
"Moid": "5e9ddec96972652d301eb1f2", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/organization/Organizations/5e9ddec96972652d301eb1f2" | |
} | |
], | |
"Batch": [ | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configConfMo inHierarchical="true" dn="sys/osi/osiStart"> <inConfig> <osiStart dn="sys/osi/osiStart" adminState="trigger" {{ if .global.task.input.IsoShareIp }} isoShareIp="{{.global.task.input.IsoShareIp}}" {{ end }} {{ if .global.task.input.IsoShare }} isoShare="{{.global.task.input.IsoShare}}" {{ end }} {{ if .global.task.input.IsoShareType }} isoShareType="{{.global.task.input.IsoShareType}}" {{ end }} {{ if .global.task.input.IsoShareUser }} username="{{.global.task.input.IsoShareUser}}" {{ end }} {{ if .global.task.input.IsoSharePassword }} password="{{.global.task.input.IsoSharePassword}}" {{ end }} {{ if ne .global.task.input.AnswerSource "Embedded" }} answerFileShareFile="/answer" answerFileSharePath="/var/nuova/BIOS/" answerFileShareIp="localhost" {{ end }} answerFileShareType="scp" configShareFile="/config" configSharePath="/var/nuova/BIOS/" configShareIp="localhost" configShareType="scp" remoteShareType="scp"/> </inConfig> </configConfMo>", | |
"ContentType": "xml", | |
"Name": "OSIStart", | |
"Outcomes": [ | |
{ | |
"Condition": "{{if (ContainsString .global.OSIStart.output.ErrorDescription "Operation failed. Failed to Map SCU ISO")}}true{{end}}", | |
"Error": true, | |
"Message": "Operating System installation failed. Please check Image details in Software Repository.", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStart.output.ErrorCode}}true{{else}}false{{end}}", | |
"Error": true, | |
"Message": "{{if (ContainsString .global.OSIStart.output.ErrorDescription "An instance of SCU NI-OSI boot may be in progress")}}Operating System installation failed. Another instance of Operating System installation agent session may be in progress.{{else}}{{.global.OSIStart.output.ErrorDescription}}{{end}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStart.output.Status}}true{{else}}false{{end}}", | |
"Message": "Operating System installation initiated", | |
"ObjectType": "workflow.Outcome" | |
} | |
], | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "@errorCode", | |
"Type": "simple" | |
}, | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorDescription", | |
"Path": "@errorDescr", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "Status", | |
"Path": "//osiStart/@status", | |
"Type": "simple" | |
} | |
], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 300 | |
} | |
], | |
"Constraints": { | |
"ObjectType": "workflow.TaskConstraints", | |
"TargetDataType": null | |
}, | |
"Description": "Rack Server OS Install Start Task Batch APIs", | |
"Name": "StartRackServerOSInstallAgent", | |
"Outcomes": null, | |
"Output": null, | |
"SkipOnCondition": "", | |
"TaskDefinition": { | |
"ObjectType": "workflow.TaskDefinition", | |
"Moid": "5e9dded2696f6e2d30ffde8e", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/workflow/TaskDefinitions/5e9dded2696f6e2d30ffde8e" | |
} | |
}, | |
{ | |
"Moid": "5e9dded2696e652d3095c882", | |
"ObjectType": "workflow.BatchApiExecutor", | |
"CreateTime": "2020-04-20T17:41:38.353Z", | |
"ModTime": "2020-04-20T17:41:38.354Z", | |
"Tags": [], | |
"Owners": [ | |
"5e9ddc4a7564612d30e5f1a7", | |
"shared" | |
], | |
"SharedScope": "shared", | |
"AccountMoid": "5e9ddc4a7564612d30e5f1a7", | |
"DomainGroupMoid": "5e9ddc4a7564612d30e5f1a8", | |
"Ancestors": [], | |
"PermissionResources": [ | |
{ | |
"ObjectType": "organization.Organization", | |
"Moid": "5e9ddec96972652d301eb1f2", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/organization/Organizations/5e9ddec96972652d301eb1f2" | |
} | |
], | |
"Batch": [ | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configResolveClass inHierarchical="false" classId="osiStatus" />", | |
"ContentType": "xml", | |
"Name": "OSIStatus", | |
"Outcomes": [ | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "Operating system ISO file is mounted now"}}{{else}}false{{end}}", | |
"Message": "{{.global.OSIStatus.output.Status | TrimSpace}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "OS install process started"}}{{else}}false{{end}}", | |
"Error": true, | |
"Message": "{{.global.OSIStatus.output.Status | TrimSpace}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "Success"}}{{else}}false{{end}}", | |
"Message": "{{.global.OSIStatus.output.Status | TrimSpace}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "OS media not found. Please provide proper OS media"}}{{else}}false{{end}}", | |
"Error": true, | |
"Message": "{{.global.OSIStatus.output.Status | TrimSpace}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "NI-OSI session not found"}}{{else}}false{{end}}", | |
"Error": true, | |
"Message": "Operating System installation failed", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "OS install running on this CIMC"}}{{else}}false{{end}}", | |
"Message": "{{.global.OSIStatus.output.Status | TrimSpace}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if .global.OSIStatus.output.Status}}{{ContainsString (.global.OSIStatus.output.Status | TrimSpace) "SCU (NI-OSI) booting in progress"}}{{else}}false{{end}}", | |
"Error": true, | |
"Message": "Operating System installation is in progress", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "true", | |
"Error": true, | |
"Message": "OS Install Error: {{.global.OSIStatus.output.Status | TrimSpace}}", | |
"ObjectType": "workflow.Outcome" | |
} | |
], | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "//error/@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "Status", | |
"Path": "//osiStatus/@currentStatus", | |
"Type": "simple" | |
} | |
], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
} | |
], | |
"Constraints": { | |
"ObjectType": "workflow.TaskConstraints", | |
"TargetDataType": null | |
}, | |
"Description": "Rack Server OS Install Status Task Batch APIs", | |
"Name": "WatchRackServerOSInstallStatus", | |
"Outcomes": null, | |
"Output": { | |
"Status": "{{if .global.OSIStatus.output.Status}}{{.global.OSIStatus.output.Status | TrimSpace}}{{else}}""{{end}}" | |
}, | |
"SkipOnCondition": "{{(eq .global.task.input.AnswerSource "Embedded")}}", | |
"TaskDefinition": { | |
"ObjectType": "workflow.TaskDefinition", | |
"Moid": "5e9dded2696f6e2d30ffdec4", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/workflow/TaskDefinitions/5e9dded2696f6e2d30ffdec4" | |
} | |
}, | |
{ | |
"Moid": "5e9dded5696e652d3095c891", | |
"ObjectType": "workflow.BatchApiExecutor", | |
"CreateTime": "2020-04-20T17:41:41.181Z", | |
"ModTime": "2020-04-20T17:41:41.182Z", | |
"Tags": [], | |
"Owners": [ | |
"5e9ddc4a7564612d30e5f1a7", | |
"shared" | |
], | |
"SharedScope": "shared", | |
"AccountMoid": "5e9ddc4a7564612d30e5f1a7", | |
"DomainGroupMoid": "5e9ddc4a7564612d30e5f1a8", | |
"Ancestors": [], | |
"PermissionResources": [ | |
{ | |
"ObjectType": "organization.Organization", | |
"Moid": "5e9ddec96972652d301eb1f2", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/organization/Organizations/5e9ddec96972652d301eb1f2" | |
} | |
], | |
"Batch": [ | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configResolveClass inHierarchical="false" classId="lsbootBootSecurity" />", | |
"ContentType": "xml", | |
"Name": "BootSecureMode", | |
"Outcomes": [ | |
{ | |
"Condition": "{{if (ne .global.task.input.AnswerSource "Embedded")}}{{ContainsString (.global.BootSecureMode.output.SecureBootMode | TrimSpace) "enabled"}}{{else}}false{{end}}", | |
"Error": true, | |
"Message": "UEFI Secure Boot Mode not supported for Installation. For more information, see Help Center.", | |
"ObjectType": "workflow.Outcome" | |
} | |
], | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "//error/@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "SecureBootMode", | |
"Path": "//lsbootBootSecurity/@secureBoot", | |
"Type": "simple" | |
} | |
], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
}, | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configResolveClass inHierarchical="false" classId="biosBootMode" />", | |
"ContentType": "xml", | |
"Name": "BiosBootMode", | |
"Outcomes": null, | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "//error/@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ActualBootMode", | |
"Path": "//biosBootMode/@actualBootMode", | |
"Type": "simple" | |
} | |
], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
}, | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configResolveClass inHierarchical="false" classId="storageControllerProps" />", | |
"ContentType": "xml", | |
"Name": "StorageControllerProp", | |
"Outcomes": null, | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "//error/@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "BootDriveSet", | |
"Path": "//storageControllerProps/@bootDrive", | |
"Type": "simple" | |
} | |
], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
}, | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configResolveClass inHierarchical="false" classId="storageVirtualDrive" />", | |
"ContentType": "xml", | |
"Name": "StorageVirtualDrives", | |
"Outcomes": [ | |
{ | |
"Condition": "{{$length := len .global.StorageVirtualDrives.output.Drives}}{{if lt $length 1}}true{{else}}false{{end}}", | |
"Error": true, | |
"Message": "No virtual drives exist in the server. Create new virtual drives in the server and retry", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "{{if eq .global.BiosBootMode.output.ActualBootMode "Legacy"}}{{if ne .global.StorageControllerProp.output.BootDriveSet "none"}}{{range $drives:=.global.StorageVirtualDrives.output.Drives}}{{if eq $drives.BootDrive "true"}}{{$m := FindAllString $drives.Size "([0-9]+)"}}{{if $m}}{{ge ((index $m 0) | Atoi) 2048000}}{{end}}{{end}}{{end}}{{else}}{{$vd0Size := (index .global.StorageVirtualDrives.output.Drives 0).Size}}{{$m := FindAllString $vd0Size "([0-9]+)"}}{{if $m}}{{ge ((index $m 0) | Atoi) 2048000}}{{end}}{{end}}{{end}}", | |
"Error": true, | |
"Message": "Virtual Disk size cannot be greater than 2TB.", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "true", | |
"Message": "Configurations validated", | |
"ObjectType": "workflow.Outcome" | |
} | |
], | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "//error/@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "Drive", | |
"ItemType": "complex", | |
"Name": "Drives", | |
"Path": "//storageVirtualDrive", | |
"Type": "collection" | |
} | |
], | |
"Types": [ | |
{ | |
"ObjectType": "content.ComplexType", | |
"Name": "Drive", | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "Dn", | |
"Path": "@dn", | |
"Type": "simple" | |
}, | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "Size", | |
"Path": "@size", | |
"Type": "simple" | |
}, | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "BootDrive", | |
"Path": "@bootDrive", | |
"Type": "simple" | |
} | |
] | |
} | |
] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
} | |
], | |
"Constraints": { | |
"ObjectType": "workflow.TaskConstraints", | |
"TargetDataType": null | |
}, | |
"Description": "Rack Server OS Install Parameter Validation Task Batch APIs", | |
"Name": "ConfirmOSInstallServerParameters", | |
"Outcomes": null, | |
"Output": { | |
"BootDriveSet": "{{.global.StorageControllerProp.output.BootDriveSet | TrimSpace}}", | |
"BootMode": "{{.global.BiosBootMode.output.ActualBootMode | TrimSpace}}", | |
"SecureBootMode": "{{.global.BootSecureMode.output.SecureBootMode | TrimSpace}}" | |
}, | |
"SkipOnCondition": "", | |
"TaskDefinition": { | |
"ObjectType": "workflow.TaskDefinition", | |
"Moid": "5e9dded2696f6e2d30ffdefb", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/workflow/TaskDefinitions/5e9dded2696f6e2d30ffdefb" | |
} | |
}, | |
{ | |
"Moid": "5e9dded5696e652d3095c8a5", | |
"ObjectType": "workflow.BatchApiExecutor", | |
"CreateTime": "2020-04-20T17:41:41.474Z", | |
"ModTime": "2020-04-20T17:41:41.475Z", | |
"Tags": [], | |
"Owners": [ | |
"5e9ddc4a7564612d30e5f1a7", | |
"shared" | |
], | |
"SharedScope": "shared", | |
"AccountMoid": "5e9ddc4a7564612d30e5f1a7", | |
"DomainGroupMoid": "5e9ddc4a7564612d30e5f1a8", | |
"Ancestors": [], | |
"PermissionResources": [ | |
{ | |
"ObjectType": "organization.Organization", | |
"Moid": "5e9ddec96972652d301eb1f2", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/organization/Organizations/5e9ddec96972652d301eb1f2" | |
} | |
], | |
"Batch": [ | |
{ | |
"ObjectType": "workflow.XmlApi", | |
"Body": "<configResolveClass inHierarchical="false" classId="commVMediaMap" />", | |
"ContentType": "xml", | |
"Name": "VMediaMappingStatus", | |
"Outcomes": [ | |
{ | |
"Condition": "{{if (ne .global.VMediaMappingStatus.output.MappingStatus "OK")}}true{{else}}false{{end}}", | |
"Error": true, | |
"Message": "Virtual Media mapping failed. {{.global.VMediaMappingStatus.output.MappingStatus}}", | |
"ObjectType": "workflow.Outcome" | |
}, | |
{ | |
"Condition": "true", | |
"Message": "Mapping validated", | |
"ObjectType": "workflow.Outcome" | |
} | |
], | |
"ResponseSpec": { | |
"ObjectType": "content.Grammar", | |
"ErrorParameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "ErrorCode", | |
"Path": "//error/@errorCode", | |
"Type": "simple" | |
} | |
], | |
"Parameters": [ | |
{ | |
"ObjectType": "content.Parameter", | |
"AcceptSingleValue": false, | |
"ComplexType": "", | |
"ItemType": "simple", | |
"Name": "MappingStatus", | |
"Path": "//commVMediaMap/@mappingStatus", | |
"Type": "simple" | |
} | |
], | |
"Types": [] | |
}, | |
"SkipOnCondition": "", | |
"Timeout": 0 | |
} | |
], | |
"Constraints": { | |
"ObjectType": "workflow.TaskConstraints", | |
"TargetDataType": null | |
}, | |
"Description": "Rack Server Virtual Maedia Mapping Status Validation Task Batch APIs", | |
"Name": "ConfirmServerVMediaMappingStatus", | |
"Outcomes": null, | |
"Output": { | |
"MappingStatus": "{{.global.VMediaMappingStatus.output.MappingStatus | TrimSpace}}" | |
}, | |
"SkipOnCondition": "", | |
"TaskDefinition": { | |
"ObjectType": "workflow.TaskDefinition", | |
"Moid": "5e9dded5696f6e2d30ffdf61", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/workflow/TaskDefinitions/5e9dded5696f6e2d30ffdf61" | |
} | |
}, | |
{ | |
"Moid": "5e9f60eb696e652d3095cbfb", | |
"ObjectType": "workflow.BatchApiExecutor", | |
"CreateTime": "2020-04-21T21:09:00.381Z", | |
"ModTime": "2020-04-22T18:42:17.502Z", | |
"Tags": [], | |
"Owners": [ | |
"5e9ddc4a7564612d30e5f1a7", | |
"shared" | |
], | |
"SharedScope": "shared", | |
"AccountMoid": "5e9ddc4a7564612d30e5f1a7", | |
"DomainGroupMoid": "5e9ddc4a7564612d30e5f1a8", | |
"Ancestors": [], | |
"PermissionResources": [ | |
{ | |
"ObjectType": "organization.Organization", | |
"Moid": "5e9ddec96972652d301eb1f2", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/organization/Organizations/5e9ddec96972652d301eb1f2" | |
} | |
], | |
"Batch": [ | |
{ | |
"ObjectType": "workflow.WebApi", | |
"Body": "{ "Name":"test-vm", "Cpu":2, "PowerState":"PowerOn", "RegisteredDevice":{ "Moid":"5e972b896f72612d305c064b", "ObjectType":"asset.DeviceRegistration" }, "CloudInitConfig": { "ObjectType": "virtualization.CloudInitConfig", "ConfigType": "NoCloudSource", "NetworkData": "bmV0d29yazoKICAgdmVyc2lvbjogMQogICBjb25maWc6CiAgICAgICAtIHR5cGU6IHBoeXNpY2FsCiAgICAgICAgIG5hbWU6IGVucDFzMAogICAgICAgICBzdWJuZXRzOgogICAgICAgICAgICAgLSB0eXBlOiBkaGNwNAo=", "NetworkDataBase64Encoded": true, "UserData": " ", "UserDataBase64Encoded": true }, "Memory":2048, "Disk":[ { "Name":"disk0", "Bus":"virtio", "Type":"hdd", "VirtualDisk":{ "Name":"test2-disk0", "SourceDiskToClone":"base-disk-1", "Capacity":"50Gi", "Mode": "Filesystem" }, "Order":1 } ], "Interface":[ { "Bridge": "vm-network-bridge" } ] }", | |
"ContentType": "json", | |
"Name": "NewVirtualMachineProfile", | |
"Outcomes": [], | |
"ResponseSpec": null, | |
"SkipOnCondition": "", | |
"Timeout": 0, | |
"EndpointRequestType": "Internal", | |
"Headers": null, | |
"Method": "POST", | |
"MoType": "", | |
"Protocol": "https", | |
"TargetType": "Local", | |
"Url": "/v1/virtualization/VirtualMachines" | |
} | |
], | |
"Constraints": { | |
"ObjectType": "workflow.TaskConstraints", | |
"TargetDataType": { | |
"PlatformType": "HyperFlexAP" | |
} | |
}, | |
"Description": "New Virtual Machine Profile", | |
"Name": "NewVirtualMachineProfile", | |
"Outcomes": null, | |
"Output": null, | |
"SkipOnCondition": "", | |
"TaskDefinition": { | |
"ObjectType": "workflow.TaskDefinition", | |
"Moid": "5e9f60eb696f6e2d306284cc", | |
"link": "https://ccp-intersight-230.cisco.com/api/v1/workflow/TaskDefinitions/5e9f60eb696f6e2d306284cc" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment