Step 2: View and Answer the Firmware Configuration Questions
Use a GET and PATCH request to retrieve and modify the firmware configuration questions that were returned by the POST operation in Step 1: Upload the Local Firmware Package File .
HTTP Request Format: View Questions
The HTTP request to view the firmware configuration questions, would look like this:
GET /rest/v<version>/SP/firmware/update/1/questions HTTP/1.1
<Header Name>: <Value>
Request Headers Required
The request header fields required to retrieve resources are as follows:
Accept
, Authorization
, and
Host
.
For a description of these required header fields, see Common Request Header Fields.
cURL Request Example: View Questions
Using cURL, the request to view the firmware configuration questions would look like this:
curl -k -u "root:changeme" -H "Accept:application/json" https://<IP addr>
:443/rest/v1/SP/firmware/update/1/questions
Response: Status Codes
-
Success: HTTP Status = 200 OK
-
Failure: HTTP Status = 4xx, 5xx
Response Body
Note:
To identify the exact response body media type, refer to the Oracle ILOM
Swagger Model (swagger.json
) description. For more
details, see Discovering Management Resources.
{
"Target": "/rest/v<version>/SP/firmware/update1/questions",
"questions":
[
{
"text": "Preserve existing SP configuration",
"value": true
},
{
"text": "Preserve existing BIOS configuration",
"value": true
},
{
"text": "Delay BIOS upgrade until next server poweroff or reset",
"value": true
}
]
}
HTTP Request Format: Answer Questions
The HTTP request to modify a firmware configuration question, would look like this:
PATCH /rest/v<version>/SP/firmware/update/1/questions HTTP/1.1
<Header Name>: <Value>
<Request Body>
The <Request Body> specifies the firmware configuration question and its value in the format described in the Swagger model.
Request Headers Required
The request header fields required to modify resources are as follows:
Content-Type
, Authorization
, and
Host
.
For a description of these required header fields, see Common Request Header Fields.
cURL Request Example: Answer Questions
Using cURL, the request to modify a firmware question would look like this:
curl --request PATCH --data '{"questions":[{"text":"Preserve existing SP configuration","value":false}]}' -v -k -v -u "root:changeme" -H "Accept:application/json" https://IP addr:443/rest/v1/SP/firmware/update/1/questions
Response: Status Codes
-
Success: HTTP Status = 200 OK
-
Failure: HTTP Status = 4xx, 5xx
Response Body:
Note:
To identify the exact response body media type, refer to the Oracle ILOM
Swagger Model (swagger.json
) description. For more
details, see Discovering Management Resources.
{
"code": 0,
"description": "PATH Action Complete"
}