関数のファイル情報を更新します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| FileFolderPath |
string |
任意 |
関数ファイルが格納されているフォルダのパス。 |
Business_process/First_Business_Process/function/string_processing_function |
| ProjectId |
integer |
任意 |
DataWorks ワークスペースの ID。ページの右上隅にある small レンチアイコンをクリックしてストレージ管理ページに移動し、ID を確認できます。 |
10000 |
| FunctionType |
string |
必須 |
関数の分類で、関数作成フォームの udf タイプフィールドに対応します。有効な値:
列挙値:
|
STRING |
| ClassName |
string |
必須 |
関数が定義されているクラスの名前で、関数作成フォームのクラス名フィールドに対応します。 |
com.alibaba.DataWorks.api.udf.StringConcat |
| Resources |
string |
必須 |
関数によって参照されるリソース名のリストで、カンマ (,) で区切ります。これは関数作成フォームの resources フィールドに対応します。 |
string-concat-1.0.0.jar,commons-lang-2.6.jar |
| UdfDescription |
string |
任意 |
関数の目的の説明で、関数作成フォームの説明フィールドに対応します。 |
複数の文字列を連結して新しい文字列を生成します |
| CmdDescription |
string |
任意 |
関数を呼び出す際のコマンドフォーマットで、関数作成フォームのコマンドフォーマットフィールドに対応します。 |
StringConcat(String... substrs) |
| ParameterDescription |
string |
任意 |
関数の入力パラメーターの説明で、関数作成フォームのメトリックの説明フィールドに対応します。 |
連結する文字列のリスト |
| ReturnValue |
string |
任意 |
関数の戻り値の説明で、関数作成フォームの戻り値フィールドに対応します。 |
入力順序に従ってすべての文字列を連結して生成された新しい文字列 |
| Example |
string |
任意 |
関数の呼び出し例で、関数作成フォームの例フィールドに対応します。 |
StringConcat('a', 'b', 'c') |
| ProjectIdentifier |
string |
任意 |
DataWorks ワークスペースの一意の識別子で、DataStudio ページ上部のワークスペース切り替えに表示される英語の識別子です。 この API 呼び出しの対象となる DataWorks ワークスペースを特定するには、このパラメーターまたは ProjectId パラメーターのいずれかを指定する必要があります。 |
dw_project |
| FileId |
string |
必須 |
ファイルの ID。 |
1000000112 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 状態コード。 |
200 |
| ErrorMessage |
string |
エラーメッセージ。 |
接続が存在しません |
| RequestId |
string |
リクエストの一意の ID。この ID を使用して問題のトラブルシューティングを行えます。 |
0000-ABCD-EFG**** |
| ErrorCode |
string |
エラーコード。 |
Invalid.Tenant.ConnectionNotExists |
| Success |
boolean |
呼び出しが成功したかどうかを示します。 |
true |
例
成功レスポンス
JSONJSON
{
"HttpStatusCode": 200,
"ErrorMessage": "The connection does not exist.",
"RequestId": "0000-ABCD-EFG****",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。