Create A New Runtime
post
/management/lifecycle/{version}/runtimes
The POST method registers a runtime.
Roles
Admin
Request
Supported Media Types
- application/json
Path Parameters
-
version: string
The version of the WebLogic Lifecycle REST interface.
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
-
hostName(optional):
string
The hostname of the runtime.
-
name(optional):
string
The name of the runtime.
-
port(optional):
string
The port of the runtime.
-
properties(optional):
array properties
Arbitrary properties. These may include the username and password that are required to connect to the runtime.
-
protocol(optional):
string
The protocol of the runtime.
-
type(optional):
string
The type of the runtime.
Nested Schema : properties
Type:
array
Arbitrary properties. These may include the username and password that are required
to connect to the runtime.
Show Source
-
Array of:
object 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
-
confidentialValue(optional):
string
Property Confidential String value.
-
properties(optional):
array properties
Property Properties value.
-
values(optional):
array values
Property String values.
Nested Schema : properties
Type:
array
Property Properties value.
Show Source
-
Array of:
object 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
-
Array of:
object Property
Holds a named property, where the value can be a String, a confidential String, or a list of Properties.
Security
-
Admin: basic
Type:
basic
Response
201 Response
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