<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Project repository storage moves API > 原文:[https://docs.gitlab.com/ee/api/project_repository_storage_moves.html](https://docs.gitlab.com/ee/api/project_repository_storage_moves.html) * [Retrieve all project repository storage moves](#retrieve-all-project-repository-storage-moves) * [Retrieve all repository storage moves for a project](#retrieve-all-repository-storage-moves-for-a-project) * [Get a single project repository storage move](#get-a-single-project-repository-storage-move) * [Get a single repository storage move for a project](#get-a-single-repository-storage-move-for-a-project) * [Schedule a repository storage move for a project](#schedule-a-repository-storage-move-for-a-project) # Project repository storage moves API[](#project-repository-storage-moves-api-core-only "Permalink") 在 GitLab 13.0 中[引入](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/31285) . 項目存儲庫存儲可以移動. 要使用 API??檢索項目存儲庫存儲移動,您必須以管理員[身份進行身份驗證](README.html#authentication) . ## Retrieve all project repository storage moves[](#retrieve-all-project-repository-storage-moves "Permalink") ``` GET /project_repository_storage_moves ``` 默認情況下,因為 API 結果是[分頁的](README.html#pagination) ,所以`GET`請求一次返回 20 個結果. 請求示例: ``` curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/project_repository_storage_moves" ``` 響應示例: ``` [ { "id": 1, "created_at": "2020-05-07T04:27:17.234Z", "state": "scheduled", "source_storage_name": "default", "destination_storage_name": "storage2", "project": { "id": 1, "description": null, "name": "project1", "name_with_namespace": "John Doe2 / project1", "path": "project1", "path_with_namespace": "namespace1/project1", "created_at": "2020-05-07T04:27:17.016Z" } ] ``` ## Retrieve all repository storage moves for a project[](#retrieve-all-repository-storage-moves-for-a-project "Permalink") ``` GET /projects/:project_id/repository_storage_moves ``` 默認情況下,因為 API 結果是[分頁的](README.html#pagination) ,所以`GET`請求一次返回 20 個結果. Parameters: | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | integer | yes | 項目編號 | 請求示例: ``` curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/repository_storage_moves" ``` 響應示例: ``` [ { "id": 1, "created_at": "2020-05-07T04:27:17.234Z", "state": "scheduled", "source_storage_name": "default", "destination_storage_name": "storage2", "project": { "id": 1, "description": null, "name": "project1", "name_with_namespace": "John Doe2 / project1", "path": "project1", "path_with_namespace": "namespace1/project1", "created_at": "2020-05-07T04:27:17.016Z" } ] ``` ## Get a single project repository storage move[](#get-a-single-project-repository-storage-move "Permalink") ``` GET /project_repository_storage_moves/:repository_storage_id ``` Parameters: | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `repository_storage_id` | integer | yes | 項目存儲庫存儲移動的標識 | 請求示例: ``` curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/project_repository_storage_moves/1" ``` 響應示例: ``` { "id": 1, "created_at": "2020-05-07T04:27:17.234Z", "state": "scheduled", "source_storage_name": "default", "destination_storage_name": "storage2", "project": { "id": 1, "description": null, "name": "project1", "name_with_namespace": "John Doe2 / project1", "path": "project1", "path_with_namespace": "namespace1/project1", "created_at": "2020-05-07T04:27:17.016Z" } ``` ## Get a single repository storage move for a project[](#get-a-single-repository-storage-move-for-a-project "Permalink") ``` GET /projects/:project_id/repository_storage_moves/:repository_storage_id ``` Parameters: | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | integer | yes | 項目編號 | | `repository_storage_id` | integer | yes | 項目存儲庫存儲移動的標識 | 請求示例: ``` curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/repository_storage_moves/1" ``` 響應示例: ``` { "id": 1, "created_at": "2020-05-07T04:27:17.234Z", "state": "scheduled", "source_storage_name": "default", "destination_storage_name": "storage2", "project": { "id": 1, "description": null, "name": "project1", "name_with_namespace": "John Doe2 / project1", "path": "project1", "path_with_namespace": "namespace1/project1", "created_at": "2020-05-07T04:27:17.016Z" } ``` ## Schedule a repository storage move for a project[](#schedule-a-repository-storage-move-for-a-project "Permalink") ``` POST /projects/:project_id/repository_storage_moves ``` Parameters: | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | integer | yes | 項目編號 | | `destination_storage_name` | string | yes | 目標存儲分片的名稱 | 請求示例: ``` curl --request POST --header "PRIVATE_TOKEN: <your_access_token>" --header "Content-Type: application/json" \ --data '{"destination_storage_name":"storage2"}' "https://gitlab.example.com/api/v4/projects/1/repository_storage_moves" ``` 響應示例: ``` { "id": 1, "created_at": "2020-05-07T04:27:17.234Z", "state": "scheduled", "source_storage_name": "default", "destination_storage_name": "storage2", "project": { "id": 1, "description": null, "name": "project1", "name_with_namespace": "John Doe2 / project1", "path": "project1", "path_with_namespace": "namespace1/project1", "created_at": "2020-05-07T04:27:17.016Z" } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看