Memperbarui sumber data.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Description |
string |
No |
Deskripsi sumber data. |
xxx |
| EnvType |
integer |
No |
Lingkungan tempat sumber data berada. Nilai valid:
|
1 |
| Content |
string |
No |
Detail tentang sumber data. Anda tidak diizinkan mengubah tipe sumber data. Misalnya, Anda tidak diizinkan mengubah tipe sumber data dari MaxCompute menjadi MySQL. Contoh detail beberapa sumber data umum:
|
{"accessId":"*****","accessKey":"*****","authType":2,"endpoint":"http://service.odps.aliyun.com/api","project":"xsaxsax","tag":"public"} |
| Status |
string |
No |
Status sumber data. Parameter ini tidak digunakan lagi. Jangan gunakan parameter ini. |
ENABLED |
| DataSourceId |
integer |
Yes |
ID sumber data. Anda dapat memanggil operasi ListDataSources untuk mengkueri ID. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| HttpStatusCode |
string |
The HTTP status code. |
200 |
| Data |
boolean |
Indicates whether the data source is updated. |
true |
| RequestId |
string |
The request ID. |
0bc14115159376359**** |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": "200",
"Data": true,
"RequestId": "0bc14115159376359****",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.