Get the boot parameters
/rest/{version}/configuration/bootparams
Request
-
version(required):
REST API version string.
Available values: v1.1
-
Authorization(required):
The value in the Authorization header must be the string "
Bearer {access token}", where{access token}is a valid, unexpired token received in response to a prior/rest/{version}/auth/tokenrequest.
Response
200 Response
400 Response
401 Response
404 Response
Examples
Example of Accessing the API with cURL
The following example shows how to get the boot parameters by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://${HOSTNAME}/rest/v1.1/configuration/bootparams"
Example of Accessing the API with Python
The following example shows how to get the boot parameters by submitting a GET request on the REST resource using Python.
This example assumes you have a valid token stored in the token variable. For an example of authenticating
with Python, see Authenticate.
import requests
headers = { "Accept":"application/xml", "Authorization":"Bearer " + token }
url = "https://" + hostname + "/rest/v1.1/configuration/bootparams"
resp = requests.get(url, headers=headers)
Example of the Response Body
The following example shows the contents of the response body in XML format.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
<data>
<bootparams>
<bootparam>
<name>Boot File</name>
<value>/boot/bzImage</value>
</bootparam>
<bootparam>
<name>IP Address</name>
<value>${HOSTNAME}</value>
</bootparam>
<bootparam>
<name>VLAN</name>
<value/>
</bootparam>
...
<bootparam>
<name>Target Name</name>
<value>ORACLE</value>
</bootparam>
<bootparam>
<name>Console Device</name>
<value>VGA</value>
</bootparam>
<bootparam>
<name>Console Baudrate</name>
<value>115200</value>
</bootparam>
<bootparam>
<name>Other</name>
<value/>
</bootparam>
</bootparams>
</data>
<messages/>
<links/>
</response>