- 主要流程
- codeZone
- codeZoneResource
- codeZoneMiddleware
- codeZoneSnapshot
- unitTest
- git-codeZone
- docker
- git-docker
- unitTestFramework
- environment
- middleware
- playground
- git-playground
- playgroundUnitTest
- DiskResource
- URLResource
- ticket
- playgroundMiddleware
- nix
- file
- mq
- IDE Server
forkCodeZone
POST
/api/v1/sdk/codeZones/fork
codeZone
请求参数
Header 参数
tenantCode
string
租户code
默认值:
demo
userId
string
租户系统用户Id
默认值:
2
nonce
string
必需
默认值:
{{nonce}}
timestamp
string
必需
默认值:
{{timestamp}}
token
string
必需
默认值:
{{token}}
Body 参数application/json
codeZoneId
string
必需
commitId
string
commitId
cpu
integer <int32>
cpu
memory
integer <int32>
memory
purpose
string
可选
withMiddlewareData
boolean
可选
示例
{
"codeZoneId": "string",
"commitId": "string",
"cpu": 0,
"memory": 0,
"purpose": "string",
"withMiddlewareData": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/sdk/codeZones/fork' \
--header 'tenantCode;' \
--header 'userId;' \
--header 'nonce;' \
--header 'timestamp;' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"codeZoneId": "string",
"commitId": "string",
"cpu": 0,
"memory": 0,
"purpose": "string",
"withMiddlewareData": true
}'
返回响应
🟢200OK
application/json
Body
data
object (CodeZoneDTO)
可选
environmentName
string
环境名
environmentVerId
string
环境版本Id
id
string
主键ID
startCmd
string