Post Product

Post Product

This API returns, among other fields, the ID of the newly added product. Please note - This ID must be provided (as productId) for operations like accept certificates, retrieve notification messages or update/delete the product.

Request
URI
POST
https://{api_host}/product
COPY
Query Parameters
boolean
force
Optional

Force product creation by skipping conflict validations.

Header Parameters
string
sessionid
Required

The authentication token obtained from login API response


Request Body

Product details

Responses
202

Product addition successful

Operation doesn't return any data structure

400
Returns 400ManagedProductAddRequest of type(s) application/json
{
    "errCode": "GW_BAD_REQ_BODY",
    "errMessage": "Unable to add product of type 'VRS-VRA' which is automatically registered as part of vRSLCM auto-discovery"
}
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


409
Returns 409Conflict of type(s) application/json
{
    "errCode": "ERR_PM_HOST_NAME_CONFLICT",
    "errMessage": "Unable to add my.vc.server:443 that host is already metered for vCenter."
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


502

For example, invalid request data or the product is already added

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

errCode

string
errMessage
Optional

errMessage