CreateProject
Creates a project and automatically deploys it if a template configuration is specified.
Operation description
If a template configuration is provided in
Project.Spec.TemplateConfig, the development platform automatically starts an asynchronous deployment after the project is created. This process creates theEnvironment,PipelineTrigger,PipelineTriggerEvent, andPipelineentities.If
Project.Spec.TemplateConfigis not specified, the operation creates only the project entity. 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 entity. |
Response elements
|
Element |
Type |
Description |
Example |
| Project |
The created project entity. |
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.