Create A New Partition
post
/management/lifecycle/{version}/runtimes/{runtime}/partitions
The POST method creates or registers a partition in the runtime identified by the resource URL. If the partition id is specified, the partition is registered. Otherwise it is created.
Roles
Admin
Request
Supported Media Types
- application/json
Path Parameters
-
runtime: string
The name of the runtime.
-
version: string
The version of the WebLogic Lifecycle REST interface.
The request body must include a fully populated runtime partition model.
Root Schema : Runtime Partition
Type:
objectIncludes the name and ID of the partition on a physical runtime. It can also include arbitrary properties.
Show Source
-
id(optional):
string
The ID of the partition.
-
name(optional):
string
The name of the partition.
-
properties(optional):
array properties
Arbitrary properties passed to a plugin.
-
type(optional):
string
The type of the partition. (Not used, reserved for future use)
Nested Schema : properties
Type:
arrayArbitrary properties passed to a plugin.
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:
objectHolds 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:
arrayProperty 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:
arrayProperty 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
Creating a Partition in a Runtime
This example uses the POST method to create a partition in a runtime.
Example Request
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name":"SpritePartition",
"properties" : [
{ "name" : "resourceGroups",
"properties" : [
{ "name" : "g1",
"properties" : [
{ "name" : "useDefaultTarget", "value" : "false" },
{ "name" : "resourceGroupTemplate", "value" : "template1" },
{ "name" : "targets" , "values" : ["VirtualHost-0"]}]}]},
{"name" : "availableTargets" , "values" : ["VirtualHost-0"]}]}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions
Example Response
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/runtimes/WLSTestRuntime/partitions/SpritePartition
Response Body:
{}
Registering existing Partition in a Runtime
This example uses the POST method to register an existing partition in a runtime.
Example Request
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name":"SpritePartition",
"id":"4f138249-5e6b-40fe-9c42-a675f027cd9b"}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions
Example Response
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/runtimes/WLSTestRuntime/partitions/SpritePartition
Response Body:
{}
Back to Top