All Products
Search
Document Center

DataWorks:AssociateProjectToResourceGroup

Last Updated:Dec 12, 2024

Associates a resource group with a workspace.

Operation description

  1. You can use this API operation only in DataWorks Basic Edition or an advanced edition.
  2. Your account must be assigned one of the following roles of the desired workspace:
  • Tenant Owner, Workspace Administrator, Workspace Owner, and O&M

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringYes

The ID of the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX
ProjectIdlongYes

The ID of the DataWorks workspace with which you want to associate the resource group.

1000

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful.

true
RequestIdstring

The request ID. You can use the ID to locate logs and troubleshoot issues.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history