...
Panel |
---|
PATCH /license-orders/activation_key |
where:
- activation_key (string) is the license order activation key.
Request JSON Objects
Valid JSON parameters include the following.
Parameter | Type | Required | Definition | |
---|---|---|---|---|
customer_id | integer | Yes | Customer ID. | |
product_template_id | integer | Yes | Product template ID. | |
license_type | string | Yes | License type, choices: local, network. | |
licensee_type | string | Yes | Licensee type, choices: fixed, customer, not_specified. | |
licensee | string | Yes* | No | Licensee. *Required License, requiredif licensee type is fixed. |
hostid_match_rate | integer | Yes | HostID match rate. | |
min_hostids | integer | Yes | Minimum HostIDs. | |
activations_allowed | integer | Yes | Activations allowed. | |
enabled | boolean | Yes | Whether license order is enabled or not. | |
description | string | No | Description. | |
settings_description | string | No | Settings description. | |
removal | boolean | Yes | Whether license should be removed from host. | |
deactivations_allowed | booleaninteger | No | Whether deactivation is allowed. | |
Hostids | array | Yes | List of HostIDs. | |
Features | array | Yes | List of features. |
HostID parameters include the following.
Parameter | Type | Required | Definition |
---|---|---|---|
name | string | Yes | HostID name. |
min_amount | integer | Yes | Minimum required. |
max_amount | integer | Yes | Maximum allowed. |
Feature parameters include the following.
Parameter | Type | Required | Definition | ||||
---|---|---|---|---|---|---|---|
name | string | Yes | Feature name. | ||||
version | string | Yes | Version. | ||||
expiration_type | string | Yes | Expiration type, choices: fixed, days_from_activation, no_expiration. | ||||
expiration_date | string | Yes* | Expiration date. *Required , required if expiration type is fixed. | ||||
days_from_activation | string | Yes* | Expiration days from activation. *Required if expiration type is days_from_activation. | ||||
issued_type | string | Yes | Issued type, choices: fixed, not_issued, activation_time. | ||||
issued_date | string | Yes* | Issued date , required if. *Required if issued type is fixed. | ||||
options | string | No | Options. | ||||
additional_settings | string | No | Additional settings. | ||||
enabled | boolean | YesNo | Whether feature is enabled or not | days_from_activation | string | Yes | Expiration days from activation, required if expiration type is days_from_activation. |
count | integer | Yes* | Count , required if. *Required if license type is network. | ||||
maintenance_type | string | Yes | Maintenance type, choices: fixed, days_from_activation, no_maintenance. | ||||
maintenance_date | string | Yes* | Maintenance date , required if. *Required if maintenance type is fixed. | ||||
maintenance_days_from_activation | string | Yes* | Maintenance days from activation , required if. *Required if maintenance type is days_from_activation. | ||||
comment | string | No | Comment. |
Example request
Code Block |
---|
PATCH /license-orders/II1HP-TX8EQ-R1QXZ-7LYXF HTTP/1.1 Content-Type: application/json Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6 { "customer_id": 1, "product_template_id": 1, "license_type": "network", "licensee_type": "customer", "hostid_match_rate": 100, "min_hostids": 1, "activations_allowed": 10, "enabled": true, "description": "License order description", "settings_description": "Settings description", "removal": false, "deactivations_allowed": 10, "Hostids": [ { "name": "hostname", "min_amount": 1, "max_amount": 1 } ], "Features": [ { "name": "Licstat", "version": "6.0", "expiration_type": "days_from_activation", "days_from_activation": 90, "issued_type": "activation_time", "options": "Feature options", ` "additional_settings": "Additional settings", "count": 15, "maintenance_type": "fixed", "maintenance_date": "2020-12-31", "enabled": true, "comment": "Feature comment" } ] } |
...