diff --git a/docs/reference/preheat.md b/docs/reference/preheat.md index 74da0290..3171f156 100644 --- a/docs/reference/preheat.md +++ b/docs/reference/preheat.md @@ -41,12 +41,11 @@ curl --location --request POST 'http://dragonfly-manager:8080/oapi/v1/jobs' \ --data-raw '{ "type": "preheat", "args": { - "filter": "Expires&Signature", - "headers": { - "Authorization": "Bearer ZDkxMDMyYTEtZDE1ZC00ZmUxLWE0ODItNDI3NTk1ZGM2YWU0" - }, "type": "image", "url": "https://index.docker.io/v2/library/redis/manifests/latest" + "filter": "Expires&Signature", + "username": "registry_username", + "password": "registry_password", } }' ``` @@ -60,12 +59,9 @@ The command-line log returns the preheat job id. "type": "preheat", "status": "PENDING", "args": { - "filter": "Expires&Signature", - "headers": { - "Authorization": "Bearer ZDkxMDMyYTEtZDE1ZC00ZmUxLWE0ODItNDI3NTk1ZGM2YWU0" - }, "type": "image", "url": "https://index.docker.io/v2/library/redis/manifests/latest" + "filter": "Expires&Signature", } } ``` @@ -74,6 +70,7 @@ Polling the preheating status with job id. ```bash curl --request GET 'http://dragonfly-manager:8080/oapi/v1/jobs/1' \ +--header 'Content-Type: application/json' \ --header 'Authorization: Bearer ZDkxMDMyYTEtZDE1ZC00ZmUxLWE0ODItNDI3NTk1ZGM2YWU0' ``` @@ -86,8 +83,6 @@ If the status is `SUCCESS`, the preheating is successful. "type": "preheat", "status": "SUCCESS", "args": { - "filter": "", - "headers": null, "type": "image", "url": "https://index.docker.io/v2/library/redis/manifests/latest" } diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/preheat.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/preheat.md index 30412732..1670289c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/preheat.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/preheat.md @@ -39,12 +39,11 @@ curl --location --request POST 'http://dragonfly-manager:8080/oapi/v1/jobs' \ --data-raw '{ "type": "preheat", "args": { - "filter": "Expires&Signature", - "headers": { - "Authorization": "Bearer ZDkxMDMyYTEtZDE1ZC00ZmUxLWE0ODItNDI3NTk1ZGM2YWU0" - }, "type": "image", "url": "https://index.docker.io/v2/library/redis/manifests/latest" + "filter": "Expires&Signature", + "username": "registry_username", + "password": "registry_password", } }' ``` @@ -58,12 +57,9 @@ curl --location --request POST 'http://dragonfly-manager:8080/oapi/v1/jobs' \ "type": "preheat", "status": "PENDING", "args": { - "filter": "Expires&Signature", - "headers": { - "Authorization": "Bearer ZDkxMDMyYTEtZDE1ZC00ZmUxLWE0ODItNDI3NTk1ZGM2YWU0" - }, "type": "image", "url": "https://index.docker.io/v2/library/redis/manifests/latest" + "filter": "Expires&Signature", } } ``` @@ -72,6 +68,7 @@ curl --location --request POST 'http://dragonfly-manager:8080/oapi/v1/jobs' \ ```bash curl --request GET 'http://dragonfly-manager:8080/oapi/v1/jobs/1' \ +--header 'Content-Type: application/json' \ --header 'Authorization: Bearer ZDkxMDMyYTEtZDE1ZC00ZmUxLWE0ODItNDI3NTk1ZGM2YWU0' ``` @@ -84,8 +81,6 @@ curl --request GET 'http://dragonfly-manager:8080/oapi/v1/jobs/1' \ "type": "preheat", "status": "SUCCESS", "args": { - "filter": "", - "headers": null, "type": "image", "url": "https://index.docker.io/v2/library/redis/manifests/latest" }