Upload REST API Data to Oracle ILOM From Local Client
Use a POST request to upload REST API data to Oracle ILOM from a local client.
HTTP Request Format
POST /rest/v<version>/<content_resource_path> HTTP/1.1 Content-Type: multipart/form-data
Where:
-
<content_resource_path> specifies the resource path of the content to be uploaded that ends in
/content
. For example, to upload a banner message that appears when connecting to Oracle ILOM, the content resource path would look like this:/rest/v1/SP/preferences/banner/connect/content
Request Header Fields Required
The required request header fields are as follows:
Authorization
, Content-Type
, and
Host
.
Note:
The Content-Type request header must specify amultipart/form-data
for the target media type.
For a description of these required header fields, see Common Request Header Fields.
cURL Request Example: Upload Content for Connect Banner
Using cURL, a POST request to upload content to the connect banner resource would look like this:
curl -v -k -u "root:changeme" --request POST -F "datafile=@/home/xyz/banner.txt" https://<IP address>:443/rest/v1/SP/preferences/banner/connect/content
Note:
cURL adds the Content-Type header value of multipart/form-data when adatafile
value is specified.