Getting license information for a specific product linked with Common Services

Ops Center Common Services REST API Reference Guide

Version
10.9.x
File Size
533 KB
Audience
anonymous
Part Number
MK-99OPS003-06
The following request gets license information for a specific product linked with Common Services.

Execution permission

None.

Request line

GET base-URL/app/v1/application-services/object-ID-of-the-product/license

Request message

Object ID of the product

Specify the value of id acquired by using the request for getting information about the products linked with Common Services.

Attribute

Type

Description

id

string

(Required) Object ID of the product

Query parameters
None.
Body
None.

Response message

Body
{
    "status" : "NOT_ACTIVATED"
}

Attribute

Type

Description

status

string

Status of the license

  • NOT_ACTIVATED: A license is not set up.
  • ACTIVATED: A license has been set up.
  • ACTIVATED_WITH_ISSUES: There is a problem with the license that was set. (Possible reasons include the license being expired or the license capacity being exceeded.)
  • UNKNOWN: The license status is unknown.

Coding example

curl -v -X GET -s "https://example.com:443/portal/app/v1/application-services/8a11a1bf6d7012db016dd878c5e50001/license" -H "Authorization:Bearer eyJhbxxx"
Tip: Because this request uses SSL communication, you must either run the curl command with the root certificate of the Common Services server certificate specified for the --cacert option, or run the command with the -k option specified. (The -k option runs the command by ignoring SSL errors.)