Migration State
This contains APIs for getting Migration State of Database Schema Entity
Fetch SQL changesets
Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.
0Pagination: Number of items to return.
10Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Response Body for Fetching SQL statements
Error Response body
Error Response body
Error Response body
POST /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/changeset/sql HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"changesetFQN": "text"
}{
"sql": [
"text"
]
}Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
FQN of the changeSet deployed. It is the combination of fileName, changeSetId and author separated by ::
folder1/fileName.yaml::changeSet1::author1Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Response body for changeSet deployment yaml for an instance
ChangeSet deployment yaml info for an instance
Error Response body
Error Response body
Error Response body
Error Response body
GET /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/changeset/yaml?changeSet=folder1%2FfileName.yaml%3A%3AchangeSet1%3A%3Aauthor1 HTTP/1.1
Accept: */*
{
"yaml": "text"
}Flyway Migration state of an instance
Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.
0Pagination: Number of items to return.
10This would be used to filter resources having attributes matching the search term.
Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Response body for flyway migration state of an instance
Error Response body
Error Response body
Error Response body
GET /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/flyway/migrationstate HTTP/1.1
Accept: */*
{
"instanceName": "text",
"migrations": [
{
"deployedAt": 1,
"description": "text",
"pipelineExecutionId": "text",
"pipelineIdentifier": "text",
"stageExecutionId": "text",
"status": "Rolled_Back",
"type": "text",
"version": "text"
}
],
"schemaName": "text"
}Migration state of a instance
Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.
0Pagination: Number of items to return.
10This would be used to filter resources having attributes matching the search term.
Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Response body for migration state of a instance
Error Response body
Error Response body
Error Response body
GET /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/migrationstate HTTP/1.1
Accept: */*
{
"changeSets": [
{
"author": "text",
"changeSet": "text",
"changeSetFQN": "text",
"comment": "text",
"deployedAt": 1,
"fileName": "text",
"label": "text",
"pipeline": "text",
"planExecutionId": "text",
"stageExecutionId": "text",
"status": "Rolled_Back",
"tag": "text"
}
],
"instanceName": "text",
"schemaName": "text"
}Migration state of a flyway schema
Organization identifier
Project identifier
Identifier of the database schema
Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.
0Pagination: Number of items to return.
10This would be used to filter resources having attributes matching the search term.
Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Get migration state request input
Response body for flyway migration state of a schema
Error Response body
Error Response body
Error Response body
POST /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/flyway/migrationstate HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"instanceFilter": {
"instances": [
"text"
],
"order": "ASC",
"sort": "identifier"
}
}{
"instances": [
{
"identifier": "text",
"name": "text"
}
],
"migrations": [
{
"deployedAt": 1,
"description": "text",
"instances": [
{
"error": "text",
"instance": "text",
"pipeline": "text",
"planExecutionId": "text",
"stageExecutionId": "text",
"status": "Rolled_Back",
"tag": "text",
"updated": 1
}
],
"type": "text",
"version": "text"
}
],
"schema": "text"
}Migration state of a schema
Organization identifier
Project identifier
Identifier of the database schema
Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.
0Pagination: Number of items to return.
10This would be used to filter resources having attributes matching the search term.
Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Get migration state request input
Response body for migration state of a schema
Error Response body
Error Response body
Error Response body
POST /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/migrationstate HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"instanceFilter": {
"instances": [
"text"
],
"order": "ASC",
"sort": "identifier"
}
}{
"changeSets": [
{
"author": "text",
"changeSet": "text",
"changeSetFQN": "text",
"fileName": "text",
"instances": [
{
"error": "text",
"instance": "text",
"pipeline": "text",
"planExecutionId": "text",
"stageExecutionId": "text",
"status": "Rolled_Back",
"tag": "text",
"updated": 1
}
],
"synced": false,
"updated": 1
}
],
"instances": [
{
"identifier": "text",
"name": "text"
}
],
"schema": "text"
}Last updated
Was this helpful?