Page 1
Avocent® ACS800/8000 Advanced Console System Application Programming Interface (API) User Guide...
Page 2
Technical Support Site If you encounter any installation or operational issues with your product, check the pertinent section of this manual to see if the issue can be resolved by following outlined procedures. Visit https://www.VertivCo.com/en-us/support/ for additional assistance.
1.4 Query Parameters The fields query parameter is supported for many resources to enable the user to limit the fields that are returned. For example: GET /serialPorts?fields=pinout,speed. Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
API will return a response body along with the 200 response code that contains a successful response message along with a list of keys that were ignored. This permits the caller to look for this information if so desired. "status": "success", "ignoredKeys": [ Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
In the RESTful examples throughout the document, what is sent in the request is shown in bold type including both URL components and message body. The response body is shown in normal type. For example: Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 8
POST /sessions/login {"username": "admin", "password": "avocent"} "token":"eyJhbGciOiJIUzI1NiIsInR…fVzCM" Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Return a list of attached pluggable devices and their details or return details on the /pluggableDevices/<NAME> named pluggable device. /pluggableDevices/<NAME>/eject POST Eject the specified device so that it is safe to remove. Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
PARAMETER DESCRIPTION username Valid username of an account on the appliance. (root, admin, etc.) password Valid password for the specified username. Query None Response Body JSON object Response Codes Not Authorized Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Subsequent use of the web token will be unsuccessful. Methods POST Parameters None Query None Response Body JSON object Response Codes Failure Examples POST /sessions/logout "logout": "OK", "username": "root" Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Description of the cpu: ARMv7 Processor rev 0 (v71) cores Number of cores in the cpu: integer 2 Query Fields are supported for all parameters Response Body JSON object Response Codes Bad request Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
This action causes the appliance to reboot. Methods POST Parameters None Query None Response Body JSON object Response Codes Failure Examples POST /system/reboot "status": "initiated reboot" 2.2.3 /system/shutdown This action causes the appliance to shut down. Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
POST /system/shutdown "status": "initiated shutdown" 2.2.4 /system/factoryDefault This action restores the appliance to the factory default and reboots the appliance. Methods POST Parameters None Query None Response Body JSON object Response Codes Failure Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
This action causes the appliance to download the firmware file specified in preparation for subsequent firmware updating. The action does not return until the file download has completed or fails. Depending Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 16
JSON object Response Codes Bad Request Examples POST /system/firmware/download "protocol": "ftp", "ipAddress": "10.20.30.80", "username": "anonymous", "password": "anonymous", "directory": "pub/firmware/", "filename": "firmware_acs8_1_2_9.fl" Response is: "status": "download successful", "firmware": { "version": "1.2.9.2449+540+23+11", "date": "03/01/17" Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Examples POST /system/firmware/install "status": "install successful", "firmware": { "version": "1.2.9.2449+540+23+11", "date": "03/01/17" 2.2.8 /system/firmware/downloaded This resource provides information about a firmware image that has previously been downloaded to the appliance. Methods Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Where to save the file, either to local appliance file system or a remote server: local/remote. protocol Protocol used to transfer the file to a remote server: ftp/scp/sftp. ipAddress IP Address of the remote server. username Username of the account to use on the remote server. Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Response is: "status": "backup configuration saved as cli config filename: pub/myconfig.cli" 2.2.10 /system/config/restore Restores the appliance configuration from a specified file. NOTE: XML format is not supported in the API. Methods POST Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 20
The directory parameter is not actually needed in this case, as it is assumed to be blank if not provided. POST /system/config/restore "where": "local", "directory": "", "filename": "myconfig.cli" Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Query Fields are supported for all parameters. Response Body JSON object Response Codes OK No Content (for a PUT or PATCH) Bad Request Examples GET /system/dateAndTime "time": "18:00:50", "date": "07/12/2017", "ntp": "enabled", "ntpSettings": { Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Gets a list of all the recognized timezones. These values can be used when setting the timezone via the /system/dateAndTime resource. Methods Parameters None Query None Response Body JSON object Response Codes Bad Request Examples GET /system/dateAndTime/timezones Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
OK No Content (for a PUT or PATCH) Bad Request Examples GET /system/general "language": "english", "onlineHelp": "http://global.avocent.com/us/olh/acs8x/en/index.html", "banner": "enabled", "bannerText": "=================================================================== =======\n WARNING! The use of this system is restricted to Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Enables a user for data buffer management of a session: dataBufferManagement enabled/disabled restfulClientMenu Enables the restfulClient menu: enabled/disabled eraseFlash Control whether entire flash config is erased on a factory default: Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 25
HTTPS Port number (default 443): integer redirectHttp Redirect HTTP/HTTPS: enabled/disabled consolePort Appliance console port: enabled/disabled apiHttpAccess Allow RESTful API access via HTTP: enabled/disabled apiHttpSettings (only valid when apiHttpAccess is enabled) Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 26
NOTE: API changes made while using the API may terminate the API session. Examples GET /security "idleTimeout": 63955, "rpc": "disabled", "pluggableDevices": "enabled", "pluggableStorage": "disabled", "access": "all", "allAccessSettings": { "session": "multiple", "killMultiSession": "enabled", "sendMessageMultiSession": "enabled", "powerControl": "enabled", "dataBufferManagement": "enabled", "restfulClientMenu": "enabled" Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Failover trigger: primary_interface_down/unreachable_primary_default_gateway/ unreachable_ip_ trigger address/unreachable_dsview unreachableIp IP Address to probe when trigger is unreachable_ip_address. dhcpv6Domain Get the IPv6 Domain name from DHCPv6: enabled/disabled Query Fields are supported for all parameters. Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Read-only name of the network interface: eth0, eth1, etc. isPrimary Read-only. Identifies if this is the primary interface: enabled/disabled status Status of the interface: enabled/disabled ipv4Method Method used to configure IPv4: dhcp/static/unconfigured ipv6Method Method used to configure IPv6: stateless/dhcpv6/static/unconfigured Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 30
IPv6 Prefix Length for static configuration. ipv6PrefixLength Example: 112 Query Fields are supported for all parameters. Response Body JSON object Response Codes OK No Content (for a PUT or PATCH) Bad Request Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Read-only device name assigned by operating system. Examples: ttyS1, ttyUSB0, ttyACM0 status Port status: enabled/disabled physical (only valid when profile is cas, power or socket_client pinout Serial port pinout: auto/cisco/cyclades/rs422/rs485 speed Serial port speed: integer 1200/2400/4800/9600/19200/38400/57600/115200/230400 Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 32
Displays an information message when a target session is opened. enabled/disabled cas/dataBuffering (only valid when profile is cas) bufferingStatus Enables or disables data buffering. enabled/disabled Controls the type of data buffering: bufferingType Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 33
Configure the event that will trigger the establishment of the connection. dcd/always Query Fields are supported for all parameters. Response Body JSON object Response Codes OK No Content (for a PUT or PATCH) Bad Request Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
"code": "AE002", "message": "resource id not found", "detail": "75 is not a valid port id" 2.6 Pluggable Devices 2.6.1 /pluggableDevices[/<NAME>] Read information about the attached pluggable devices (USB, SD card). Methods Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 35
Current state of the device: inserted/unmounted/ejected port Serial port number assigned to this device if it is enabled as a console. Query Fields are supported for all parameters. Response Body JSON object Response Codes Bad Request Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
The serial port must then be configured appropriately. This can only be done for devices which show a deviceType of "console". Methods POST Parameters None Query None Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Methods POST Parameters None Query None Response Body JSON object Response Codes Bad Request Examples POST /pluggableDevices/sda1/eject "status": "It is now safe to physically unplug the sda1 device" Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
The database username. password The database password for the username. attributes Login attributes. Query Fields are supported for all parameters. Response Body JSON object Response Codes OK No Content (for a PUT or PATCH) Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Authorization group name for Callback Login. callbackFramed Authorization group name for Callback Framed. outbound Authorization group name for Outbound. administrative Authorization group name for Administrative. Query Fields are supported for all parameters. Response Body JSON object Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Secret word or passphrase, applies to both sets of servers. timeout Desired number of seconds for server timeout. retries Desired number of retries. version Version: v0 / v0_v1 / v1 / v1_v0 Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
2.8 Users 2.8.1 /users[/<NAME>] This resource provides the ability to view and edit user settings as well as add new users and delete existing users. Methods GET, PUT, PATCH, POST, DELETE Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 43
JSON object Response Codes Created OK No Content (for a PUT or PATCH) Bad Request Examples GET /users "users": [ "name": "admin", "settings": { "password": "", … "name": "root", … GET /users/admin Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
"name": "bob", "settings": { "password": "password1234!", … 2.9 Resources 2.9.1 /resources This resource provides a list of the available resources and methods. Methods Parameters None Query None Response Body JSON object Response Codes Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Page 45
Failure Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
RESTful API. These examples run on Python versions 2.7 and 3.5. They require the python "requests" module be installed on the system running python. An example can be run as follows: $ python acsapi_example_http.py Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Change your ACSHOST parameter to the ACS IP Address. For example:ACSHOST=192.168.161.10 GET /resource Example: GET /serialPorts/2 PUT /resource '{...json parameters...}' Example: PUT /serialPorts/2 '{"physical":{"speed":38400}}' PATCH /resource '{...json parameters...}' Example: PATCH /security '{"idleTimeout":0}' Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
With cURL the "-k" option is used to disable certificate verification: $ curl -k -H "Content-Type: application/json" -H "Accept:application/json" https://10.20.30.40:48048/api/v1/sessions/login -d '{"username":"admin","password":"avocent"}' The restapi-helper script automatically includes the -k option on the underlying curl commands when using https. Vertiv | Avocent® ACS800/8000 Advanced Console System API Guide |...
Need help?
Do you have a question about the Avocent ACS800 and is the answer not in the manual?
Questions and answers