Create A New Environment

post

/management/lifecycle/{version}/environments

The POST method creates an environment.

Roles

Admin

Request

Supported Media Types
Path Parameters
Body ()
The request body must include a fully populated environment model.
Root Schema : Environment
Type: object
Includes the environment name and represents the logical container for tenant resources, that is, partitions, PDBs and Services.
Show Source
Security
Back to Top

Response

201 Response

Back to Top

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