Get the boot parameters
get
https://{managementIp}/rest/{version}/configuration/bootparams
Retrieves the boot parameters.
Request
Path Parameters
-
version(required): string
REST API version string.
Available values: v1.2Allowed Values:[ "v1.2" ]
Header Parameters
-
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/token
request.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
200 Response
The boot parameters are returned as a series of name-value pairs in the data section of the response.
Nested Schema : links
Type:
object
Nested Schema : messages
Type:
object
400 Response
The request is malformed in some way or is missing required information and therefore cannot be processed.
Nested Schema : data
Type:
object
Nested Schema : items
Type:
Show Source
object
-
link: string
If available, a message with possible valid API URL(s) for the client to invokeExample:
Available URL(s) message string
401 Response
Unauthorized - Request lacks valid authentication credentials.
Nested Schema : data
Type:
object
Nested Schema : items
Type:
Show Source
object
-
link: string
If available, a message with possible valid API URL(s) for the client to invokeExample:
Available URL(s) message string
404 Response
Unsupported versionId in URI.
Nested Schema : data
Type:
object
Nested Schema : items
Type:
Show Source
object
-
link: string
If available, a message with possible valid API URL(s) for the client to invokeExample:
Available URL(s) message string
Examples
Examples of Accessing the API
See Authenticate for how to acquire a token.
The following example shows how to get the boot parameters using curl.
curl -X GET \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://${SBCIP}/rest/v1.2/configuration/bootparams"
The following example shows how to get the boot parameters using Python.
import requests
headers = { "Accept":"application/xml", "Authorization":"Bearer " + token }
url = "https://" + sbcip + "/rest/v1.2/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.
<?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>${SBCIP}</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>