Put Product

Put Product

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

Request
URI
PUT
https://{api_host}/product
COPY
Header Parameters
string
sessionid
Required

The authentication token obtained from login API response


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"
}
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
{
    "errCode": "GW_REQ_KEY",
    "errMessage": "Not found expected value for key 'sampleKey'"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


401
Returns 401Unauthorized_sessionID of type(s) application/json
{
    "errCode": "GW_LOGIN_REQUIRED",
    "errMessage": "Your session not found or already expired. Please login"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


502

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

Returns Error of type(s) application/json
{
    "errCode": "string",
    "errMessage": "string"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage