Put Product

Put Product

Updates and activates a product. For example, this API can update the password for a vCenter.

Request
URI
PUT
https://umip/api/v1/product
COPY
Request Body

Product update details

{
    "productType": "vCenter",
    "id": 1,
    "host": "10.158.15.7",
    "port": 443,
    "externalSSO": false,
    "user": "admin",
    "password": "updated_password",
    "srmMetered": false,
    "k8sMetric": "vRAM"
}
Authentication
This operation uses the following authentication methods.
Responses
202

Product update successful

{
    "active": true,
    "extSSOhost": null,
    "extSSOport": 0,
    "k8sMetric": "vRAM",
    "externalSSO": false,
    "fullName": "vCenter",
    "host": "10.158.15.7",
    "id": 1,
    "instanceUUID": "bc663ce4-c45f-4e5c-a840-244ff2851e04",
    "lastChanged": 1593830688135,
    "metered": true,
    "port": 443,
    "srmMetered": true,
    "productType": "vCenter",
    "status": {
        "code": "OK",
        "lastChanged": 1593830689485,
        "text": "OK"
    },
    "user": "admin",
    "vcfEdition": "Basic",
    "version": "7.0.0"
}

400
Returns 400InvalidRequest of type(s) application/json
Operation doesn't return any data structure

401
Operation doesn't return any data structure

502

For example, product with the specified 'ProductType' and 'id' is not found

Returns Error of type(s) application/json
"Error Object"
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/product