Tenants:Create Project

Search (SHIFT+S)



Create Project

POST /tenants/{id}/projects

Create a project

idthe URN of a ViPR Tenant/Subtenant

Required Roles

Requires one of the following roles:

  • TENANT_ADMIN
  • PROJECT_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<project_create>
<name> Name of the project String Valid Values:
  •  any string within length limits
  •  Length: 2..128
</project_create>

Response Body

Project details

Field Description Type Notes
<tenant_project>
<name> The name of the resource String
<id> ViPR ID of the related object URI
<link> A hyperlink to the related object
</tenant_project>

Examples

Request
POST https://192.168.0.0:4443/tenants/urn:storageos:TenantOrg:dbeb4135-e297-40d9-a5d4-9b40c73bdb4b:/projects HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>

<project_create>
   <name>project123</name>
</project_create>
Response
HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <tenant_project>
       <id>urn:storageos:Project:d13fc87f-f67d-4b60-a91d-f5bb9abc97d9:</id>
       <link href="/projects/urn:storageos:Project:d13fc87f-f67d-4b60-a91d-f5bb9abc97d9:" rel="self"/>
       <name>project123</name>
 </tenant_project>
Notes: