Create Project

Create Project

Create project

Request
URI
POST
https://api.mgmt.cloud.vmware.com//iaas/api/projects
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about


Request Body

Project Specification instance

ProjectSpecification of type(s) application/json
Required
{
    "viewers": [
        {
            "email": "[email protected]"
        }
    ],
    "machineNamingTemplate": "${project.name}-test-${####}",
    "sharedResources": true,
    "operationTimeout": 30,
    "members": [
        {
            "email": "[email protected]"
        }
    ],
    "zoneAssignmentConfigurations": [
        {
            "memoryLimitMB": 2048,
            "zoneId": "77ee1",
            "maxNumberInstances": 50,
            "priority": 1
        }
    ],
    "name": "string",
    "description": "string",
    "administrators": [
        {
            "email": "[email protected]"
        }
    ]
}
array of User
viewers
Optional

List of viewer users associated with the project.

string
machineNamingTemplate
Optional

The naming template to be used for machines provisioned in this project

boolean
sharedResources
Optional

Specifies whether the resources in this projects are shared or not. If not set default will be used.

integer As int64 As int64
operationTimeout
Optional

The timeout that should be used for Blueprint operations and Provisioning tasks. The timeout is in seconds

array of User
members
Optional

List of member users associated with the project.

zoneAssignmentConfigurations
Optional

List of configurations for zone assignment to a project.

string
name
Required

A human-friendly name used as an identifier in APIs that support this option.

string
description
Optional

A human-friendly description.

object
constraints
Optional

List of storage, network and extensibility constraints to be applied when provisioning through this project.

array of User
administrators
Optional

List of administrator users associated with the project. Only administrators can manage project's configuration.

Responses
201

successful operation

Returns Project of type(s) application/json
{
    "owner": "[email protected]",
    "operationTimeout": 0,
    "description": "my-description",
    "zones": [
        {
            "memoryLimitMB": 2048,
            "zoneId": "77ee1",
            "maxNumberInstances": 50,
            "priority": 1
        }
    ],
    "orgId": "9e49",
    "organizationId": "deprecated",
    "createdAt": "2012-09-27",
    "viewers": [
        {
            "email": "[email protected]"
        }
    ],
    "machineNamingTemplate": "${project.name}-test-${####}",
    "sharedResources": false,
    "members": [
        {
            "email": "[email protected]"
        }
    ],
    "name": "my-name",
    "id": "9e49",
    "administrators": [
        {
            "email": "[email protected]"
        }
    ],
    "updatedAt": "2012-09-27"
}
string
owner
Optional

Email of the user that owns the entity.

object
_links
Required

HATEOAS of the entity

integer As int64 As int64
operationTimeout
Optional

The timeout that should be used for Blueprint operations and Provisioning tasks. The timeout is in seconds

string
description
Optional

A human-friendly description.

zones
Optional

List of Cloud Zones assigned to this project. You can limit deployment to a single region or allow multi-region placement by adding more than one cloud zone to a project. A cloud zone lists available resources. Use tags on resources to control workload placement.

object
constraints
Optional

List of storage, network and extensibility constraints to be applied when provisioning through this project.

string
orgId
Optional

The id of the organization this entity belongs to.

string
organizationId
Optional

This field is deprecated. Use orgId instead. The id of the organization this entity belongs to.

string
createdAt
Optional

Date when the entity was created. The date is in ISO 8601 and UTC.

array of User
viewers
Optional

List of viewer users associated with the project.

string
machineNamingTemplate
Optional

The naming template to be used for machines provisioned in this project

boolean
sharedResources
Optional

Specifies whether the resources in this projects are shared or not.

array of User
members
Optional

List of member users associated with the project.

string
name
Optional

A human-friendly name used as an identifier in APIs that support this option.

string
id
Required

The id of this resource instance

array of User
administrators
Optional

List of administrator users associated with the project. Only administrators can manage project's configuration.

string
updatedAt
Optional

Date when the entity was last updated. The date is ISO 8601 and UTC.


400

Invalid Request - bad data

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure