CreateProjectRole - CreateProjectRole

更新时间:
复制 MD 格式

Creates a custom role for a workspace.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace management page to obtain the ID.

This parameter specifies the DataWorks workspace on which the API operation is performed.

12345

Name

string

Yes

The role name.

category_role

ModulePermissions

array

No

The list of DataWorks module permissions.

object

No

A DataWorks module permission.

ModuleId

integer

No

The DataWorks module ID. Valid values:

  • 2: HoloStudio

  • 3: StreamStudio

  • 4: Deployment management

  • 6: Data Security Guard

  • 7: Data Map

  • 8: Data Service

  • 9: Data Integration

  • 10: Data Modeling (DataBlau DDM)

  • 11: Data Studio

  • 12: Data Quality

  • 13: Data Governance

  • 14: Operation Center

  • 15: Resource optimization

  • 16: Migration Assistant

  • 17: Data Analysis

  • 18: Approval center

  • 19: Security Center

  • 20: Intelligent Data Modeling

Valid values:

  • 2 :

    HoloStudio

  • 3 :

    StreamStudio

  • 4 :

    Deployment management

  • 6 :

    Data Security Guard

  • 7 :

    Data Map

  • 8 :

    Data Service

  • 9 :

    Data Integration

  • 10 :

    Data Modeling (DataBlau DDM)

  • 11 :

    Data Studio

  • 12 :

    Data Quality

  • 13 :

    Data Governance

  • 14 :

    Operation Center

  • 15 :

    Resource optimization

  • 16 :

    Migration Assistant

  • 17 :

    Data Analysis

  • 18 :

    Approval center

  • 19 :

    Security Center

  • 20 :

    Intelligent Data Modeling

2

PermissionType

string

No

The permission type. Valid values:

  • Write: Read-only

  • Read: Edit

  • NotSet: Not controlled

Valid values:

  • Write :

    Write

  • Read :

    Read

Write

ClientToken

string

No

The client token.

Reserved field.

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID, which is used to locate logs and troubleshoot issues.

B313938A-4475-599B-98EB-A0875019FD5B

Code

string

The unique identifier of the role.

base_role_dte

Examples

Success response

JSON format

{
  "RequestId": "B313938A-4475-599B-98EB-A0875019FD5B",
  "Code": "base_role_dte"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.