CreateProject
Creates a Project and automatically deploys it if a template is specified.
Operation description
If
Project.Spec.TemplateConfigis specified, the development platform automatically initiates an asynchronous deployment after Project creation. This process createsEnvironment,PipelineTrigger,PipelineTriggerEvent, andPipeline.If
Project.Spec.TemplateConfigis not specified, only the Project is created. You must then manually call theEnvironment,PipelineTrigger, andPipelineTriggerEventAPIs to complete the deployment.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
devs:CreateProject |
create |
*All Resource
|
None | None |
Request syntax
POST /2023-07-14/projects HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | Project |
No |
The Project to be created. |
Response elements
|
Element |
Type |
Description |
Example |
| Project |
The created Project. |
Examples
Success response
JSON format
{
"uid": "1455541096***548",
"kind": "Project",
"createdTime": "2021-11-19T09:34:38Z",
"name": "my-project",
"labels": {
"key": "key=value"
},
"description": "test-description",
"spec": {
"token": "9D72DE01-C732-49C0-8E85-FFD9D695436B"
},
"status": {
"services": [
{
"name": "my-service",
"type": "fc3"
}
],
"isDeleting": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.