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
- application/json
Path Parameters
-
environment: string
The name of the environment.
-
version: string
The version of the WebLogic Lifecycle REST interface.
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
-
name(optional):
string
The name of the partition.
-
runtimeName(optional):
string
The name of the runtime on which the partition exists.
Security
-
Admin: basic
Type:
basic
Response
201 Response
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