All Products
Search
Document Center

:ModifyDataSource

Last Updated:Mar 01, 2024

Modifies the information of a single data source in a table of a specified instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /v2/openapi/instances/{instanceId}/dataSources/{tableName}

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

airec-cn-o400whm78004
tableNamestringNo

The name of the table.

behavior

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The details about the data source.

gmtModifiedstring

The time when the data source was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

2018-12-07T02:24:26.000Z
gmtCreatestring

The time when the data source was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

2018-12-07T02:24:26.000Z
tableNamestring

The name of the table.

behavior
metaobject

The parameters of the data source.

bucketNamestring

The name of the Object Storage Service (OSS) bucket.

airec
accessKeyIdstring

The AccessKey ID of the Alibaba Cloud account.

xxx
typestring

The type of the data source. Only MaxCompute is supported.

ODPS
partitionstring

The partition in the MaxCompute table.

ds=20181122
timestamplong

The timestamp. The value must be accurate to the millisecond.

1544112000000
pathstring

The path of the OSS data source.

oss://xxx.xxx
tableNamestring

The name of the MaxCompute table.

test_maxcompute
projectNamestring

The name of the MaxCompute project.

openrec_gray
codestring

The error code.

InternalServerError
requestIdstring

The request ID.

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

The error message.

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "result": {
    "gmtModified": "2018-12-07T02:24:26.000Z",
    "gmtCreate": "2018-12-07T02:24:26.000Z",
    "tableName": "behavior",
    "meta": {
      "bucketName": "airec",
      "accessKeyId": "xxx",
      "type": "ODPS",
      "partition": "ds=20181122",
      "timestamp": 1544112000000,
      "path": "oss://xxx.xxx",
      "tableName": "test_maxcompute",
      "projectName": "openrec_gray"
    }
  },
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history