You must enable javascript in order to view this page or you can go
here
to view the webhelp.
Contents
Search
Loading, please wait ...
AOS-CX REST API Guide for 10.03
Home
About this document
Applicable products
About the examples
Introduction to the AOS-CX REST API
AOS-CX REST API
AOS-CX system databases
Authentication of REST API sessions
User groups and access authorization
REST API access modes
Write methods (POST, PUT) supported in read-only mode
REST requests and accounting logs
REST API version
Parts of a URI
URI path, including path parameters
Query component
Resources
Resource collections and singletons
Categories of resource attributes
Why to use a REST API
AOS-CX REST API reference summary
Enabling access to the REST API
Setting the REST API access mode to read/write
Showing the REST API access configuration
Disabling access to the REST API
Ways to access the AOS-CX REST API
Accessing the REST API using the AOS-CX REST API Reference
Logging in and logging out using the AOS-CX REST API Reference
AOS-CX REST API Reference basics
Accessing the REST API using curl
Logging in using curl
Logging out using curl
The curl command-line application
About the curl command examples
Accessing the REST API using a Python script
Example: Logging in and logging out using Python
GET method usage and considerations
Wildcard character support
Attributes parameter
GET method parameters
Count parameter
Depth parameter
Filter parameter
Selector parameter
Write methods (POST, PUT, and DELETE)
Considerations when making configuration changes
Considerations for ports and interfaces
POST method usage and considerations
PUT method usage and considerations
Best practice method for building the PUT request body
DELETE method usage and considerations
VSX peer switches and REST API access
AOS-CX real-time notifications subsystem
Secure WebSocket Protocol connections for notifications
Notification topics are switch resource URIs
Rules for topic URIs
Notification security features
AOS-CX real-time notifications subsystem reference summary
Enabling the notifications subsystem on a switch
Establishing a secure WebSocket connection through a web browser
Establishing a secure WebSocket connection using a script
Subscribing to topics
Unsubscribing from topics
Getting information about current subscribers and subscriptions
Parts of a subscribe message
Parts of a subscription success message
Parts of a notification message
Example: Python-based notification subscriber
Example: Browser-based WebSocket connection
Example: Getting information about notification subscriptions
Examples
Examples: GET method
Example: Getting and deleting certificates using REST APIs
Example: Generating a self-signed certificate using REST APIs
Example: Getting and installing a signed leaf certificate using REST APIs
Example: Associating a leaf certificate with a switch feature using REST APIs
Example: Configuration management using REST APIs
Example: Firmware upgrade using REST APIs
Example: Log operations using REST APIs
Example: Ping operations using REST APIs
Example: Traceroute operations using REST APIs
Example: User management using REST APIs
Example: Creating an ACL with a port using REST APIs
Example: Creating a VLAN with a port using REST APIs
Example: Changing an interface from layer 3 to layer 2
Examples: Interacting with a VSX peer switch
HTTPS server commands
https-server rest access-mode
https-server session close all
https-server vrf
show https-server
REST API response codes
Troubleshooting
General troubleshooting tips
Error: "'admin' password is not set"
Error "certificate verify failed" returned from curl command
HTTP 400 error "Invalid Operation"
HTTP 400 error "Value is not configurable"
HTTP 400 error "Reference failure"
HTTP 401 error "Authorization Required"
HTTP 401 error "Login failed: session limit reached"
HTTP 403 error "Forbidden" on a write request
HTTP 403 error "Forbidden" on a GET request
HTTP 404 error when accessing the switch URL
HTTP 404 error "Object not found" on object with "bridge/" in URI Path
HTTP 404 error "Object not found" when using a write method
HTTP 404 error "Page not found" when using a write method
Logout fails
Websites
Support and other resources
Accessing Hewlett Packard Enterprise Support
Accessing updates
Customer self repair
Remote support
Warranty information
Regulatory information
Documentation feedback
Your browser does not support iframes.