Download OpenAPI specification:Download
OpenAPI specification for MongoDB Relational Migrator tool
Create a task for pre-migration analysis.
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
required | object (jdbc-connection-details) |
{- "jdbcConnectionDetails": {
- "id": "string",
- "type": "ORACLE",
- "url": "string",
- "user": "string",
- "password": "string",
- "savePassword": false,
- "existingConnectionId": "string",
- "oraclePdbName": "string",
- "isManualUri": false
}
}
{- "projectId": "string",
- "status": "RUNNING",
- "submittedAt": "2019-08-24T14:15:22Z"
}
Get a pre-migration analysis report.
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
{- "id": "string",
- "projectId": "string",
- "generatedAt": "2019-08-24T14:15:22Z",
- "preflightChecks": [
- {
- "name": "string",
- "migrationMode": "SNAPSHOT",
- "passed": true
}
], - "rules": [
- {
- "id": "string",
- "dboType": "TABLE",
- "ruleType": "TASK",
- "entityName": "string",
- "detectionText": "string",
- "difficulty": "HIGH",
- "mitigationText": "string",
- "category": "DATA_TYPE",
- "incompatibleFeatureType": "ORACLE-PACKAGE"
}
], - "dbMetrics": {
- "totalDbSize": 0,
- "readHeavyTables": [
- {
- "database": "string",
- "schema": "string",
- "name": "string"
}
], - "writeHeavyTables": [
- {
- "database": "string",
- "schema": "string",
- "name": "string"
}
], - "allTables": [
- {
- "path": {
- "database": "string",
- "schema": "string",
- "name": "string"
}, - "dataSize": 0,
- "rowCount": 0,
- "readCount": 0,
- "writeCount": 0,
- "readWriteClassification": "READ_HEAVY",
- "columns": {
- "property1": {
- "type": {
- "databaseSpecificType": "string",
- "precision": 0,
- "scale": 0
}, - "ordinalPosition": 1,
- "primaryKey": {
- "name": "string"
}, - "foreignKey": {
- "name": "string",
- "schema": "string",
- "table": "string",
- "column": "string",
- "cardinality": "UNKNOWN",
- "synthetic": true
}, - "nullable": true,
- "autoIncremented": true,
- "generated": true,
- "hidden": true,
- "indexed": true,
- "uniqueIndexed": true
}, - "property2": {
- "type": {
- "databaseSpecificType": "string",
- "precision": 0,
- "scale": 0
}, - "ordinalPosition": 1,
- "primaryKey": {
- "name": "string"
}, - "foreignKey": {
- "name": "string",
- "schema": "string",
- "table": "string",
- "column": "string",
- "cardinality": "UNKNOWN",
- "synthetic": true
}, - "nullable": true,
- "autoIncremented": true,
- "generated": true,
- "hidden": true,
- "indexed": true,
- "uniqueIndexed": true
}
}
}
], - "allStoredProcedures": [
- {
- "path": {
- "database": "string",
- "schema": "string",
- "name": "string"
}, - "definition": "string"
}
], - "allTriggers": [
- {
- "path": {
- "database": "string",
- "schema": "string",
- "name": "string"
}, - "definition": "string"
}
], - "allViews": [
- {
- "path": {
- "database": "string",
- "schema": "string",
- "name": "string"
}, - "definition": "string"
}
]
}, - "databaseMetadata": {
- "databaseVersion": "string",
- "connectionId": "string",
- "connectionName": "string",
- "connectionUrl": "string",
- "databaseType": "string",
- "connectionType": "DEMO"
}, - "healthScore": 0,
- "resolvedRules": [
- "string"
], - "takeaways": [
- {
- "type": "DATA_TYPE",
- "value": 0
}
], - "uniqueDboAlerts": {
- "task": 0,
- "risk": 0,
- "notice": 0,
- "none": 0
}, - "detectionCountsByDboType": {
- "property1": {
- "severityCountsByDetectionCategory": {
- "property1": {
- "task": 0,
- "risk": 0,
- "notice": 0,
- "none": 0
}, - "property2": {
- "task": 0,
- "risk": 0,
- "notice": 0,
- "none": 0
}
}
}, - "property2": {
- "severityCountsByDetectionCategory": {
- "property1": {
- "task": 0,
- "risk": 0,
- "notice": 0,
- "none": 0
}, - "property2": {
- "task": 0,
- "risk": 0,
- "notice": 0,
- "none": 0
}
}
}
}, - "errors": [
- "string"
]
}
Generates application code based on your project's mapping rules and schema transformations
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
collections required | Array of strings MongoDB collections to include in generated code |
includeSupportFiles required | boolean Whether to include support files, if applicable for the selected language and framework |
language required | string (codegen-language-type) Enum: "JAVA" "CSHARP" "JAVASCRIPT" "JSON" "PYTHON" |
framework required | string (codegen-framework-type) Enum: "POJO" "POCO" "SPRING_DATA" "PERSISTENCE_LAYER" "MONGOOSE_SCHEMAS" "NODE" "MONGODB_JSON_SCHEMA" "STANDARD_JSON_SCHEMA" "JSON_EXAMPLE_SCHEMA" "PYTHON_TYPED_DICT_CLASSES" |
{- "collections": [
- "string"
], - "includeSupportFiles": true,
- "language": "JAVA",
- "framework": "POJO"
}
{- "language": "JAVA",
- "framework": "POJO",
- "files": [
- {
- "name": "string",
- "filetype": "ENTITY",
- "code": "string"
}
]
}
Gets the available languages and frameworks for code generation
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
{- "metadata": [
- {
- "language": "JAVA",
- "frameworks": [
- {
- "hasSupportFiles": true,
- "framework": "POJO"
}
]
}
]
}
Get all migration jobs
sort | string^\w+,(DESC|ASC)$ Default: "submittedAt,DESC" Example: sort=submittedAt,DESC Order in which to retrieve the results |
limit | integer Example: limit=20 Limit the results |
type | string (migration-jobs-get-type) Value: "IN_PROGRESS" Example: type=IN_PROGRESS Filter jobs to only of a specific job type |
projectId | string (id) ^[A-Za-z0-9\-]+$ Filter jobs by projectId |
[- {
- "id": "string",
- "projectId": "string",
- "status": "RUNNING",
- "cdcStatus": "NOT_STARTED",
- "verificationJobId": "string",
- "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "jdbcConnectionString": "string",
- "mongoDbConnectionString": "string",
- "atlasMetadata": {
- "mongoDbProjectName": "string",
- "mongoDbProjectId": "string",
- "mongoDbClusterName": "string"
}, - "submittedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "elapsedSeconds": 0,
- "remainingTableCount": 0,
- "processingTables": [
- "string"
], - "totalEventsSeen": 0,
- "snapshotCompleted": false,
- "totalTableCount": 0,
- "totalEvents": 0,
- "totalEventSize": 0
}, - "cdcStatistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "lastEventTime": "2019-08-24T14:15:22Z",
- "eventsInLastHour": 0,
- "eventsInLastMinute": 0,
- "totalEventsSeen": 0
}, - "jobUpdates": [
- {
- "eventType": "ERROR",
- "stage": "SNAPSHOTTING",
- "message": "string",
- "details": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "stackTrace": "string",
- "errorCode": "string",
- "suggestion": "string",
- "locationType": "TABLE",
- "locationName": "string",
- "fieldName": "string",
- "key": {
- "property1": "string",
- "property2": "string"
}, - "count": 0,
- "location": {
- "table": "string"
}
}
], - "failureError": {
- "errorType": "string",
- "message": "string",
- "failureAt": "2019-08-24T14:15:22Z",
- "setupError": false
}, - "metadata": {
- "telemetryUserId": "string",
- "verificationRequested": false,
- "verificationStatus": "VERIFYING"
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
]
Post a new migration job
projectId required | string |
required | object (jdbc-connection-details) |
required | object (mongodb-connection-details) |
required | object (migration-job-descriptor-options) |
required | object (migration-verification) |
object (relational-table-filters) An object where each key represents a schema name. Each schema contains tables that you can apply table filters on. |
{- "projectId": "string",
- "jdbcConnectionDetails": {
- "id": "string",
- "type": "ORACLE",
- "url": "string",
- "user": "string",
- "password": "string",
- "savePassword": false,
- "existingConnectionId": "string",
- "oraclePdbName": "string",
- "isManualUri": false
}, - "mongodbConnectionDetails": {
- "id": "string",
- "connectionString": "string",
- "projectId": "string",
- "savePassword": false,
- "projectName": "string",
- "clusterName": "string",
- "existingConnectionId": "string"
}, - "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "verification": {
- "enabled": false
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
{- "id": "string",
- "projectId": "string",
- "status": "RUNNING",
- "cdcStatus": "NOT_STARTED",
- "verificationJobId": "string",
- "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "jdbcConnectionString": "string",
- "mongoDbConnectionString": "string",
- "atlasMetadata": {
- "mongoDbProjectName": "string",
- "mongoDbProjectId": "string",
- "mongoDbClusterName": "string"
}, - "submittedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "elapsedSeconds": 0,
- "remainingTableCount": 0,
- "processingTables": [
- "string"
], - "totalEventsSeen": 0,
- "snapshotCompleted": false,
- "totalTableCount": 0,
- "totalEvents": 0,
- "totalEventSize": 0
}, - "cdcStatistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "lastEventTime": "2019-08-24T14:15:22Z",
- "eventsInLastHour": 0,
- "eventsInLastMinute": 0,
- "totalEventsSeen": 0
}, - "jobUpdates": [
- {
- "eventType": "ERROR",
- "stage": "SNAPSHOTTING",
- "message": "string",
- "details": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "stackTrace": "string",
- "errorCode": "string",
- "suggestion": "string",
- "locationType": "TABLE",
- "locationName": "string",
- "fieldName": "string",
- "key": {
- "property1": "string",
- "property2": "string"
}, - "count": 0,
- "location": {
- "table": "string"
}
}
], - "failureError": {
- "errorType": "string",
- "message": "string",
- "failureAt": "2019-08-24T14:15:22Z",
- "setupError": false
}, - "metadata": {
- "telemetryUserId": "string",
- "verificationRequested": false,
- "verificationStatus": "VERIFYING"
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
Get the status of a migration job by ID
jobId required | string (id) ^[A-Za-z0-9\-]+$ Job ID |
{- "id": "string",
- "projectId": "string",
- "status": "RUNNING",
- "cdcStatus": "NOT_STARTED",
- "verificationJobId": "string",
- "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "jdbcConnectionString": "string",
- "mongoDbConnectionString": "string",
- "atlasMetadata": {
- "mongoDbProjectName": "string",
- "mongoDbProjectId": "string",
- "mongoDbClusterName": "string"
}, - "submittedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "elapsedSeconds": 0,
- "remainingTableCount": 0,
- "processingTables": [
- "string"
], - "totalEventsSeen": 0,
- "snapshotCompleted": false,
- "totalTableCount": 0,
- "totalEvents": 0,
- "totalEventSize": 0
}, - "cdcStatistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "lastEventTime": "2019-08-24T14:15:22Z",
- "eventsInLastHour": 0,
- "eventsInLastMinute": 0,
- "totalEventsSeen": 0
}, - "jobUpdates": [
- {
- "eventType": "ERROR",
- "stage": "SNAPSHOTTING",
- "message": "string",
- "details": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "stackTrace": "string",
- "errorCode": "string",
- "suggestion": "string",
- "locationType": "TABLE",
- "locationName": "string",
- "fieldName": "string",
- "key": {
- "property1": "string",
- "property2": "string"
}, - "count": 0,
- "location": {
- "table": "string"
}
}
], - "failureError": {
- "errorType": "string",
- "message": "string",
- "failureAt": "2019-08-24T14:15:22Z",
- "setupError": false
}, - "metadata": {
- "telemetryUserId": "string",
- "verificationRequested": false,
- "verificationStatus": "VERIFYING"
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
Pause a running migration job
jobId required | string (id) ^[A-Za-z0-9\-]+$ Job ID |
{- "id": "string",
- "projectId": "string",
- "status": "RUNNING",
- "cdcStatus": "NOT_STARTED",
- "verificationJobId": "string",
- "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "jdbcConnectionString": "string",
- "mongoDbConnectionString": "string",
- "atlasMetadata": {
- "mongoDbProjectName": "string",
- "mongoDbProjectId": "string",
- "mongoDbClusterName": "string"
}, - "submittedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "elapsedSeconds": 0,
- "remainingTableCount": 0,
- "processingTables": [
- "string"
], - "totalEventsSeen": 0,
- "snapshotCompleted": false,
- "totalTableCount": 0,
- "totalEvents": 0,
- "totalEventSize": 0
}, - "cdcStatistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "lastEventTime": "2019-08-24T14:15:22Z",
- "eventsInLastHour": 0,
- "eventsInLastMinute": 0,
- "totalEventsSeen": 0
}, - "jobUpdates": [
- {
- "eventType": "ERROR",
- "stage": "SNAPSHOTTING",
- "message": "string",
- "details": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "stackTrace": "string",
- "errorCode": "string",
- "suggestion": "string",
- "locationType": "TABLE",
- "locationName": "string",
- "fieldName": "string",
- "key": {
- "property1": "string",
- "property2": "string"
}, - "count": 0,
- "location": {
- "table": "string"
}
}
], - "failureError": {
- "errorType": "string",
- "message": "string",
- "failureAt": "2019-08-24T14:15:22Z",
- "setupError": false
}, - "metadata": {
- "telemetryUserId": "string",
- "verificationRequested": false,
- "verificationStatus": "VERIFYING"
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
Resume a paused migration job
jobId required | string (id) ^[A-Za-z0-9\-]+$ Job ID |
{- "id": "string",
- "projectId": "string",
- "status": "RUNNING",
- "cdcStatus": "NOT_STARTED",
- "verificationJobId": "string",
- "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "jdbcConnectionString": "string",
- "mongoDbConnectionString": "string",
- "atlasMetadata": {
- "mongoDbProjectName": "string",
- "mongoDbProjectId": "string",
- "mongoDbClusterName": "string"
}, - "submittedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "elapsedSeconds": 0,
- "remainingTableCount": 0,
- "processingTables": [
- "string"
], - "totalEventsSeen": 0,
- "snapshotCompleted": false,
- "totalTableCount": 0,
- "totalEvents": 0,
- "totalEventSize": 0
}, - "cdcStatistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "lastEventTime": "2019-08-24T14:15:22Z",
- "eventsInLastHour": 0,
- "eventsInLastMinute": 0,
- "totalEventsSeen": 0
}, - "jobUpdates": [
- {
- "eventType": "ERROR",
- "stage": "SNAPSHOTTING",
- "message": "string",
- "details": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "stackTrace": "string",
- "errorCode": "string",
- "suggestion": "string",
- "locationType": "TABLE",
- "locationName": "string",
- "fieldName": "string",
- "key": {
- "property1": "string",
- "property2": "string"
}, - "count": 0,
- "location": {
- "table": "string"
}
}
], - "failureError": {
- "errorType": "string",
- "message": "string",
- "failureAt": "2019-08-24T14:15:22Z",
- "setupError": false
}, - "metadata": {
- "telemetryUserId": "string",
- "verificationRequested": false,
- "verificationStatus": "VERIFYING"
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
Stop a running migration job
jobId required | string (id) ^[A-Za-z0-9\-]+$ Job ID |
{- "id": "string",
- "projectId": "string",
- "status": "RUNNING",
- "cdcStatus": "NOT_STARTED",
- "verificationJobId": "string",
- "options": {
- "dropCollections": false,
- "mode": "SNAPSHOT",
- "errorHandling": "FAIL",
- "errorTolerance": 0
}, - "jdbcConnectionString": "string",
- "mongoDbConnectionString": "string",
- "atlasMetadata": {
- "mongoDbProjectName": "string",
- "mongoDbProjectId": "string",
- "mongoDbClusterName": "string"
}, - "submittedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "elapsedSeconds": 0,
- "remainingTableCount": 0,
- "processingTables": [
- "string"
], - "totalEventsSeen": 0,
- "snapshotCompleted": false,
- "totalTableCount": 0,
- "totalEvents": 0,
- "totalEventSize": 0
}, - "cdcStatistics": {
- "startedAt": "2019-08-24T14:15:22Z",
- "lastEventTime": "2019-08-24T14:15:22Z",
- "eventsInLastHour": 0,
- "eventsInLastMinute": 0,
- "totalEventsSeen": 0
}, - "jobUpdates": [
- {
- "eventType": "ERROR",
- "stage": "SNAPSHOTTING",
- "message": "string",
- "details": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "stackTrace": "string",
- "errorCode": "string",
- "suggestion": "string",
- "locationType": "TABLE",
- "locationName": "string",
- "fieldName": "string",
- "key": {
- "property1": "string",
- "property2": "string"
}, - "count": 0,
- "location": {
- "table": "string"
}
}
], - "failureError": {
- "errorType": "string",
- "message": "string",
- "failureAt": "2019-08-24T14:15:22Z",
- "setupError": false
}, - "metadata": {
- "telemetryUserId": "string",
- "verificationRequested": false,
- "verificationStatus": "VERIFYING"
}, - "relationalTableFilters": {
- "schema_1_name": {
- "table_1_name": {
- "whereClause": "id > 1000 AND id <= 2000"
}, - "table_2_name": {
- "whereClause": "TRUE",
- "rowCount": 10
}
}
}
}
Get all projects
sort | string^\w+,(DESC|ASC)$ Default: "lastModified,DESC" Example: sort=lastModified,DESC Order in which to retrieve the results |
[- {
- "id": "string",
- "jdbcId": "string",
- "mongodbId": "string",
- "name": "string",
- "type": "ORACLE",
- "lastModified": "2019-08-24T14:15:22Z"
}
]
Get a summary of all queries related to a project
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
[- {
- "id": "string",
- "projectId": "string",
- "name": "string",
- "inputQuery": "string",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "queryType": "STORED_PROCEDURE",
- "queryStatus": "NOT_STARTED",
- "targetLanguage": "JAVA"
}
]
Create a new adhoc query
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
inputQuery | string |
{- "inputQuery": "string"
}
{- "id": "string",
- "projectId": "string",
- "input": {
- "database": "string",
- "schema": "string",
- "name": "string",
- "query": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "runScriptTemplate": "string",
- "queryType": "STORED_PROCEDURE"
}, - "output": {
- "query": "string",
- "status": "NOT_STARTED",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "language": "JAVA",
- "attemptedTypedEntities": true,
- "usedTypedEntities": false,
- "errorMessage": "string",
- "modified": true,
- "runScriptTemplate": "string",
- "functionName": "string"
}
}
Stop a running bulk query conversion job
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
{- "pendingQueries": [
- "string"
], - "runningQueries": [
- "string"
], - "completedQueries": [
- "string"
], - "failedQueries": [
- "string"
]
}
Get the status of a bulk query conversion job
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
{- "pendingQueries": [
- "string"
], - "runningQueries": [
- "string"
], - "completedQueries": [
- "string"
], - "failedQueries": [
- "string"
]
}
Create a bulk query conversion job
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
language required | string (convert-query-language-type) Enum: "JAVA" "CSHARP" "JAVASCRIPT" |
queries required | Array of strings |
attemptTypedEntities | boolean |
{- "language": "JAVA",
- "queries": [
- "string"
], - "attemptTypedEntities": true
}
{- "pendingQueries": [
- "string"
], - "runningQueries": [
- "string"
], - "completedQueries": [
- "string"
], - "failedQueries": [
- "string"
]
}
Delete a query by id
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
queryId required | string (id) ^[A-Za-z0-9\-]+$ Query ID |
{- "jobId": "string",
- "message": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
Get a query by id
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
queryId required | string (id) ^[A-Za-z0-9\-]+$ Query ID |
{- "query": {
- "id": "string",
- "projectId": "string",
- "input": {
- "database": "string",
- "schema": "string",
- "name": "string",
- "query": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "runScriptTemplate": "string",
- "queryType": "STORED_PROCEDURE"
}, - "output": {
- "query": "string",
- "status": "NOT_STARTED",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "language": "JAVA",
- "attemptedTypedEntities": true,
- "usedTypedEntities": false,
- "errorMessage": "string",
- "modified": true,
- "runScriptTemplate": "string",
- "functionName": "string"
}
}, - "convertedRunResult": {
- "id": "string",
- "projectId": "string",
- "executionTimeMs": 0,
- "result": {
- "data": "string",
- "pageNumber": 0,
- "pageSize": 0,
- "total": 0,
- "hasMore": true
}, - "error": "string",
- "logs": {
- "stdout": "string",
- "stderr": "string"
}
}, - "sourceRunResult": {
- "id": "string",
- "projectId": "string",
- "executionTimeMs": 0,
- "result": {
- "data": "string",
- "pageNumber": 0,
- "pageSize": 0,
- "total": 0,
- "hasMore": true
}, - "error": "string",
- "logs": {
- "stdout": "string",
- "stderr": "string"
}, - "fieldMetadataMap": {
- "property1": {
- "columnType": "string",
- "columnIndex": 0
}, - "property2": {
- "columnType": "string",
- "columnIndex": 0
}
}
}
}
Convert a query
projectId required | string (id) ^[A-Za-z0-9\-]+$ Project ID |
queryId required | string (id) ^[A-Za-z0-9\-]+$ Query ID |
language required | string (convert-query-language-type) Enum: "JAVA" "CSHARP" "JAVASCRIPT" |
attemptTypedEntities | boolean Default: false |
{- "language": "JAVA",
- "attemptTypedEntities": false
}
{- "id": "string",
- "projectId": "string",
- "input": {
- "database": "string",
- "schema": "string",
- "name": "string",
- "query": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "runScriptTemplate": "string",
- "queryType": "STORED_PROCEDURE"
}, - "output": {
- "query": "string",
- "status": "NOT_STARTED",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "language": "JAVA",
- "attemptedTypedEntities": true,
- "usedTypedEntities": false,
- "errorMessage": "string",
- "modified": true,
- "runScriptTemplate": "string",
- "functionName": "string"
}
}