For the complete documentation index, see llms.txt. This page is also available as Markdown.

Migration State

This contains APIs for getting Migration State of Database Schema Entity

Fetch SQL changesets of a instance

post

Fetch SQL changesets

Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastring · max: 128Required

Identifier of the database schema

dbinstancestringRequired

database instance unique id

Query parameters
pageinteger · int64Optional

Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.

Default: 0
limitinteger · max: 100Optional

Pagination: Number of items to return.

Default: 10
Header parameters
Harness-AccountstringOptional

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.

Body
changesetFQNstring · min: 1Required
Responses
200

Response Body for Fetching SQL statements

application/json
post/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/changeset/sql
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"
  ]
}

ChangeSet deployment yaml for an instance

get
Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastring · max: 128Required

Identifier of the database schema

dbinstancestringRequired

database instance unique id

Query parameters
changeSetstringRequired

FQN of the changeSet deployed. It is the combination of fileName, changeSetId and author separated by ::

Example: folder1/fileName.yaml::changeSet1::author1
Header parameters
Harness-AccountstringOptional

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.

Responses
200

Response body for changeSet deployment yaml for an instance

application/json

ChangeSet deployment yaml info for an instance

yamlstringRequired
get/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/changeset/yaml
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

get

Flyway Migration state of an instance

Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastring · max: 128Required

Identifier of the database schema

dbinstancestringRequired

database instance unique id

Query parameters
pageinteger · int64Optional

Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.

Default: 0
limitinteger · max: 100Optional

Pagination: Number of items to return.

Default: 10
search_termstringOptional

This would be used to filter resources having attributes matching the search term.

Header parameters
Harness-AccountstringOptional

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.

Responses
200

Response body for flyway migration state of an instance

application/json
get/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/flyway/migrationstate
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

get

Migration state of a instance

Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastring · max: 128Required

Identifier of the database schema

dbinstancestringRequired

database instance unique id

Query parameters
pageinteger · int64Optional

Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.

Default: 0
limitinteger · max: 100Optional

Pagination: Number of items to return.

Default: 10
search_termstringOptional

This would be used to filter resources having attributes matching the search term.

Header parameters
Harness-AccountstringOptional

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.

Responses
200

Response body for migration state of a instance

application/json
get/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/migrationstate
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

post

Migration state of a flyway schema

Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastring · max: 128Required

Identifier of the database schema

Query parameters
pageinteger · int64Optional

Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.

Default: 0
limitinteger · max: 100Optional

Pagination: Number of items to return.

Default: 10
search_termstringOptional

This would be used to filter resources having attributes matching the search term.

Header parameters
Harness-AccountstringOptional

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.

Body

Get migration state request input

Responses
200

Response body for flyway migration state of a schema

application/json
post/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/flyway/migrationstate
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

post

Migration state of a schema

Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastringRequired

Identifier of the database schema

Query parameters
pageinteger · int64Optional

Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.

Default: 0
limitinteger · max: 100Optional

Pagination: Number of items to return.

Default: 10
search_termstringOptional

This would be used to filter resources having attributes matching the search term.

Header parameters
Harness-AccountstringOptional

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.

Body

Get migration state request input

Responses
200

Response body for migration state of a schema

application/json
post/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/migrationstate
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?