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
Path Parameters
Body ()
The request body must include a fully populated runtime partition model.
Root Schema : Runtime Partition
Type: object
Includes the name and ID of the partition on a physical runtime. It can also include arbitrary properties.
Show Source
Nested Schema : properties
Type: array
Arbitrary properties passed to a plugin.
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

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