Skip to main content
GET
/
v1
/
instances
/
{instance}
/
databases
/
{database}
/
changelogs
cURL
curl --request GET \
  --url https://api.example.com/v1/instances/{instance}/databases/{database}/changelogs
{
  "changelogs": [
    {
      "name": "<string>",
      "createTime": "2023-11-07T05:31:56Z",
      "status": "STATUS_UNSPECIFIED",
      "statement": "<string>",
      "statementSize": "<string>",
      "statementSheet": "<string>",
      "schema": "<string>",
      "schemaSize": "<string>",
      "prevSchema": "<string>",
      "prevSchemaSize": "<string>",
      "taskRun": "<string>",
      "version": "<string>",
      "revision": "<string>",
      "type": "TYPE_UNSPECIFIED"
    }
  ],
  "nextPageToken": "<string>"
}

Path Parameters

instance
string
required

The instance id.

database
string
required

The database id.

Query Parameters

pageSize
integer<int32>

The maximum number of changelogs to return. The service may return fewer than this value. If unspecified, at most 10 changelogs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

pageToken
string

A page token, received from the previous call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided must match the call that provided the page token.

view
enum<string>
Available options:
CHANGELOG_VIEW_UNSPECIFIED,
CHANGELOG_VIEW_BASIC,
CHANGELOG_VIEW_FULL

Response

OK

changelogs
object[]

The list of changelogs.

nextPageToken
string

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.