スケジュールされたプリフェッチタスクを追加します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InsertWay |
string |
必須 |
プリフェッチファイルのアップロードメソッド。テキストボックスおよび OSS アップロードメソッドがサポートされています。 列挙値:
|
oss |
| Name |
string |
必須 |
スケジュールされたプリフェッチタスクの名前。 |
example |
| OssUrl |
string |
任意 |
スケジュールされたプリフェッチタスクの OSS ファイル。OSS ファイルのアドレスを入力します。 注: OSS ファイルにはプリフェッチする URL が含まれています。 |
https://xxxobject.oss-cn-reginon.aliyuncs.com/9d91_xxxxxxxxxxx_158bb6e0f97c477791209bb46bd599f7 |
| SiteId |
integer |
必須 |
サイト ID。 ListSites 操作を呼び出して取得できます。 |
190007158391808 |
| UrlList |
string |
任意 |
プリフェッチする URL のリスト。このパラメーターは、テキストボックスからプリフェッチファイルをアップロードする場合に使用されます。 |
http://testurl.com/a.txt http://testurl.com/b.txt |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエスト ID。 |
15C66C7B-671A-4297-9187-2C4477247B78 |
| AliUid |
string |
Alibaba Cloud アカウント ID。 |
15685865xxx14622 |
| CreatedAt |
string |
タスクが作成された時間。ISO 8601 フォーマット(例: 2024-01-01T00:00:00+08:00)。 |
2023-06-05T10:04:20+0800 |
| Domains |
string |
プリフェッチドメインのリスト。 |
testurl.com |
| ErrorInfo |
string |
エラー情報。複数のエラーはカンマで区切られます:
|
InvalidDomain |
| FailedFileOss |
string |
失敗したファイルの OSS アドレス。 |
https://xxxobject.oss-cn-reginon.aliyuncs.com/9d91_xxxxxxxxxxx_158bb6e0f97c477791209bb46bd599f7 |
| FileId |
string |
URL リストファイル ID。ダウンロードに使用されます。 |
665d3b48621bccf3fe29e1a7 |
| Id |
string |
タスク ID。 |
665d3af3621bccf3fe29e1a4 |
| InsertWay |
string |
URL の挿入メソッド。 列挙値:
|
oss |
| Name |
string |
タスク名。 |
example |
| SiteId |
integer |
サイト ID。 |
190007158391808 |
| TaskSubmitted |
integer |
プリフェッチタスクとしてシステムに送信された URL の数。 |
1 |
| TaskType |
string |
タスクタイプ(リフレッシュ/プリフェッチ)。 列挙値:
|
preload |
| UrlCount |
integer |
URL の総数。 |
2 |
| UrlSubmitted |
integer |
送信された URL の数。 |
1 |
例
成功レスポンス
JSONJSON
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247B78",
"AliUid": "15685865xxx14622",
"CreatedAt": "2023-06-05T10:04:20+0800",
"Domains": "testurl.com",
"ErrorInfo": "InvalidDomain",
"FailedFileOss": "https://xxxobject.oss-cn-reginon.aliyuncs.com/9d91_xxxxxxxxxxx_158bb6e0f97c477791209bb46bd599f7",
"FileId": "665d3b48621bccf3fe29e1a7",
"Id": "665d3af3621bccf3fe29e1a4",
"InsertWay": "oss",
"Name": "example",
"SiteId": 190007158391808,
"TaskSubmitted": 1,
"TaskType": "preload",
"UrlCount": 2,
"UrlSubmitted": 1
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | |
| 400 | InvalidJob.JobCountOfSiteFull | The maximum number of prefetch tasks for the website has been reached. Delete some unwanted ones and try again. | |
| 400 | InvalidParameter.ObjectId | Invalid task ID or execution plan ID. | |
| 400 | MissingOssUrl | OssUrl missing. Specify a valid URL of the OSS object that stores URLs to prefetch. | |
| 400 | MissingUrlList | Enter the URLs you want to prefetch. | |
| 400 | TooManyRequests | Too many requests.Please try again later. | |
| 403 | InvalidUid.PermissionDenied | You do not have the permissions to perform this operation on this resource. Check whether the specified UID is correct and has the required permissions. | |
| 404 | InvalidJob.NotFound | The task does not exist. Check whether the task ID is correct or whether the task has been deleted. | |
| 404 | LogNotFound | Failed to query the log. Check whether the task ID and execution ID are valid. | |
| 404 | InvalidExecution.NotFound | The execution plan does not exist. Check whether the parameters such as the execution ID, start time, and end time are correct. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。