Schedules an import image operation

post

/rhp-restapi/rhp/images

Create a gold image from the Software home specified in the body of this request, can be of Oracle Database, Grid Infrastructure or any other Software home.

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : ImportImageBody
Type: object
Show Source
  • Use an authentication plugin to access the remote node.
  • authArgs
    Additional Properties Allowed: additionalProperties
    Additional properties for the selected authentication plugin.
  • List of users to whom email notifications will be sent, in addition to owner of working copy.
  • Client cluster name.
  • GIAAS host name.
  • Name of the image.
  • The software type. ("ORACLEDBSOFTWARE" (default) for Oracle database software, "EXAPATCHSOFTWARE" for Oracle Exadata software, "ORACLEGISOFTWARE" for Oracle Grid Infrastructure software, ORACLEGGSOFTWARE for Oracle GoldenGate software, "LINUXOS" for linux Opearting System ISO, and "SOFTWARE" for all other software. For a custom image type, use the image type name.)
  • Location of the compressed image file on the target
  • Default Value: false
    Send email notification.
  • Comma separated bug numbers or NFS downloaded zip location or combination of both.
  • Absolute path location of the software home to be imported (For database images, this will be the ORACLE_HOME).
  • User with read access to files under the specified path.
  • Port number in the range of 1024-65536.
  • Bug number or downloaded zip location or released PSU/BP.
  • Default Value: false
    Use root credentials to access the remote node.
  • Preferred time to execute the operation, in ISO-8601 format. For example: 2016-12-21T19:13:17+05.
  • Allowed Values: [ "TESTABLE", "RESTRICTED", "PUBLISHED" ]
    State name.
  • location of sudo binary.
  • perform super user operations as sudo user name.
  • The password for the super user account.
  • Node on which operation needs to be executed.
  • Value to be passed to useractiondata parameter of useraction script.
  • Oracle database version for GIAAS, ODA patchbundle version for ODAPATCHSOFTWARE.
  • Absolute path of the compressed software home to be imported (a ZIP or TAR file).
Nested Schema : authArgs
Type: object
Additional Properties Allowed
Show Source
Additional properties for the selected authentication plugin.
Security
Back to Top

Response

Supported Media Types

202 Response

Accepted. A JSON object containing job resource details of the accepted operation to obtain status and output of the progress.
Headers
Body ()
Root Schema : jobResource
Type: object
Show Source
Nested Schema : jobOutputResource
Type: object
Show Source

400 Response

Bad Request. A JSON object containing error details of the issue found while parsing a parameter value or name.
Body ()
Root Schema : errorResource
Type: object
Show Source
Nested Schema : errorDetails
Type: array
If multiple errors are reported they can be organized in a hierarchical structure in this array.
Show Source

Default Response

Unexpected error. A JSON object containing error details of the issue while executing the operation.
Body ()
Root Schema : errorResource
Type: object
Show Source
Nested Schema : errorDetails
Type: array
If multiple errors are reported they can be organized in a hierarchical structure in this array.
Show Source
Back to Top

Examples

The following example shows how to import a gold image from a software home in the specified path in the request body body.json, by submitting a POST request on the REST resource using cURL.

curl -u restUser -X POST -H "Content-Type: application/json" -d "@body.json" "https://RHP_node_name:8894/rhp-restapi/rhp/images"

HTTP Status Code and Response Headers

The following shows an example of the response header.

HTTP/1.1 202
Location: https://rhpNodeName:8894/rhp-restapi/rhp/jobs/1
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Content-Length, Authorization
Connection: keep-alive
Content-Type: application/json
Content-Length: 159
Date:  Tue, 19 Jun 2018 14:03:23 GM

Request Body (body.json)

{
    "imageName": "DB_Image1",
    "path": "/oracle/dbwc1"
}

Response Body

{
     "links": [{
         "uri": "https://RHP_node_name:8894/rhp-restapi/rhp/jobs/1",
         "rel": "self"
      }],
     "jobId": "1",
     "output": {  }
}
Back to Top