PutWorkspace
Creates a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:PutWorkspace |
create |
*Workspace
|
None | None |
Request syntax
POST /workspace/{workspaceName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceName |
string |
Yes |
The name of the workspace. |
workspace-test-001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The body parameter. |
|
| displayName |
string |
No |
The display name of the workspace. |
workspace-test |
| description |
string |
No |
The description of the workspace. |
workspace test |
| slsProject |
string |
Yes |
The name of the Simple Log Service project. |
sls-project-test-001 |
| resourceGroupId |
string |
No |
The ID of the resource group. |
rg-ae******ey |
| tags |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| key |
string |
No |
The tag key. |
env |
| value |
string |
No |
The tag value. |
prod |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC |
| workspaceName |
string |
The name of the workspace. |
workspace-test-001 |
Examples
Success response
JSON format
{
"requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC",
"workspaceName": "workspace-test-001"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.