Update a license by serial number
PATCH /license/serial-number/{serialNumber}
Updates a specified license by license serial number.
If you use a user token, you must provide the NetApp License File (NLF). If you use the NetApp Console service token, provide either the NLF or values for serialNumber and the fields that you want to update.
Note:
-
If you use a NetApp Console service token, accountId is not a required field.
-
If you use a NetApp Console user token, accountId is a required field.
-
If you provide the NLF, the license data is overwritten by the NLF data.
-
The
metadatafield value is appended to the existing metadata. -
Authorizationis a required field. -
serialNumberis a required field when using this site. In general, you can specify its value asnull.
Token usage: Either a NetApp Console user token or service token.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
serialNumber |
["string", "null"] |
path |
True |
|
X-Service-Request-Id |
string |
header |
False |
Request identifier |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
accountId |
string |
False |
|
capacity |
["integer", "null"] |
False |
|
expirationDate |
["integer", "null"] |
False |
|
license |
["string", "null"] |
False |
|
meteringStatus |
boolean |
False |
|
metadata |
["array", "null"] |
False |
Example request
{
"accountId": "string"
}
Response
Status: 200, Success response
Response
Status: 4xx, Error response
| Name | Type | Required | Description |
|---|---|---|---|
errorCode |
string |
False |
Error code |
error |
string |
False |
Error code/category |
message |
string |
False |
Error description message |
Example response
{
"errorCode": "string",
"error": "string",
"message": "string"
}