Update Upgrade Schedule

Update Upgrade Schedule

Commit/Reschedule an existing upgrade. It moves the upgrade from DRAFT state to SCHEDULED state and/or changes the upgrade scheduled date/time.

Request
URI
PATCH
https://{api_host}/v1/upgrades/{upgradeId}
COPY
Path Parameters
string
upgradeId
Required

upgradeId


Request Body
UpgradeCommitSpec of type(s) application/json
Required
{
    "scheduledTimestamp": "string",
    "upgradeNow": false,
    "markForCancellation": false
}
string
scheduledTimestamp
Optional

Upgrade Scheduled Time

boolean
upgradeNow
Optional

Flag for enabling Upgrade Now. If true, scheduledTimestamp is ignored

boolean
markForCancellation
Optional

Flag for marking an upgrade for cancellation. If set to true, other fields in the request will be ignored

Responses
200

Ok

Returns Upgrade of type(s) application/json
{
    "id": "string",
    "bundleId": "string",
    "resourceType": "One among: DOMAIN, CLUSTER, UNASSIGNED_HOST",
    "parallelUpgrade": false,
    "resourceUpgradeSpecs": [
        {
            "resourceId": "string",
            "shutdownVms": false,
            "toVersion": "string",
            "scheduledTimestamp": "string",
            "upgradeNow": false,
            "personalitySpec": {
                "personalityId": "string",
                "hardwareSupportSpecs": [
                    {
                        "name": "string",
                        "packageSpec": {
                            "name": "string",
                            "version": "string"
                        }
                    }
                ]
            },
            "customIsoSpec": {
                "id": "string"
            },
            "enableQuickboot": false,
            "evacuateOfflineVms": false,
            "esxUpgradeOptionsSpec": {
                "esxUpgradeFailureAction": {
                    "retryDelay": 0,
                    "retryCount": 0,
                    "action": "FAIL, RETRY"
                },
                "enforceHclValidation": false,
                "enableQuickPatch": false,
                "enableQuickboot": false,
                "evacuateOfflineVms": false,
                "disableHac": false,
                "disableDpm": false,
                "preRemediationPowerAction": "POWER_OFF_VMS, SUSPEND_VMS, DO_NOT_CHANGE_VMS_POWER_STATE, SUSPEND_VMS_TO_MEMORY"
            }
        }
    ],
    "status": "string",
    "taskId": "string",
    "nsxtUpgradeUserInputSpec": {
        "nsxtHostClusterUpgradeSpecs": [
            {
                "hostClusterId": "string",
                "hostParallelUpgrade": false,
                "liveUpgrade": false
            }
        ],
        "nsxtEdgeClusterUpgradeSpecs": [
            {
                "edgeClusterId": "string",
                "edgeParallelUpgrade": false
            }
        ],
        "nsxtUpgradeOptions": {
            "isEdgeOnlyUpgrade": false,
            "isHostClustersUpgradeParallel": false,
            "isEdgeClustersUpgradeParallel": false
        },
        "nsxtId": "string"
    },
    "bundle": {
        "id": "string",
        "type": "One among: SDDC_MANAGER, VMWARE_SOFTWARE, VXRAIL",
        "description": "string",
        "version": "string",
        "severity": "One among: CRITICAL, IMPORTANT, MODERATE, LOW",
        "vendor": "string",
        "releasedDate": "string",
        "isCumulative": false,
        "isCompliant": false,
        "sizeMB": "number",
        "downloadStatus": "One among: PENDING, SCHEDULED, IN_PROGRESS, SUCCESSFUL, FAILED, RECALLED",
        "components": [
            {
                "description": "string",
                "vendor": "string",
                "releasedDate": "string",
                "toVersion": "string",
                "fromVersion": "string",
                "imageType": "One among: PATCH, INSTALL",
                "id": "string",
                "type": "string"
            }
        ],
        "applicabilityStatus": "One among: SUCCESS, IN_PROGRESS, FAILED, AVAILABLE, PENDING",
        "applicabilityOrder": 1,
        "isPartiallyUpgraded": true
    },
    "endTime": 0
}
string
id
Required

ID for Upgrade

string
bundleId
Required

Bundle ID for Upgrade

string
resourceType
Required

Resource Type for Upgrade

boolean
parallelUpgrade
Optional

Boolean to represent components will be upgraded in parallel on not

resourceUpgradeSpecs
Required

Resource Upgrade Specifications

string
status
Required

Overall upgrade status

string
taskId
Required

Task ID associated with upgrade

nsxtUpgradeUserInputSpec
Optional

NSX Upgrade User Input Specification

bundle
Optional

Bundle contains bits to install/update the appropriate Cloud Foundation software components in your management domain or workload domain.

integer As int64 As int64
endTime
Optional

End time of the upgrade


404

Upgrade Not Found

Returns Error of type(s) application/json
{
    "errorCode": "string",
    "errorType": "string",
    "arguments": [
        "string"
    ],
    "context": {
        "context": "string"
    },
    "message": "string",
    "remediationMessage": "string",
    "causes": [
        {
            "type": "string",
            "message": "string"
        }
    ],
    "nestedErrors": [
        "Error Object"
    ],
    "referenceToken": "string"
}
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of ErrorCause
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.


500

InternalServerError

Returns Error of type(s) application/json
{
    "errorCode": "string",
    "errorType": "string",
    "arguments": [
        "string"
    ],
    "context": {
        "context": "string"
    },
    "message": "string",
    "remediationMessage": "string",
    "causes": [
        {
            "type": "string",
            "message": "string"
        }
    ],
    "nestedErrors": [
        "Error Object"
    ],
    "referenceToken": "string"
}
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of ErrorCause
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.