Create A New Environment
post
/management/lifecycle/{version}/environments
The POST method creates an environment.
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 environment model.
Root Schema : Environment
Type:
objectIncludes the environment name and represents the logical container for tenant resources, that is, partitions, PDBs and Services.
Show Source
-
name(optional):
string
The name of the environment.
Security
-
Admin: basic
Type:
basic
Response
201 Response
Examples
Creating an Environment
This example uses the POST method to create an empty environment.
Example Request
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d "{ "name": "sprite" }" \
-X POST http://localhost:7001/management/lifecycle/latest/environments
Example Response
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/environments/sprite
Response Body:
{}
Back to Top