All Products
Search
Document Center

DataWorks:CreateProject

Last Updated:Dec 05, 2024

Creates a workspace.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:CreateProjectcreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the workspace.

sora_finance
DisplayNamestringYes

The display name of the workspace.

DescriptionstringNo

The description of the workspace.

AliyunResourceGroupIdstringNo

The ID of the Alibaba Cloud resource group to which the workspace belongs. You can log on to the Resource Management console and go to the Resource Group page to query the ID.

You can configure this parameter to specify an Alibaba Cloud resource group that you want to use to manage the workspace.

rg-acfmzbn7pti3zff
PaiTaskEnabledbooleanNo

Specifies whether to enable scheduling of Platform for AI (PAI) tasks. Valid values:

  • true: enables scheduling of PAI tasks. In this case, you can create a PAI node in a DataWorks workspace and configure scheduling properties for the node to implement periodic scheduling of PAI tasks.
  • false: disables scheduling of PAI tasks.
true
DevEnvironmentEnabledbooleanNo

Specifies whether to enable the development environment. Valid values:

  • true : enables the development environment. In this case, the development environment is isolated from the production environment in the workspace.
  • false: disables the development environment. In this case, only the production environment is used in the workspace.
false
AliyunResourceTagsarray<object>No

The tags.

objectNo
KeystringNo

The tag key.

batch
ValuestringNo

The tag value.

blue
DevRoleDisabledbooleanNo

Specifies whether to disable the Develop role. Valid values:

  • false (default)
  • true
true

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

AFBB799F-8578-51C5-A766-E922EDB8XXXX
ProjectIdlong

The workspace ID.

123456

Examples

Sample success responses

JSONformat

{
  "RequestId": "AFBB799F-8578-51C5-A766-E922EDB8XXXX\n",
  "ProjectId": 123456
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-10-17The internal configuration of the API is changed, but the call is not affectedView Change Details