Accept Certificate

Accept Certificate

Use this API to accept or decline a certificate. 'certificateId' can be obtained from /user_action API response.

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

Certificate acceptance details

PutAcceptCertificateRequest of type(s) application/json
Required

Show optional properties

{
    "certificateId": "string",
    "accepted": false,
    "productType": "string",
    "productId": 0
}
{
    "certificateId": "10.158.15.7:443",
    "accepted": true,
    "productType": "VCD",
    "productId": 10
}
string
certificateId
Required

Obtained from /user_action API response

boolean
accepted
Required

accepted

string
productType
Required

productType

Possible values are : vCenter, NSX-V, NSX-T, NSXALB, VRNI, VCD, VCAV, VROPS, VRSLCM,
integer
productId
Required
Constraints: minimum: 1

Obtained from Add /product API response

Authentication
This operation uses the following authentication methods.
Responses
202

Certificate update successful

Operation doesn't return any data structure

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 'productId' 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 '{"certificateId:"string","accepted:"boolean","productType:"string","productId:"integer"}' https://{api_host}/api/v1/accept_certificate