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

Database Snapshot

This contains APIs for managing database snapshots and snapshot metadata

Get object names from DB snapshot metadata

get

Retrieves a paginated list of object names for the latest database snapshot of the given instance based on object type

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
objectTypestringRequired

Type of database object (e.g., Table, etc)

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 snapshot object names

application/json
get/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/snapshot-object-names
GET /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/snapshot-object-names?objectType=text HTTP/1.1
Accept: */*
{
  "data": [
    "text"
  ]
}

Get object values from DB snapshot metadata

post

Retrieves object values for a list of object names from the latest database snapshot of the given instance based on object type

Path parameters
orgstringRequired

Organization identifier

projectstringRequired

Project identifier

dbschemastring · max: 128Required

Identifier of the database schema

dbinstancestringRequired

database instance unique id

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

Request containing object type and list of object names

objectNamesstring[]Required

List of object names to retrieve values for

objectTypestringRequired

Type of database object (e.g., Table, etc)

Responses
200

Response body for snapshot object values

application/json

Response containing list of object values from snapshot metadata

post/v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/snapshot-object-values
POST /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/dbinstance/{dbinstance}/snapshot-object-values HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "objectNames": [
    "text"
  ],
  "objectType": "text"
}
{
  "data": [
    {
      "objectName": "text",
      "objectValue": "text"
    }
  ]
}

Last updated

Was this helpful?