Liquibase (liquibase)

liquibase 端點提供有關 Liquibase 應用的資料庫變更集的資訊。

檢索變更

要檢索變更,請向 /actuator/liquibase 傳送 GET 請求,如以下基於 curl 的示例所示

$ curl 'https://:8080/actuator/liquibase' -i -X GET

結果響應類似於以下內容

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 712

{
  "contexts" : {
    "application" : {
      "liquibaseBeans" : {
        "liquibase" : {
          "changeSets" : [ {
            "author" : "marceloverdijk",
            "changeLog" : "org/springframework/boot/actuate/docs/liquibase/db.changelog-master.yaml",
            "checksum" : "9:d3589feb2baad02e15540750499ba311",
            "comments" : "",
            "contexts" : [ ],
            "dateExecuted" : "2025-11-20T16:33:51.213Z",
            "deploymentId" : "3656429645",
            "description" : "createTable tableName=customer",
            "execType" : "EXECUTED",
            "id" : "1",
            "labels" : [ ],
            "orderExecuted" : 1
          } ]
        }
      }
    }
  }
}

響應結構

響應包含應用程式 Liquibase 變更集的詳細資訊。下表描述了響應的結構

路徑 型別 描述

contexts

物件

按 ID 鍵控的應用程式上下文

contexts.*.liquibaseBeans.*.changeSets

陣列

Liquibase bean 建立的變更集,按 bean 名稱鍵控。

contexts.*.liquibaseBeans.*.changeSets[].author

字串

變更集的作者。

contexts.*.liquibaseBeans.*.changeSets[].changeLog

字串

包含變更集的變更日誌。

contexts.*.liquibaseBeans.*.changeSets[].comments

字串

對變更集的評論。

contexts.*.liquibaseBeans.*.changeSets[].contexts

陣列

變更集的上下文。

contexts.*.liquibaseBeans.*.changeSets[].dateExecuted

字串

變更集執行的時間戳。

contexts.*.liquibaseBeans.*.changeSets[].deploymentId

字串

執行變更集的部署 ID。

contexts.*.liquibaseBeans.*.changeSets[].description

字串

變更集的描述。

contexts.*.liquibaseBeans.*.changeSets[].execType

字串

變更集的執行型別(EXECUTEDFAILEDSKIPPEDRERANMARK_RAN)。

contexts.*.liquibaseBeans.*.changeSets[].id

字串

變更集的 ID。

contexts.*.liquibaseBeans.*.changeSets[].labels

陣列

與變更集關聯的標籤。

contexts.*.liquibaseBeans.*.changeSets[].checksum

字串

變更集的校驗和。

contexts.*.liquibaseBeans.*.changeSets[].orderExecuted

數字

變更集的執行順序。

contexts.*.liquibaseBeans.*.changeSets[].tag

字串

與變更集關聯的標籤(如果有)。

contexts.*.parentId

字串

父應用程式上下文的 ID(如果有)。

© . This site is unofficial and not affiliated with VMware.