データソースを更新します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Description |
string |
任意 |
データソースの説明。 |
xxx |
| EnvType |
integer |
任意 |
データソースが存在する環境。有効値:
|
1 |
| Content |
string |
任意 |
データソースの詳細。データソースのタイプは変更できません。たとえば、データソースタイプを MaxCompute から MySQL に変更することはできません。一般的なデータソースの詳細の例は次のとおりです:
|
{"accessId":"*****","accessKey":"*****","authType":2,"endpoint":"http://service.odps.aliyun.com/api","project":"xsaxsax","tag":"public"} |
| Status |
string |
任意 |
データソースのステータス。このパラメーターは非推奨です。このパラメーターは使用しないでください。 |
ENABLED |
| DataSourceId |
integer |
必須 |
データソースの ID。「ListDataSources」操作を呼び出して ID を照会できます。 |
1 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| HttpStatusCode |
string |
HTTP ステータスコード。 |
200 |
| Data |
boolean |
データソースが更新されたかどうかを示します。 |
true |
| RequestId |
string |
リクエスト ID。 |
0bc14115159376359**** |
| Success |
boolean |
リクエストが成功したかどうかを示します。 |
true |
例
成功レスポンス
JSONJSON
{
"HttpStatusCode": "200",
"Data": true,
"RequestId": "0bc14115159376359****",
"Success": 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。