Generate Certificate V2 Using POST
This API is used to generate a new certificate.
Request
URI
POST
https://{api_host}/lcm/locker/api/v2/certificates
COPY
Request Body
certificate
CertificateCreateRequestDTO
of type(s)
application/json
Required
{
"alias": "certificate1",
"c": "IN",
"cN": "cert1",
"host": [
"<host>"
],
"ip": [
"<ip>"
],
"l": "IN",
"o": "vmware",
"oU": "vmware",
"sT": "IN",
"size": 2048,
"transactionId": "string",
"validity": 729,
"vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias
Optional
Alias
string
c
Optional
Country Code
string
cN
Optional
Common Name
array of
string
host
Optional
Server Domain/Hostname
array of
string
ip
Optional
IP Address
string
l
Optional
Locality
string
o
Optional
Organization
string
oU
Optional
Organization Unit
string
sT
Optional
State
integer As int32
As int32
size
Optional
Key Length
string
transactionId
Optional
transactionId
integer As int32
As int32
validity
Optional
Validity Period
string
vmid
Optional
vmid
Responses
200
OK
Returns
CertificateResponseDTO
of type(s)
*/*
"CertificateResponseDTO Object"
string
alias
Optional
Certificate Alias
string
certChain
Optional
certChain
object
certInfo
Optional
certInfo
string
key
Optional
key
string
leafCert
Optional
leafCert
string
transactionId
Optional
transactionId
array of
object
validations
Optional
validations
object
validity
Optional
validity
string
vmid
Optional
vmid
201
Created
Operation doesn't return any data structure
400
Bad Request
Returns
GenericErrorResponseDTO
of type(s)
*/*
"GenericErrorResponseDTO Object"
string
errorCode
Optional
errorCode
string
errorLabel
Optional
errorLabel
string
message
Optional
message
array of
string
recommendations
Optional
recommendations
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure
404
Not Found
Operation doesn't return any data structure
409
Conflict
Returns
GenericErrorResponseDTO
of type(s)
*/*
"GenericErrorResponseDTO Object"
string
errorCode
Optional
errorCode
string
errorLabel
Optional
errorLabel
string
message
Optional
message
array of
string
recommendations
Optional
recommendations
500
Internal Server Error
Returns
GenericErrorResponseDTO
of type(s)
*/*
"GenericErrorResponseDTO Object"
string
errorCode
Optional
errorCode
string
errorLabel
Optional
errorLabel
string
message
Optional
message
array of
string
recommendations
Optional
recommendations
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/lcm/locker/api/v2/certificates
On This Page
Locker Certificates Controller Operations
GET
List All Certificates V2 Using GET
POST
Generate Certificate V2 Using POST
POST
Create Csr And Key V2 Using POST
POST
Import Certificate By Json V2 Using POST
GET
Get Certificate Details By Vmid V2 Using GET
DELETE
Remove Certificate V2 Using DELETE