Request:
Method:
|
POST
Note: The POST body may only contain the raw license text but no other license data fields. You need to send it with content type “application/octet-stream”.
|
URL:
|
/licenses/
|
Arguments:
|
RAW_LICENSE_DATA
|
Response:
Return code
|
Arguments
|
Meaning
|
200
|
{ LICENSEDATA }
|
license with the given license data successfully installed
Note: rvdb_vsn is the Riverbed Serial Number.
|
401
|
–
|
no login
|
403
|
–
|
not enough rights
|
409
|
–
|
malformed, conflicting, or missing data
|
500
|
–
|
internal server error
|
Example:
The following request installs the given license and retrieves the data specified by the license.
$ cat license.txt
======== BEGIN HYPERGUARD LICENSE ========
KGRwMQpTJ21heF9yZXFfcGVyX3NlY29uZCcKcDIKSS0xCnNTJ251bWJlcl9v
Zl9kZWNpZGVyX2NvcmVzX3Byb2R1Y3RpdmUnCnAzCkk4CnNTJ3Byb2R1Y3Qn
CnA0ClMnaHlwZXJndWFyZCcKcDUKc1MndmFsaWRfZnJvbScKcDYKRjE0MDE4
NzU0OTMKc1MnYWRtaW5fc2VydmVyX2lwX2xpc3QnCnA3CihscDgKUycxOTIu
........
yMDQxMzAwMzc=
======== END HYPERGUARD LICENSE ========
$ curl -u admin:admin -H "Content-Type: application/octet-stream" --data-binary @license.txt http://127.0.0.1:8087/api/af/2.0/licenses
{
"__name": "9f8c4bb2b1fff9103839bb278061a9430484030c",
"__path": "/api/af/2.0/licenses/9f8c4bb2b1fff9103839bb278061a9430484030c/",
"__subnodes": [],
"adminserver_ip_list": [
"192.168.240.3"
],
"capabilities": {
"hyperguard": 10
},
"certificate": "",
"cluster_id": "",
"customer": "",
"feature_list": [],
"number_of_decider_cores_non_productive": 0,
"number_of_decider_cores_productive": 8,
"number_of_enforcers": 8,
"rvbd_vsn": "YOUR-RIVERBED-SERIAL-NUMBER",
"serial": "9f8c4bb2b1fff9103839bb278061a9430484030c",
"validFrom": 1401875493.0,
"validTo": 1404553893.0
}
|