Create a Project
As a vRealize Automation Cloud Assembly administrator, you can use the Projects API to create a project. Then you add members and cloud zones to the project so that project members can deploy blueprints to the associated zones.
Prerequisites
- Verify that all general prerequisites have been satisfied. See Prerequisites for working with the vRealize Automation Cloud Assembly APIs.
- Verify that the project roles
that you plan to assign have sufficient permissions to perform
project-related tasks. Note: A vRealize Automation Cloud Assembly user with the project administrator or project member role can perform a limited number of project-related tasks. For a complete list of tasks and roles required, see Organization and service user roles in vRealize Automation.
- Prepare parameters including the project name, description, and email addresses for administrators, members, or viewers.
Procedure
Example: Create a Project
Create a project named Example-project with administrators, members, and viewers at mycompany.com. This example assumes that Example-project does not exist.
$ url='https://appliance.domain.com' $ api_version='2019-01-15' $ project_name='Example-project'
Create a project with an administrator assigned to a group role.
$ curl -X POST \ "$url/project-service/api/projects?apiVersion=$api_version" \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $access_token" \ -d '{ "name" : "'$project_name'", "description" : "This is an example project", "administrators" : [ {"email" : "[email protected]", "type" : "group"} ], "members" : [ {"email" : "[email protected]", "type" : "user"} ], "viewers" : [ {"email" : "[email protected]", "type" : "user"} ] }' | jq "."
A snippet of the response from your request shows the administrators, members, and viewers related to the project and the project ID.
{ "administrators": [ { "email": "[email protected]", "type": "group" } ], "members": [ { "email": "[email protected]", "type": "user" } ], "viewers": [ { "email": "[email protected]", "type": "user" } ], "sharedResources": true, "name": "Example-project", "description": "This is an example project", "id": "5944aacb-91de-4541-bb9e-ef2a5403f81b", "orgId": "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.