Database Instance
This contains APIs for performing CRUD operations on Database Instance Entity
Create a database instance
Organization identifier
Project identifier
Identifier of the database schema
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.
Database Instance Request
branch where the instance is stored
mainCommit SHA to pin the changelog to a specific revision. Mutually exclusive with branch and gitTag. Supports Harness expressions (e.g. <+trigger.commitSha>).
abc123def456DB Connector
postgres-connectorLiquibase context
Git tag to pin the changelog to a specific tagged revision. Mutually exclusive with branch and commitSha. Supports Harness expressions (e.g. <+trigger.tag>).
v1.2.0identifier of the database instance
^[a-zA-Z_][0-9a-zA-Z_$]{0,127}$name of the database instance
Response body for Database Instance
Database Instance Response
branch where the instance is stored
commit SHA to pin the changelog to a specific revision
DB Connector
Liquibase context
epoch seconds when the database instance was created
Git tag to pin the changelog to a specific tagged revision
identifier of the database instance
Most recent tag applied to the database
Tag on last deployed changeSet
name of the database instance
epoch seconds when the database instance was last updated
Error Response body
Error Response body
Error Response body
Error Response body
POST /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 246
{
"branch": "main",
"commitSha": "abc123def456",
"connector": "postgres-connector",
"context": "text",
"gitTag": "v1.2.0",
"identifier": "text",
"name": "text",
"substituteProperties": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"branch": "text",
"commitSha": "text",
"connector": "text",
"context": "text",
"created": 1,
"gitTag": "text",
"identifier": "text",
"lastAppliedTag": "text",
"lastDeployedChangeSetTag": "text",
"name": "text",
"schemaId": "text",
"schemaIdentifier": "text",
"substituteProperties": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"toOnboard": true,
"updated": 1
}Retrieves the specified database instance
Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
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 Database Instance
Database Instance Response
branch where the instance is stored
commit SHA to pin the changelog to a specific revision
DB Connector
Liquibase context
epoch seconds when the database instance was created
Git tag to pin the changelog to a specific tagged revision
identifier of the database instance
Most recent tag applied to the database
Tag on last deployed changeSet
name of the database instance
epoch seconds when the database instance was last updated
Error Response body
Error Response body
Error Response body
Error Response body
GET /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance} HTTP/1.1
Accept: */*
{
"branch": "text",
"commitSha": "text",
"connector": "text",
"context": "text",
"created": 1,
"gitTag": "text",
"identifier": "text",
"lastAppliedTag": "text",
"lastDeployedChangeSetTag": "text",
"name": "text",
"schemaId": "text",
"schemaIdentifier": "text",
"substituteProperties": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"toOnboard": true,
"updated": 1
}Delete a database instance
Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
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.
The database instance was deleted successfully
No content
Error Response body
Error Response body
Error Response body
Error Response body
DELETE /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance} HTTP/1.1
Accept: */*
No content
Resolves a single tag on the instance by key. Returns whether the tag is present and its raw stored value (empty string for a bare, valueless key).
Organization identifier
Project identifier
Identifier of the database schema
database instance unique id
Tag key to resolve.
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.
Resolved tag presence and raw value for an instance
Resolved presence and raw value of a tag on an instance
Whether a tag with the requested key exists on the instance
Raw stored value of the tag; empty string for a bare, valueless key
Error Response body
Error Response body
Error Response body
Error Response body
GET /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance}/tag-value?key=text HTTP/1.1
Accept: */*
{
"present": true,
"value": "text"
}Retrieves the specified database instances of the database 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. Allows a larger page size than the standard limit for bulk instance listing.
10This would be used to filter resources having attributes matching the search term.
Parameter on the basis of which sorting is done.
createdPossible values: Order on the basis of which sorting is done.
DESCPossible values: 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.
DB Instance Filter Request
filter criteria type. Example: Equals, NotEquals
EqualsPossible values: Response body for List Database Schema
Error Response body
Error Response body
Error Response body
Error Response body
POST /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instancelist HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"filterType": "Equals",
"instanceTags": [
{
"key": "text",
"value": "text"
}
]
}[
{
"branch": "text",
"commitSha": "text",
"connector": "text",
"context": "text",
"created": 1,
"gitTag": "text",
"identifier": "text",
"lastAppliedTag": "text",
"lastDeployedChangeSetTag": "text",
"name": "text",
"schemaId": "text",
"schemaIdentifier": "text",
"substituteProperties": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"toOnboard": true,
"updated": 1
}
]Last updated
Was this helpful?