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

Validate And Add License V2

Description

This API is used to validate and add license to locker store.

Request

Request

URL

URL


post
https://localhost:8080/lcm/locker/api/v2/license/validate-and-add
Copy

Request Body

Request Body

LicenseValidateRequestDTO of type(s) application/json Required

licenseValidateRequestDTO

{
    "alias": "license1",
    "serialKey": "<license key>",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias Optional

License Alias


string
serialKey Optional

Serial Key


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 array of LicenseValidateResponseDTO of type(s) */*
{
    "action": "VALIDATE_AND_ADD_LICENSE",
    "message": "Validate and Add request queued for license license1",
    "requestId": "071d88e6-6ef3-4ff3-abd9-21420ff4cca4",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
action Optional

Action


string
message Optional

Message


string
requestId Optional

Request ID


string
transactionId Optional

string
vmid Optional

201 Created

Created

Errors

Errors

GenericErrorResponseDTO
400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found


GenericErrorResponseDTO
409

Conflict


GenericErrorResponseDTO
500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"alias":"license1","serialKey":"<license key>","vmid":"6c9fca27-678d-4e79-9a0f-5f690735e67c"}' https://localhost:8080/lcm/locker/api/v2/license/validate-and-add


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

Was this page helpful?