HP VAN SDN Controller REST API Guide
Sample response
1 {
2 "license" : {
3 "install_id" : 1234567,
4 "serial_no" : 10,
5 "license_metric" : "Controller Node",
6 "product" : "HP VAN SDN Ctrl Base",
7 "metric_qty" : 50,
8 "license_type" : "DEMO",
9 "base_license" : true,
10 "creation_date" : "2013-06-25T23:51:09.826Z",
11 "activated_date" : "2013-06-22T23:51:09.826Z",
12 "expiry_date" : "2023-06-25T23:51:09.826Z",
13 "license_status" : "INACTIVE",
14 "deactivated_key" : "SOME LICKEY"
15 }
16 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Bad Method (405), Service Unavailable (503)
Add a license
Sample request
Add a new license:
POST /sdn/v2.0/licenses
Request data is a string i.e. an actual license key something like
"CYIBMJJIHJQA6-IRTEQ2QUNBYCA-CSSDJIEIJFKIQ-VAI2QUJBYC42A"
Sample response
1 {
2 "license" : {
3 "install_id" : 1234567,
4 "serial_no" : 10,
5 "license_metric" : "Controller Node",
6 "product" : "HP VAN SDN Ctrl Base",
7 "metric_qty" : 50,
8 "license_type" : "DEMO",
9 "base_license" : true,
10 "creation_date" : "2013-06-25T23:51:09.826Z",
11 "activated_date" : "2013-06-22T23:51:09.826Z",
12 "expiry_date" : "2023-06-25T23:51:09.826Z",
13 "license_status" : "INACTIVE",
14 "deactivated_key" : "SOME LICKEY"
15 }
16 }
Response codes
• Normal: OK (200)
• Error: Bad Request (400), Unauthorized (401), Not Found (404), Bad Method (405), Service
Unavailable (503)
Licensing 19