As a Automation Assembler administrator, you make a POST request with a project name to create a project. Then you add members and cloud zones to the project so that project members can deploy cloud templates to the associated zones.
Prerequisites
- Verify that all general prerequisites and prerequisites for the Automation Assembler Infrastructure as a Service (IaaS) service have been satisfied. See Prerequisites for API Use Case Examples.
- Verify that the project roles that you plan to assign have sufficient permissions to perform project-related tasks.
Note: A 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 VMware Aria Automation.
- Prepare parameters including the project name, description, and email addresses for administrators, members, or viewers.
Procedure
Example: Create a Project to use in Automation Assembler
Create a project named Example-Assembler-project with administrators, members, and viewers at mycompany.com. This example assumes that Example-project does not exist.
Note: If your organization uses an API service that is hosted outside of the United States, your URL variable must include a country abbreviation. See
Regional Endpoints for VMware Aria Automation APIs.
$ url='https://api.mgmt.cloud.vmware.com'
$ api_version='2021-07-15'
$ project_name='Example-Assembler-project'
Create a project for Automation Assembler.
$ curl -X POST \ "$url/iaas/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 for Automation Assembler", "administrators" : [{"email" : "[email protected]", "type" : "user"}], "members" : [{"email" : "[email protected]", "type" : "user"}], "viewers" : [{"email" : "[email protected]", "type" : "user"} ] }' | jq "."
The response shows the administrators, members, and viewers related to the project and the project ID.
{ "administrators": [ { "email": "[email protected]", "type": "user" } ], "members": [ { "email": "[email protected]", "type": "user" } ], "viewers": [ { "email": "[email protected]", "type": "user" } ], "sharedResources": true, "name": "Example-Assembler-project", "description": "This is an example project for Automation Assembler", "id": "5944aacb-91de-4541-bb9e-ef2a5403f81b", "orgId": "8327d53f-91ea-420a-8613-ba8f3149db95" }
What to do next
Add a cloud zone to your project. See Add a Cloud Zone to Your Project. If you want to add an administrator or user, see Add Users to Your Project.