AssociateProjectToImage - AssociateProjectToImage

更新时间:
复制 MD 格式

Associates an image with a workspace.

Operation description

  1. You must purchase DataWorks Basic Edition or later to use this operation.

  2. Ensure the AliyunServiceRoleForDataWorks service-linked role is created before you call this operation.

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 parameters

Parameter

Type

Required

Description

Example

Id

string

Yes

The image ID.

Custom_image_xxxx_xxxx

ProjectId

integer

Yes

The project ID.

100000001

Response elements

Element

Type

Description

Example

object

Schema of Response

Success

boolean

Indicates whether the request was successful.

true

Data

boolean

The result of the API request.

true

RequestId

string

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

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.