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).
{
"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"
}
}
}
Defines upgrade plan spec required to create an upgrade plan.
OK - Existing upgrade plan was successfully updated.
{
"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"
}
]
}
Defines an upgrade plan execution.
Page of upgrade plan components
Created - A new upgrade plan was successfully created.
{
"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"
}
]
}
Defines an upgrade plan execution.
Page of upgrade plan components
Bad Request
{
"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"
}
Unique error code for programmatic identification.
message
resolution
An identifier for tracing the error in the logs.
The date and time when the error occurred.
Freeform extra information, such as raw error payloads or additional context.
Unauthorized
{
"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"
}
Unique error code for programmatic identification.
message
resolution
An identifier for tracing the error in the logs.
The date and time when the error occurred.
Freeform extra information, such as raw error payloads or additional context.
Internal Server Error
"ErrorResponse Object"
Unique error code for programmatic identification.
message
resolution
An identifier for tracing the error in the logs.
The date and time when the error occurred.
Freeform extra information, such as raw error payloads or additional context.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"spec":"object"}' https://{api_host}/fleet-lcm/v1/upgrade-plans