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 BlueXP service token, provide either the NLF or values for serialNumber
and the fields that you want to update.
Note:
-
If you use a BlueXP service token, accountId is not a required field
-
If you use a BlueXP user token, accountId is a required field
-
If you provide the NLF, the license data is overwritten by the NLF data
-
The
metadata
field value is appended to the existing metadata -
Authorization
is a required field -
serialNumber
is a required field when using this site. In general, you can specify its value asnull
.
Token usage: Either a BlueXP 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 |
|
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"
}