REST API - get

vcenter namespace management software clusters: get

Returns upgrade related information of a specific cluster.

Request:

HTTP request

GET https://{server}/api/vcenter/namespace-management/software/clusters/{cluster}

Path Parameters

Name Type Description
Required
cluster string Identifier for the cluster which will be upgraded.

Response:

HTTP Status Code: 200

Response Body Structure:

{
    "upgrade_status"{
        "desired_version""string",
        "messages"[
            {
                "severity""INFO",
                "details"{
                    "args"[
                        "string",
                        "string"
                    ],
                    "default_message""string",
                    "localized""string",
                    "id""string",
                    "params"{
                        "<string>"{
                            "dt""2015-01-01T22:13:05.651Z",
                            "s""string",
                            "d"1.5,
                            "precision"1,
                            "format""SHORT_DATE",
                            "i"1,
                            "l"{
                                "id""string",
                                "params"{
                                    "<string>"{
                                        "dt""2015-01-01T22:13:05.651Z",
                                        "s""string",
                                        "d"1.5,
                                        "precision"1,
                                        "format""SHORT_DATE",
                                        "i"1,
                                        "l"{
                                            "id""string",
                                            "params"{}
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            {
                "severity""INFO",
                "details"{
                    "args"[
                        "string",
                        "string"
                    ],
                    "default_message""string",
                    "localized""string",
                    "id""string",
                    "params"{
                        "<string>"{
                            "dt""2015-01-01T22:13:05.651Z",
                            "s""string",
                            "d"1.5,
                            "precision"1,
                            "format""SHORT_DATE",
                            "i"1,
                            "l"{
                                "id""string",
                                "params"{
                                    "<string>"{
                                        "dt""2015-01-01T22:13:05.651Z",
                                        "s""string",
                                        "d"1.5,
                                        "precision"1,
                                        "format""SHORT_DATE",
                                        "i"1,
                                        "l"{
                                            "id""string",
                                            "params"{}
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        ],
        "progress"{
            "total"1,
            "completed"1,
            "message"{
                "args"[
                    "string",
                    "string"
                ],
                "default_message""string",
                "localized""string",
                "id""string",
                "params"{
                    "<string>"{
                        "dt""2015-01-01T22:13:05.651Z",
                        "s""string",
                        "d"1.5,
                        "precision"1,
                        "format""SHORT_DATE",
                        "i"1,
                        "l"{
                            "id""string",
                            "params"{
                                "<string>"{
                                    "dt""2015-01-01T22:13:05.651Z",
                                    "s""string",
                                    "d"1.5,
                                    "precision"1,
                                    "format""SHORT_DATE",
                                    "i"1,
                                    "l"{
                                        "id""string",
                                        "params"{}
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "available_versions"[
        "string",
        "string"
    ],
    "current_version""string",
    "messages"[
        {
            "severity""INFO",
            "details"{
                "args"[
                    "string",
                    "string"
                ],
                "default_message""string",
                "localized""string",
                "id""string",
                "params"{
                    "<string>"{
                        "dt""2015-01-01T22:13:05.651Z",
                        "s""string",
                        "d"1.5,
                        "precision"1,
                        "format""SHORT_DATE",
                        "i"1,
                        "l"{
                            "id""string",
                            "params"{
                                "<string>"{
                                    "dt""2015-01-01T22:13:05.651Z",
                                    "s""string",
                                    "d"1.5,
                                    "precision"1,
                                    "format""SHORT_DATE",
                                    "i"1,
                                    "l"{
                                        "id""string",
                                        "params"{}
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        {
            "severity""INFO",
            "details"{
                "args"[
                    "string",
                    "string"
                ],
                "default_message""string",
                "localized""string",
                "id""string",
                "params"{
                    "<string>"{
                        "dt""2015-01-01T22:13:05.651Z",
                        "s""string",
                        "d"1.5,
                        "precision"1,
                        "format""SHORT_DATE",
                        "i"1,
                        "l"{
                            "id""string",
                            "params"{
                                "<string>"{
                                    "dt""2015-01-01T22:13:05.651Z",
                                    "s""string",
                                    "d"1.5,
                                    "precision"1,
                                    "format""SHORT_DATE",
                                    "i"1,
                                    "l"{
                                        "id""string",
                                        "params"{}
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    ],
    "state""PENDING",
    "last_upgraded_date""2015-01-01T22:13:05.651Z"
}

Headers:

None

Type:

Name Type Description
bold = required
- info Information about the upgrade of the specified WCP enabled cluster.
-.current_version string Current version of the cluster.

-.available_versions string[] Set of available versions can be upgraded to.

-.last_upgraded_date date_time Date of last successful upgrade.

Optional. If unset, the cluster has not yet been upgraded.

-.messages message[] Current set of messages associated with the cluster version.

-.state string Current state of the upgrade.

Describes the state of the upgrade. Value is one of:
PENDING: Upgrade is in progress.
READY: Cluster is ready when there is no upgrade or upgrade is completed.
ERROR: Upgrade failed and need user intervention.

-.upgrade_status upgrade_status Information about upgrade in progress.

Optional. If unset, the cluster upgrade is not in progress.

-.upgrade_status.desired_version string Desired version the cluster will be upgraded to.

Optional. If unset, the cluster upgrade is not in progress.

-.upgrade_status.messages message[] Current set of messages associated with the upgrade state.

-.upgrade_status.progress upgrade_progress Information about upgrade progess.

Optional. If unset, the cluster upgrade is not in progress.

-.upgrade_status.progress.total long Total amount of the work for the operation. The work here represents the number of master nodes in the cluster need to be upgraded.

-.upgrade_status.progress.completed long The amount of work completed for the operation. The value can only be incremented. The number or master nodes which upgrade completed.

-.upgrade_status.progress.message localizable_message Message about the work progress.

-.upgrade_status.progress.message.id string Unique identifier of the localizable string or message template.

This identifier is typically used to retrieve a locale-specific string or message template from a message catalog.

-.upgrade_status.progress.message.default_message string The value of this localizable string or message template in the en_US (English) locale. If vapi.std.localizable_message.id refers to a message template, the default message will contain the substituted arguments. This value can be used by clients that do not need to display strings and messages in the native language of the user. It could also be used as a fallback if a client is unable to access the appropriate message catalog.

-.upgrade_status.progress.message.args string[] Positional arguments to be substituted into the message template. This list will be empty if the message uses named arguments or has no arguments.

-.upgrade_status.progress.message.params object Named arguments to be substituted into the message template. This attribute was added in vSphere API 7.0.0.0.

Optional. Unset means that the message template requires no arguments or positional arguments are used.

-.upgrade_status.progress.message.localized string Localized string value as per request requirements. This attribute was added in vSphere API 7.0.0.0.

Optional. when the client has not requested specific locale the implementation may not populate this field to conserve resources.

Errors:

HTTP Status Code Type Description
404 not_found if cluster could not be located.
500 error if the system reports an error while responding to the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user does not have System.Read privilege.