CreatePluginWorkspace
Creates a WebIDE workspace for a plugin.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:CreatePluginWorkspace |
none |
*All Resource
|
None | None |
Request syntax
POST /v1/plugin-workspaces HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| gatewayType |
string |
No |
The gateway type. If this parameter is not specified, the server uses API as the default value. |
AI |
| organizationId |
string |
Yes |
The Codeup organization ID. This is the Yunxiao DevOps organization ID, which can be obtained by parsing the response of the ListPluginRepositories operation or by creating an organization. |
664f1e2xxxx |
| repoName |
string |
Yes |
The repository name, which also serves as the English ID of the plugin. The backend does not validate the format. The frontend restricts the value to the pattern /^(?![-.])[a-z0-9.-]{1,20}(?<![-.])$/, which means 1 to 20 lowercase letters, digits, periods, or hyphens that cannot start or end with a period or hyphen. |
my-custom-plugin |
| workspaceName |
string |
No |
The workspace name, which is the Chinese name of the plugin. This parameter is required. If you do not specify this parameter, the API returns a 400 InvalidParameter.IsEmpty error. |
my-plugin |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The response status code. |
200 |
| data |
object |
The response data. |
|
| repoId |
string |
The Codeup repository ID, which is a numeric string. |
12345678 |
| workspaceId |
string |
The workspace ID. |
plw-xxxxxxxx |
| message |
string |
The response message. |
success |
| requestId |
string |
The request ID. |
01A02219-8028-57D8-9D60-2D167FF9118E |
Examples
Success response
JSON format
{
"code": "200",
"data": {
"repoId": "12345678",
"workspaceId": "plw-xxxxxxxx"
},
"message": "success",
"requestId": "01A02219-8028-57D8-9D60-2D167FF9118E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.IsEmpty | Parameter workspaceName should not be empty. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.