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.
Force product creation by skipping conflict validations.
Product details
{
"host": "string",
"port": 0,
"user": "string",
"password": "string",
"productType": "string",
"vcfManaged": false,
"vcfEdition": "string",
"externalSSO": false,
"extSSOhost": "string",
"extSSOport": 0,
"srmMetered": false,
"k8sMetric": "string"
}
Product addition successful
{
"host": "string",
"port": 0,
"user": "string",
"active": false,
"metered": false,
"id": 0,
"lastChanged": 0,
"status": {
"code": "string",
"lastChanged": 0,
"text": "string"
},
"productType": "string",
"externalSSO": false,
"extSSOhost": "string",
"extSSOport": 0,
"srmMetered": false,
"k8sMetric": "string",
"vsanEnabled": false,
"vsanClusterCount": 0,
"vsanVersions": {},
"instanceUUID": "string",
"version": "string",
"fullName": "string",
"vcfEdition": "string",
"tanzuEdition": "string"
}
Invalid object provided in request payload
{
"errCode": "GW_BAD_REQ_BODY",
"errMessage": "Unable to add product of type 'VRS-VRA' which is automatically registered as part of vRSLCM auto-discovery"
}
errCode
errMessage
Provided access token is missing or invalid.
Conflict - Object already exists
{
"errCode": "ERR_PM_HOST_NAME_CONFLICT",
"errMessage": "Unable to add my.vc.server:443 that host is already metered for vCenter."
}
errCode
errMessage
For example, invalid request data or the product is already added
{
"errCode": "string",
"errMessage": "string"
}
errCode
errMessage
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/product