失敗したタスクを報告します。
操作説明
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
fnf:ReportTaskFailed |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| TaskToken |
string |
必須 |
実行を報告するタスクのトークンです。タスクトークンは、Message Service (MNS) や Function Compute などの呼び出されたサービスに渡されます。MNS の場合、このパラメーターの値はメッセージから取得できます。Function Compute の場合、このパラメーターの値はイベントから取得できます。詳細については、「サービス統合モード」をご参照ください。 |
emptyString |
| Error |
string |
必須 |
失敗したタスクのエラーコードです。エラーコードの長さは 1~128 文字である必要があります。 |
nill |
| Cause |
string |
任意 |
失敗の原因です。値の長さは 1~4,096 文字である必要があります。 |
emptyString |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| EventId |
integer |
イベントの ID。 |
1 |
| RequestId |
string |
リクエスト ID。 |
testRequestId |
例
成功レスポンス
JSONJSON
{
"EventId": 1,
"RequestId": "testRequestId"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ActionNotSupported | The requested API operation '%s' is incorrect. Please check. | |
| 400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | |
| 400 | EntityTooLarge | The payload size exceeds maximum allowed size (%s bytes). | |
| 400 | InvalidArgument | Parameter error. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 400 | TaskAlreadyCompleted | Task %s has already completed. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 403 | InvalidAccessKeyID | The AccessKey ID %s is invalid. | |
| 403 | RequestTimeTooSkewed | The difference between the request time %s and the current time %s is too large. | |
| 403 | SignatureNotMatch | The request signature we calculated does not match the signature you provided. Check your access key and signing method. | |
| 415 | UnsupportedMediaType | The content type must be "application/json". | |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | |
| 409 | TaskInvalidState | Task is in an invalid state, please retry. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。