Create Discovery Associated Products
Associates a VMware product with vCenter Server manually. The product must be taken from the product catalog API.
Request
URLURL
https://{api_host}/api/vcenter/lcm/discovery/associated-products
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
LcmDiscoveryAssociatedProductsCreateSpec of type application/json (required){
"product_name": "string",
"version": "string"
}
string
product_name
Required
The name of the product.
string
version
Required
Current product version.
array of
string
deployments
Optional
The list of hostname/IPs of the instances of the VMware products deployed in the environment.
Response
Response
Response BodyResponse Body
201 Created returns
string
of type application/json
Identifier of the newly-added product. The result will be an identifier for the resource type: com.vmware.vcenter.lcm.product.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"deployments":["string"],"product_name":"string","version":"string"}' https://{api_host}/api/vcenter/lcm/discovery/associated-products
Errors
400
com.vmware.vapi.std.errors.already_exists : if this version is already added | com.vmware.vapi.std.errors.invalid_argument : if the spec argument is not allowed
500
com.vmware.vapi.std.errors.error : If there is some unknown internal error. The accompanying error message will give more details about the failure.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.