List licenses

Content Platform for Cloud Scale Management API Reference

Version
2.6.x
Audience
anonymous
Part Number
MK-HCPCS007-09

You can retrieve information about the current licenses for your HCP for cloud scale system.

HTTP request syntax (URI)

POST https://host_ip:9099/mapi/v1/license/list

Request structure

Not applicable.

Response structure

The response body is:

{
  "featureName": "feature",
  "uploadDate": "date_time",
  "expirationDate": "date_time0",
  "valid": {true|false},
  "message": "message"
  }

Parameter

Type

Description

featureName String Name of the licensed feature.
uploadDate   The date and time, in the format Ddd Mmm dd hh:mm:ss TMZ yyyy, when the license was uploaded.
expirationDate   The date and time, in the format Ddd Mmm dd hh:mm:ss TMZ yyyy, when the license expires.
valid Boolean If true, the license is valid. If false, the license is invalid.
message String State of the license:
  • License is expired
  • License is valid
  • License not set

Return codes

Status code

HTTP name

Description

200 OK The request was executed successfully.
401 Unauthorized Access was denied because credentials are not valid.
405 Method Not Allowed The specified HTTP method is not allowed for administrative data. Resend using POST.

Example

Request example:

POST https://10.10.24.195:9099/mapi/v1/license/list

JSON response:

{
  "featureName": "DARE",
  "uploadDate": "Tue Jun 16 00:00:00 GMT 2020",
  "expirationDate": "Sat Oct 24 10:24:54 GMT 2020",
  "valid": true,
  "message": "License is valid"
  }