{"type":"api","title":"Get MSP Device Upgrade Runs","meta":{"id":"/apps/pubhub/media/cdo-api-documentation/ee9bdf946673e45c4f256a22e0a754e29a9b2098/9b0e4c9a-48cb-3530-a00a-1f32fbf2438c","info":{"title":"Cisco Security Cloud Control Firewall Manager API","version":"1.15.0","description":"Use the documentation to explore the endpoints Security Cloud Control Firewall Manager has to offer","contact":{"name":"Cisco Security Cloud Control TAC","email":"cdo.tac@cisco.com"}},"openapi":"3.0.1","servers":[{"url":"https://api.us.security.cisco.com/firewall","description":"US"},{"url":"https://api.eu.security.cisco.com/firewall","description":"EU"},{"url":"https://api.apj.security.cisco.com/firewall","description":"APJ"},{"url":"https://api.au.security.cisco.com/firewall","description":"AUS"},{"url":"https://api.in.security.cisco.com/firewall","description":"IN"},{"url":"https://api.int.security.cisco.com/firewall","description":"Staging"},{"url":"https://scale.manage.security.cisco.com/api/rest","description":"Scale"},{"url":"https://ci.manage.security.cisco.com/api/rest","description":"CI"},{"url":"https://manage.stg.secure.cisco/api/rest","description":"Stgf9"}],"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"spec":{"description":"Get a list of MSP device upgrade runs in the SCC Firewall Manager Tenant. Each upgrade run represents a group of devices across multiple managed tenants being upgraded, or staged for upgrades, together.","operationId":"getMspDeviceUpgradeRuns","parameters":[{"description":"Number of results to retrieve.","in":"query","name":"limit","required":false,"schema":{"maximum":200,"minimum":0,"type":"string"}},{"description":"Offset of the results retrieved. The Security Cloud Control APIs use the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.","in":"query","name":"offset","required":false,"schema":{"minimum":0,"type":"string"}},{"description":"The query to execute. Use the Lucene Query Syntax to construct your query.","example":"fieldName:fieldValue","in":"query","name":"q","required":false,"schema":{"type":"string"}},{"description":"The fields to sort results by.","example":"name:DESC","in":"query","name":"sort","required":false,"schema":{"items":{"type":"string"},"type":"array"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"The total number of results available.","example":100,"format":"int32","type":"integer"},"items":{"description":"The list of items retrieved.","items":{"properties":{"errorMsg":{"description":"Error message if the upgrade run failed.","example":"Timeout error","type":"string"},"lastUpdatedTime":{"description":"Time (UTC; represented using the RFC-3339 standard) at which the upgrade run was last updated.","example":"2023-12-13T08:15:44Z","format":"date-time","type":"string"},"metadata":{"description":"Information on the progress of each upgrade run, grouped by the tenant and the hardware model.","properties":{"devices":{"description":"Set of device UIDs that are part of this upgrade run.","items":{"properties":{"completionStatuses":{"description":"The completion status of the upgrade on the device. For HA pairs or clusters, there will be multiple completion statuses; one per node of the pair or cluster.","items":{"properties":{"message":{"description":"A message, indicating current progress, returned from the device.","type":"string"},"name":{"description":"The name of the device. Note: this will be the name of the node on the cdFMC if the device is part of an HA pair or cluster.","type":"string"},"nodeType":{"description":"(HA Pairs and clusters only) The node type of the device.","enum":["HA_PRIMARY","HA_SECONDARY","CLUSTER_CONTROL","CLUSTER_DATA"],"type":"string"},"percentageComplete":{"description":"The percentage completion of the current task being performed","format":"double","type":"number"}},"type":"object","$$ref":"#/components/schemas/CompletionStatusDto"},"type":"array"},"uid":{"description":"The unique identifier, represented as a UUID, of the device in SCC Firewall Manager.","example":"7131daad-e813-4b8f-8f42-be1e241e8cdb","format":"uuid","type":"string"}},"type":"object","$$ref":"#/components/schemas/DeviceUpgradeStatusDto"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/UpgradeRunMetadataDto"},"name":{"description":"Name of the upgrade run. Upgrade runs names are unique in a tenant in SCC Firewall Manager.","example":"my-example-device","type":"string"},"softwareVersion":{"description":"Target software version for the upgrade.","example":"7.4.2","type":"string"},"stageUpgradeOnly":{"description":"Indicates if this upgrade run is to stage the upgrade on the device. If set to true, the upgrade is not applied on the device.","example":false,"type":"boolean"},"submissionTime":{"description":"Time (UTC; represented using the RFC-3339 standard) at which the upgrade run was triggered.","example":"2023-12-13T05:15:44Z","format":"date-time","type":"string"},"transactionUid":{"description":"Unique identifier, represented as a UUID, of the CDO transaction that tracks this upgrade run.","example":"7131daad-e813-4b8f-8f42-be1e241e8cdb","format":"uuid","type":"string"},"uid":{"description":"The unique identifier, represented as a UUID, of the upgrade run in SCC Firewall Manager.","example":"7131daad-e813-4b8f-8f42-be1e241e8cdb","format":"uuid","type":"string"},"upgradeRunStatus":{"description":"Current status of the upgrade run.","enum":["IN_PROGRESS","REBUILDING_UPGRADE_CACHE","PERFORMING_UPGRADE","UPLOADING_IMAGE","PERFORMING_READINESS_CHECK","UPGRADE_STAGED","UPGRADE_STAGING_FAILED","UGPRADE_STAGING_FAILED","UPGRADE_COMPLETED","UPGRADE_FAILED"],"example":"PERFORMING_UPGRADE","type":"string"},"upgradeRunType":{"description":"Type of upgrade run","enum":["ASA_DEVICE_UPGRADE","FTD_DEVICE_UPGRADE","FTD_SECURE_CLIENT_UPGRADE","ASA_SECURE_CLIENT_UPGRADE"],"example":"FTD_DEVICE_UPGRADE","type":"string"},"username":{"description":"Username of the user who initiated the upgrade run.","example":"admin.user@my-msp.com","type":"string"}},"type":"object","$$ref":"#/components/schemas/MspUpgradeRunDto"},"type":"array"},"limit":{"description":"The number of results retrieved.","example":50,"format":"int32","type":"integer"},"offset":{"description":"The offset of the results retrieved. The Security Cloud Control API uses the offset field to determine the index of the first result retrieved, and will retrieve `limit` results from the offset specified.","example":0,"format":"int32","type":"integer"}},"type":"object","$$ref":"#/components/schemas/MspUpgradeRunDtoPage"}}},"description":"List of MSP Device Upgrade Run objects"},"500":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{"description":"Additional details, if any, about the error.","example":{},"type":"object"},"description":"Additional details, if any, about the error.","example":{},"type":"object"},"errorCode":{"description":"Unique code that describes the error.","enum":["INVALID_INPUT","UNAUTHORIZED","FORBIDDEN","NOT_FOUND","METHOD_NOT_ALLOWED","CONFLICT","TOO_MANY_REQUESTS","SERVER_ERROR","PROXY_ERROR","BAD_REQUEST","UNPROCESSABLE_ENTITY"],"example":"INVALID_INPUT","type":"string"},"errorMsg":{"description":"Human-readable error description in English.","example":"sample error","type":"string"}},"$$ref":"#/components/schemas/CommonApiError"}}},"description":"Internal server error."}},"security":[{"bearerAuth":[]}],"summary":"Get MSP Device Upgrade Runs","tags":["MSP Device Upgrades"],"__originalOperationId":"getMspDeviceUpgradeRuns","method":"get","path":"/v1/msp/inventory/devices/ftds/upgrades/runs"}}