UpdateDataSource_大数据开发治理平台 DataWorks_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
暂无数据

请求参数

字段名称字段详情
Descriptionstring

数据源的描述信息。

示例值:xxx
EnvTypeinteger<int32>

数据源所在的环境。取值如下:展开详情

示例值:1
Contentstring

需要修改的目标数据源的详细信息。展开详情

示例值:{"accessId":"*****","accessKey":"*****","authType":2,"endpoint":"http://service.odps.aliyun.com/api","project":"xsaxsax","tag":"public"}
Statusstring

数据源的状态。该字段已废弃,请勿使用。

示例值:ENABLED
DataSourceIdinteger<int64>

需要更新的数据源 ID,您可以调用 ListDataSources 获取数据源的 ID。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:1

返回参数

字段名称字段详情
HttpStatusCodestring

请求返回码。

示例值:200
Databoolean

是否成功更新数据源。

示例值:true
RequestIdstring

请求 ID。

示例值:0bc14115159376359****
Successboolean

请求是否成功。

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Invalid.Tenant.ConnectionNotExists
The connection does not exist.诊断
400
Invalid.Tenant.ProjectNotExists
The project does not exist.诊断
400
Invalid.Tenant.UserNotInProject
The user is not in the project.诊断
400
MissingParam.ConnectionStr.Property
You must specify property %s required by the data source connection string.诊断
400
DataSource.CheckRamRoleFailure
Failed to check the RAM role. AccountId %s. roleArn %s.诊断
400
DataSource.ConnectionStrProperty.PatternNotMatch
The pattern value %s is invalid. The correct pattern is %s.诊断
400
DataSource.NotFound
The specified data source ID %s does not exist.诊断
400
Invalid.Connection.Empty
You must specify the connection parameter.诊断
400
Invalid.DataSource.DataSourceTypeNotExist
The data source type %s does not exist.诊断
400
Invalid.DataSource.DataSourceTypeNotSupport
The dataSourceType %s and subType %s are not supported.诊断
400
Invalid.Operation
You cannot delete the bindingCalcEngine that is bound to the data source.诊断
400
Invalid.Param.Odps.EngineIdOrConnectStrEmpty
Either the compute engine ID or the connection string must be specified when data source type is ODPS.诊断
400
Required.Parameter.Empty
You must specify the parameter %s.诊断
403
Invalid.Tenant.UserIsNotProjectOwnerOrAdmin
The user is not a project administrator or owner.诊断
403
Invalid.Tenant.UserNotInTenant
The user is not in tenant.诊断

变更历史

暂无变更历史

相关示例