Create A New Partition

post

/management/lifecycle/{version}/environments/{environment}/partitions

The POST method adds a partition to the environment identified by the resource URL.

Roles

Admin

Request

Supported Media Types
Path Parameters
Body ()
The request body must include a fully populated environment partition model.
Root Schema : Environment Partition
Type: object
Includes the name and runtime name, and represents a logical partition added to the environment.
Show Source
Security
Back to Top

Response

201 Response

Back to Top

Examples

Adding a Partition to the Environment

This example uses the POST method to add a partition to an environment.

Example Request
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name": "SpritePartition", "runtimeName": "WLSRuntime"}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/partitions
Example Response
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition
Response Body:
{}
Back to Top