Validate And Add License V2 Using POST

Validate And Add License V2 Using POST

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

Request
URI
POST
https://{api_host}/lcm/locker/api/v2/license/validate-and-add
COPY
Request Body

licenseValidateRequestDTO

LicenseValidateRequestDTO of type(s) application/json
Required
{
    "alias": "license1",
    "serialKey": "<license key>",
    "transactionId": "string",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias
Optional

License Alias

string
serialKey
Optional

Serial Key

string
transactionId
Optional

transactionId

string
vmid
Optional

vmid

Authentication
This operation uses the following authentication methods.
Responses
200

OK

[
    {
        "action": "VALIDATE_AND_ADD_LICENSE",
        "message": "Validate and Add request queued for license license1",
        "requestId": "071d88e6-6ef3-4ff3-abd9-21420ff4cca4",
        "transactionId": "string",
        "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
    }
]

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

409

Conflict

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


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