Create a Project
To create a project, you make a POST request.
Before creating a project, you get
a list of projects to verify that the project you plan to create does not already exist.
Prerequisites
- Verify that all general prerequisites have been satisfied. See Prerequisites for Onboarding a Team.
- Verify that any user who is granted a role within a project has access to the organization through Identity and Access Management.
- Prepare parameters including the project name, description, and email addresses for administrators and members.
Procedure
Example: Create a Project
Create a project named Example-project with administrators and members at mycompany.com. This example assumes that Example-project does not already exist.
$ url='https://appliance.domain.com' $ api_version='2019-09-12' $ project_name='Example-project' $ curl -X POST -H 'Content-Type: application/json' -H "Authorization: Bearer $access_token" -d '{ "name" : "'$project_name'", "description" : "This is an example project", "administrators" : [ { "email" : "[email protected]" } ], "members" : [ { "email" : "[email protected]" } ] }' "$url/iaas/api/projects?apiVersion=$api_version" | jq "."
A snippet of the response from your request to get a list of projects and filter for Example-project shows the project ID.
... "operationTimeout": 0, "name": "Example-project", "description": "This is an example project", "id": "5944aacb-91de-4541-bb9e-ef2a5403f81b", "organizationId": "8327d53f-91ea-420a-8613-ba8f3149db95", ...
What to do next
Add a cloud zone, plus an additional administrator and user to the project. See Add a Cloud Zone to Your Project.