[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager

Create CSR And Key V2

Description

This API is used to create CSR with a key.

Request

Request

URL

URL


post
https://localhost:8080/lcm/locker/api/v2/certificates/csr
Copy

Request Body

Request Body

CsrKeyDTO of type(s) application/json Required

csrEntity

{
    "c": "IN",
    "cN": "certificate1",
    "host": [
        "<host>"
    ],
    "ip": [
        "<ip>"
    ],
    "l": "IN",
    "o": "vmware",
    "oU": "vmware",
    "sT": "IN",
    "size": 4096,
    "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
size Optional

Key Length


string
transactionId Optional

string
vmid Optional
Authentication

Authentication

This operation uses the following authentication methods.

Authorization

Scopes: global

Response

Response

Response Body

Response Body

200 OK

Returns string of type(s) */*

201 Created

Created

Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found


500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"c":"IN","cN":"certificate1","host":["<host>"],"ip":["<ip>"],"l":"IN","o":"vmware","oU":"vmware","sT":"IN","size":4096,"vmid":"6c9fca27-678d-4e79-9a0f-5f690735e67c"}' https://localhost:8080/lcm/locker/api/v2/certificates/csr


[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager
Feedback

Was this page helpful?