Create Csr And Key V2 Using POST
This API is used to create CSR with a key.
Request
URI
POST
https://{api_host}/lcm/locker/api/v2/certificates/csr
COPY
Request Body
csrEntity
CsrKeyDTO
of type(s)
application/json
Required
{
"c": "IN",
"cN": "certificate1",
"host": [
"<host>"
],
"ip": [
"<ip>"
],
"l": "IN",
"o": "vmware",
"oU": "vmware",
"sT": "IN",
"size": 4096,
"transactionId": "string",
"vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
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
string
vmid
Optional
vmid
Responses
200
OK
Operation doesn't return any data structure
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
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/csr
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