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
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.)