Create A New Runtime

post

/management/lifecycle/{version}/runtimes

The POST method registers a runtime.

Roles

Admin

Request

Supported Media Types
Path Parameters
Body ()
The request body must include a fully populated runtime model.
Root Schema : Runtime
Type: object
Includes the name, type, host and port for a physical runtime. It can also include arbitrary properties.
Show Source
Nested Schema : properties
Type: array
Arbitrary properties. These may include the username and password that are required to connect to the runtime.
Show Source
  • Property
    Holds a named property, where the value can be a String, a confidential String, or a list of Properties.
Nested Schema : Property
Type: object
Holds a named property, where the value can be a String, a confidential String, or a list of Properties.
Show Source
Nested Schema : properties
Type: array
Property Properties value.
Show Source
  • Property
    Holds a named property, where the value can be a String, a confidential String, or a list of Properties.
Nested Schema : values
Type: array
Property String values.
Show Source
  • Property
    Holds a named property, where the value can be a String, a confidential String, or a list of Properties.
Security
Back to Top

Response

201 Response

Back to Top

Examples

Registering a Runtime

This example uses the POST method to register a runtime.

Example Request
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name": "WLSRuntime", "type": "wls",  "protocol": "http", "hostName": "localhost", "port": "7001", "properties": [{"name": "username", "value": "username"}, {"name": "password", "confidentialValue": "password"}]}'
-X POST http://localhost:7001/management/lifecycle/latest/runtimes
Example Response
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime
Response Body:
{}
Back to Top