- Created by Ramya Raman (Unlicensed), last modified on Oct 06, 2021
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
GET devices/config
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns a list of all Devices in the system, with its main configuration data.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/config
Example Request
GET
{ "data": [ { "uuid": "f0fd7753-5843-43a3-acf7-eaf8065f8010", "label": "MCM9000-SN:9202", "settings": { "color": [ "#e95cf2", "#20c5c5" ], "cloud_license": "TjJTjL0H0XCNoHQXJQFCA8qGcFOHCU0PYO8BwesR", "stacking_port": 65513, "license_sharing": true, "disable_ftp_access": false, "stacking_multicast": "229.245.235.213", "disable_ftps_access": false, "disable_http_access": false, "license_server_host": null }, "access": { "url": "192.168.2.202", "password": "test", "username": "test" }, "modified": "2021-09-08T08:12:00.307Z", "created": "2021-09-08T08:08:07.140Z" }, { "uuid": "39626cb3-986a-4ac4-9e7a-f9d7658139b6", "label": "MCM9000-SN:9203", "settings": { "color": [ "#4C33FE", "#A894E7" ], "cloud_license": null, "stacking_port": "65513", "license_sharing": false, "disable_ftp_access": false, "stacking_multicast": "229.245.235.211", "disable_ftps_access": false, "disable_http_access": false, "license_server_host": null }, "access": { "url": "192.168.2.203", "password": "test", "username": "test" }, "modified": "2021-09-21T10:38:17.097Z", "created": "2021-09-21T10:38:17.097Z" } ], "metadata": { "item_count": 2, "total_items": 2, "current_page": 1, "sort_by": [ { "field": "label", "direction": "ASC" } ], "links": { "current": "http://192.168.0.22/api/5.0/devices/config" } } }
GET devices/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns an extended single Devices configuration view, specified by the required {uuid} parameter.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | string | The UUID of the desired Devices. |
Example Request
GET
{ "data": [ { "uuid": "f0fd7753-5843-43a3-acf7-eaf8065f8010", "label": "MCM9000-SN:9202", "created": "2021-09-08T08:08:07.140Z", "modified": "2021-09-08T08:12:00.307Z", "settings": { "color": [ "#e95cf2", "#20c5c5" ], "license_sharing": true, "stacking_multicast": "229.245.235.213", "stacking_port": 65513, "cloud_license": "TjJTjL0H0XCNoHQXJQFCA8qGcFOHCU0PYO8BwesR", "license_server_host": null, "disable_http_access": false, "disable_ftp_access": false, "disable_ftps_access": false }, "access": { "url": "192.168.2.202", "username": "test", "password": "test" } } ], "metadata": {} }
GET devices/config/meta
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns all meta data used by Devices configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/config/meta
Example Request
GET
{}
DELETE devices/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | DELETE |
Delete a specific Devices configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | string | The UUID of the Devices to be deleted. |
Example Request
DELETE
{ "data": [ { "uuid": "7a241ae4-b806-4313-b75d-cee92329bf56", "created": 1632226738471, "type": "Remove Device", "state": "Running", "progress": 0, "attributes": { "device": "39626cb3-986a-4ac4-9e7a-f9d7658139b6", "type": "Remove Device" }, "result": null } ], "metadata": {} }
PUT devices/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | PUT |
Edit a Devices configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | string | The UUID of the Devices to be edited. |
Example Request
PUT
Body
{ "label": "MCM9000-SN:1992", "settings": { "color": [ "#A9835A", "#82F4E4" ], "license_sharing": true, "stacking_multicast": "229.245.235.211", "stacking_port": "65513", "cloud_license": null, "license_server_host": null, "disable_http_access": false, "disable_ftp_access": false, "disable_ftps_access": false }, "access": { "url": "http://192.168.0.100", "username": "test", "password": "test" } }
Response
{ "data": [ { "uuid": "39626cb3-986a-4ac4-9e7a-f9d7658139b6", "label": "MCM9000-SN:1992", "created": "2021-09-21T10:38:17.097Z", "modified": "2021-09-21T12:12:50.929Z", "settings": { "color": [ "#A9835A", "#82F4E4" ], "license_sharing": true, "stacking_multicast": "229.245.235.211", "stacking_port": 65513, "cloud_license": null, "license_server_host": null, "disable_http_access": false, "disable_ftp_access": false, "disable_ftps_access": false }, "access": { "url": "http://192.168.0.100", "username": "test", "password": "test" } } ], "metadata": {} }
POST devices/config
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | POST |
Add a new Devices, configured according to the attached data request.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/config
Example Request
POST
Body
{ "url": "http://192.168.1.122", "username": "test", "password": "test" }
Response
{ "data": [ { "uuid": "ec3481e6-c65f-4766-a17a-78ff1e6ee802", "created": 1632226617310, "type": "Add Device", "state": "Running", "progress": 0, "attributes": { "url": "192.168.1.122", "username": "test", "password": "test" }, "result": null } ], "metadata": {} }
Add a new Devices, configured according to the attached data request.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/devices/info
Example Request
GET
{ "data": [ { "uuid": "f0fd7753-5843-43a3-acf7-eaf8065f8010", "timestamp": "2021-09-21T12:27:09.155Z", "uptime": "2021-09-21T11:09:35.920Z", "local": true, "series": "MCM-9000 Series", "model": "MCM-9000", "serial": "9202", "version": "5.5.6", "mode": "Monitor & Display", "platform": "Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz (x16), 16 GB Ram", "license": { "available": 0, "expiration": null, "features": "Full Monitoring,Light Monitoring,Mosaic Output,Recording,Centralized Error Display,Stacking,Descrambling" }, "hardware": [ { "Memory Error Correction": " None" }, { "Memory Slot": " RAM slot #0 ( RAM slot #0 ) - 16384 MB Unknown" }, { "Memory Slot": " RAM slot #1 ( RAM slot #1 ) - No Module Installed" }, { "Memory Slot": " RAM slot #2 ( RAM slot #2 ) - No Module Installed" }, { "Memory Slot": " RAM slot #3 ( RAM slot #3 ) - No Module Installed" }, { "Memory Slot": " RAM slot #4 ( RAM slot #4 ) - No Module Installed" }, { "Memory Slot": " RAM slot #5 ( RAM slot #5 ) - No Module Installed" }, { "Memory Slot": " RAM slot #6 ( RAM slot #6 ) - No Module Installed" }, { "Memory Slot": " RAM slot #7 ( RAM slot #7 ) - No Module Installed" }, { "Memory Slot": " RAM slot #8 ( RAM slot #8 ) - No Module Installed" }, { "Memory Slot": " RAM slot #9 ( RAM slot #9 ) - No Module Installed" }, { "Memory Slot": " RAM slot #10 ( RAM slot #10 ) - No Module Installed" }, { "CPU Model": " Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz, 2300 MHz" }, { "CPU Details": "" }, { "CPU Model": " Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz, 2300 MHz" }, { "CPU Details": "" }, { "BIOS Vendor": " Phoenix Technologies LTD" }, { "BIOS Version": " 6.00" }, { "BIOS Release Date": " 05/28/2020" }, { "Motherboard Manufacturer": " Intel Corporation" }, { "Motherboard Product Name": " 440BX Desktop Reference Platform" }, { "Motherboard Version": " None" }, { "Motherboard Serial Number": " None" }, { "System Manufacturer": " VMware, Inc." }, { "System Product Name": " VMware Virtual Platform" }, { "System Version": " None" }, { "System Serial Number": " VMware-56 4d 51 e7 01 b0 c4 72-2e 13 57 9d 3d 34 99 fb" }, { "Network Device": "eth0: e1000 7.3.21-k8-NAPI, fw: on cpu 1" } ], "processed": "2021-09-21T12:27:08.665Z" } ], "metadata": { "item_count": 1, "total_items": 1, "total_pages": 1, "current_page": 1 } }
- No labels