Create Csr And Key V2 Using POST

Create Csr And Key V2 Using POST

This API is used to create CSR with a key.

Request
URI
POST
https:////localhost:8080/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

Authentication
This operation uses the following authentication methods.
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) */*
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
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) */*
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations