Memperbarui sumber data.
API ini telah ditinggalkan. Kami merekomendasikan migrasi ke dataworks-public(2020-05-18) - UpdateDataSource guna memperoleh fungsionalitas yang lebih baik dan dukungan berkelanjutan. Meskipun API yang telah ditinggalkan ini masih dapat diakses sementara, tidak akan ada pembaruan atau perbaikan bug lebih lanjut.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Description |
string |
No |
Deskripsi sumber data. |
abc |
| EnvType |
integer |
No |
Lingkungan tempat sumber data digunakan. Nilai valid: 0 dan 1. Nilai 0 menunjukkan lingkungan pengembangan. Nilai 1 menunjukkan lingkungan produksi. |
1 |
| Content |
string |
No |
Detail sumber data. Contoh detail beberapa sumber data umum:
|
{"database":"dbname","instanceName":"instancename","password":"password","rdsOwnerId":"123","username":"username"} |
| Status |
string |
No |
Status sumber data. Nilai valid: ENABLED dan DISABLED. Nilai ENABLED menunjukkan bahwa sumber data dalam keadaan normal. Nilai DISABLED menunjukkan bahwa sumber data dalam keadaan tidak normal. |
ENABLED |
| ConnectionId |
integer |
Yes |
ID sumber data. Anda dapat memanggil operasi ListConnections untuk mengkueri ID. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| 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 |
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Tenant.ConnectionNotExists | The connection does not exist. | The connection does not exist. |
| 400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | The project does not exist. |
| 400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | The user is not in the project. |
| 400 | Invalid.DataSource.DataSourceStatus | The specified dataSourceStatus %s is invalid. | The specify data source status %s invalid. |
| 403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | The user is not a project administrator or owner. |
| 403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | The user is not in tenant. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.