Validate Licenses

Validate Licenses
Validate the shared licenses

This API allows the provider to authenticate and confirm the validity of shared licenses, ensuring they are legitimate and correctly entitled to the specified customer.

Request
URI
POST
https://eapi.broadcom.com/vcf/license-mgmt/api/v1/tenants/{tenant_id}/licenses/validate
COPY
Path Parameters
string
tenant_id
Required

The id of the tenant


Request Body
ValidateLicenseRequest of type(s) application/json
Required

Show optional properties

{
    "site_id": 15688624,
    "licenses": [
        {
            "license_id": "96782dcf-77be-45c4-b03d-412af2743263",
            "quantity": 960,
            "end_date": "2024-04-10"
        }
    ]
}
{
    "site_id": "15688624",
    "licenses_to_validate": [
        {
            "license_id": "96782dcf-77be-45c4-b03d-412af2743263",
            "quantity": 960,
            "end_date": "2024-04-10"
        },
        {
            "license_id": "96782dcf-77be-45c4-b03d-412af2743264",
            "quantity": 960,
            "end_date": "2024-04-10"
        }
    ]
}
string
site_id
Required

site id of the tenant

array of object
licenses
Required

License details in json format for validation

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns ValidateLicenseResponse of type(s) application/json
{
    "site_id": "15688624",
    "valid_licenses": [
        {
            "license_id": "96782dcf-77be-45c4-b03d-412af2743263",
            "quantity": 960,
            "product_name": "VMware Cloud Foundation (cores)",
            "uom": "CORE",
            "end_date": "2024-04-10"
        }
    ],
    "invalid_licenses": [
        {
            "license_id": "96782dcf-77be-45c4-b03d-412af2743264",
            "quantity": 960,
            "product_name": "VMware Cloud Foundation (cores)",
            "uom": "CORE",
            "end_date": "2024-04-10"
        }
    ]
}
string
site_id
Required

site_id

array of object
valid_licenses
Optional

List of valid licenses

array of object
invalid_licenses
Optional

List of invalid licenses


401

Unauthorized

Returns ErrorResponse of type(s) application/json
{
    "parameter_list": [
        "string"
    ],
    "message": "string",
    "major_error_code": "string",
    "minor_error_code": "string"
}
array of string
parameter_list
Optional

parameter_list

string
message
Optional

message

string
major_error_code
Optional

major_error_code

string
minor_error_code
Optional

minor_error_code


403

Forbidden

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
array of string
parameter_list
Optional

parameter_list

string
message
Optional

message

string
major_error_code
Optional

major_error_code

string
minor_error_code
Optional

minor_error_code


404

Not Found

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
array of string
parameter_list
Optional

parameter_list

string
message
Optional

message

string
major_error_code
Optional

major_error_code

string
minor_error_code
Optional

minor_error_code


500

Internal Server Error

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
array of string
parameter_list
Optional

parameter_list

string
message
Optional

message

string
major_error_code
Optional

major_error_code

string
minor_error_code
Optional

minor_error_code


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"site_id:"string","licenses":["object"]}' https://{api_host}/vcf/license-mgmt/api/v1/tenants/{tenant_id}/licenses/validate