Enabling or disabling a license

REST API Reference Guide for Virtual Storage Platform 5000, Virtual Storage Platform E Series, and Virtual Storage Platform G/F Series

Version
93-07-0x
90-09-0x
88-08-10
Audience
anonymous
Part Number
MK-98RD9014-17
You can enable or disable a software license by specifying the software license ID.

For a list of storage systems that support this API, see Overview of the initial settings of a storage system.

Execution permission

Storage Administrator (Initial Configuration)

Request line

PATCH base-URL/v1/objects/licenses/object-ID

Request message

Object ID

Specify the licenseId value obtained by getting information about the licenses.

Attribute

Type

Description

licenseId

int

(Required) License ID

Query parameters

None.

Body
{
  "isEnabled": true
}

Attribute

Type

Description

isEnabled

boolean

(Required) Whether to enable a license or not

  • true: Enables a license
  • false: Disables a license

Response message

Body

A job object is returned. For details on attributes other than affectedResources, see the section explaining job objects.

Attribute

Description

affectedResources

URL of information about the license for which the setting was changed

Action template

None.

Status codes

For details on the status codes of the request for this operation, see the description on HTTP status codes.

Coding example

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" -X PATCH --data-binary @./InputParameters.json https://192.0.2.100/ConfigurationManager/v1/objects/licenses/34055