Create Upgrade Plan

Create Upgrade Plan

Creates a new upgrade plan or updates an existing one if a match is found (e.g., based on a unique identifier in the request body).

Request
URI
POST
https://vcf.broadcom.com/fleet-lcm/v1/upgrade-plans
COPY
Request Body
CreateUpgradePlanRequest of type(s) application/json
Optional
{
    "spec": {
        "componentsFilter": [
            {
                "userInputSpec": "{}",
                "id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
            },
            {
                "userInputSpec": "{}",
                "id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
            }
        ],
        "desiredSoftware": {
            "components": [
                {
                    "publicName": "publicName",
                    "type": "OPS",
                    "version": "version"
                },
                {
                    "publicName": "publicName",
                    "type": "OPS",
                    "version": "version"
                }
            ],
            "version": "version"
        }
    }
}
object
spec
Required

Defines upgrade plan spec required to create an upgrade plan.

Authentication
This operation uses the following authentication methods.
Responses
200

OK - Existing upgrade plan was successfully updated.

Returns UpgradePlan of type(s) application/json
This response body class contains all of the following: UpgradePlanSummary
{
    "components": {
        "elements": [
            {
                "precheck": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": null
                },
                "upgrade": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": "PENDING"
                },
                "dependsOn": [
                    "dependsOn",
                    "dependsOn"
                ],
                "fqdn": "fqdn",
                "type": "OPS",
                "version": "version",
                "targetVersion": "targetVersion",
                "userInputSpec": "{}",
                "publicName": "publicName",
                "sddcGroupId": "sddcGroupId",
                "messages": [
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    },
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    }
                ],
                "id": "id",
                "sddcGroupName": "sddcGroupName",
                "status": "ELIGIBLE"
            },
            {
                "precheck": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": null
                },
                "upgrade": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": "PENDING"
                },
                "dependsOn": [
                    "dependsOn",
                    "dependsOn"
                ],
                "fqdn": "fqdn",
                "type": "OPS",
                "version": "version",
                "targetVersion": "targetVersion",
                "userInputSpec": "{}",
                "publicName": "publicName",
                "sddcGroupId": "sddcGroupId",
                "messages": [
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    },
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    }
                ],
                "id": "id",
                "sddcGroupName": "sddcGroupName",
                "status": "ELIGIBLE"
            }
        ],
        "pageMetadata": {
            "pageNumber": 5,
            "totalPages": 7,
            "pageSize": 5,
            "totalElements": 2
        }
    },
    "executions": [
        {
            "createTime": "2000-01-23T04:56:07.000Z",
            "type": "UPGRADE",
            "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
            "status": "status"
        },
        {
            "createTime": "2000-01-23T04:56:07.000Z",
            "type": "UPGRADE",
            "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
            "status": "status"
        }
    ]
}
array of object
executions
Optional

Defines an upgrade plan execution.

object
components
Optional

Page of upgrade plan components


201

Created - A new upgrade plan was successfully created.

Returns UpgradePlan of type(s) application/json
This response body class contains all of the following: UpgradePlanSummary
{
    "components": {
        "elements": [
            {
                "precheck": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": null
                },
                "upgrade": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": "PENDING"
                },
                "dependsOn": [
                    "dependsOn",
                    "dependsOn"
                ],
                "fqdn": "fqdn",
                "type": "OPS",
                "version": "version",
                "targetVersion": "targetVersion",
                "userInputSpec": "{}",
                "publicName": "publicName",
                "sddcGroupId": "sddcGroupId",
                "messages": [
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    },
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    }
                ],
                "id": "id",
                "sddcGroupName": "sddcGroupName",
                "status": "ELIGIBLE"
            },
            {
                "precheck": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": null
                },
                "upgrade": {
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "planExecutionTaskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
                    "status": "PENDING"
                },
                "dependsOn": [
                    "dependsOn",
                    "dependsOn"
                ],
                "fqdn": "fqdn",
                "type": "OPS",
                "version": "version",
                "targetVersion": "targetVersion",
                "userInputSpec": "{}",
                "publicName": "publicName",
                "sddcGroupId": "sddcGroupId",
                "messages": [
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    },
                    {
                        "level": "INFO",
                        "message": {
                            "args": {
                                "cloudProxyFqdn": "cloudProxy1.vsphere.local"
                            },
                            "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
                            "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
                        },
                        "timestamp": "2000-01-23T04:56:07.000Z"
                    }
                ],
                "id": "id",
                "sddcGroupName": "sddcGroupName",
                "status": "ELIGIBLE"
            }
        ],
        "pageMetadata": {
            "pageNumber": 5,
            "totalPages": 7,
            "pageSize": 5,
            "totalElements": 2
        }
    },
    "executions": [
        {
            "createTime": "2000-01-23T04:56:07.000Z",
            "type": "UPGRADE",
            "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
            "status": "status"
        },
        {
            "createTime": "2000-01-23T04:56:07.000Z",
            "type": "UPGRADE",
            "taskId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
            "status": "status"
        }
    ]
}
array of object
executions
Optional

Defines an upgrade plan execution.

object
components
Optional

Page of upgrade plan components


400

Bad Request

Returns ErrorResponse of type(s) application/json
{
    "code": "code",
    "detail": "detail",
    "message": {
        "args": {
            "cloudProxyFqdn": "cloudProxy1.vsphere.local"
        },
        "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
    },
    "resolution": {
        "args": {
            "cloudProxyFqdn": "cloudProxy1.vsphere.local"
        },
        "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
    },
    "referenceId": "referenceId",
    "timestamp": "2000-01-23T04:56:07.000Z"
}
string
code
Required

Unique error code for programmatic identification.

object
message
Required

message

object
resolution
Required

resolution

string
referenceId
Required

An identifier for tracing the error in the logs.

string As date-time As date-time
timestamp
Required

The date and time when the error occurred.

string
detail
Optional

Freeform extra information, such as raw error payloads or additional context.


401

Unauthorized

Returns ErrorResponse of type(s) application/json
{
    "code": "code",
    "detail": "detail",
    "message": {
        "args": {
            "cloudProxyFqdn": "cloudProxy1.vsphere.local"
        },
        "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
    },
    "resolution": {
        "args": {
            "cloudProxyFqdn": "cloudProxy1.vsphere.local"
        },
        "localizedMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "defaultMessage": "Started upgrade for Cloud Proxy `cloudProxy1.vsphere.local`",
        "id": "com.broadcom.lcm.ops.cloudproxy.upgrade.started"
    },
    "referenceId": "referenceId",
    "timestamp": "2000-01-23T04:56:07.000Z"
}
string
code
Required

Unique error code for programmatic identification.

object
message
Required

message

object
resolution
Required

resolution

string
referenceId
Required

An identifier for tracing the error in the logs.

string As date-time As date-time
timestamp
Required

The date and time when the error occurred.

string
detail
Optional

Freeform extra information, such as raw error payloads or additional context.


500

Internal Server Error

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
string
code
Required

Unique error code for programmatic identification.

object
message
Required

message

object
resolution
Required

resolution

string
referenceId
Required

An identifier for tracing the error in the logs.

string As date-time As date-time
timestamp
Required

The date and time when the error occurred.

string
detail
Optional

Freeform extra information, such as raw error payloads or additional context.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"spec":"object"}' https://{api_host}/fleet-lcm/v1/upgrade-plans