curl --request POST \
--url https://api.example.com/v1/schemaDesign:diffMetadata \
--header 'Content-Type: application/json' \
--data '
{
"sourceMetadata": {
"labels": {},
"lastSyncTime": "2023-11-07T05:31:56Z",
"backupAvailable": true,
"datashare": true,
"drifted": true,
"version": "<string>"
},
"targetMetadata": {
"labels": {},
"lastSyncTime": "2023-11-07T05:31:56Z",
"backupAvailable": true,
"datashare": true,
"drifted": true,
"version": "<string>"
},
"sourceCatalog": {
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
},
"targetCatalog": {
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
},
"engine": "ENGINE_UNSPECIFIED"
}
'{
"diff": "<string>"
}Computes schema differences between two database metadata. Permissions required: None
curl --request POST \
--url https://api.example.com/v1/schemaDesign:diffMetadata \
--header 'Content-Type: application/json' \
--data '
{
"sourceMetadata": {
"labels": {},
"lastSyncTime": "2023-11-07T05:31:56Z",
"backupAvailable": true,
"datashare": true,
"drifted": true,
"version": "<string>"
},
"targetMetadata": {
"labels": {},
"lastSyncTime": "2023-11-07T05:31:56Z",
"backupAvailable": true,
"datashare": true,
"drifted": true,
"version": "<string>"
},
"sourceCatalog": {
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
},
"targetCatalog": {
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"columns": {
"columns": [
{
"name": "<string>",
"semanticType": "<string>",
"labels": {},
"classification": "<string>",
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
}
}
]
},
"objectSchema": {
"type": "TYPE_UNSPECIFIED",
"structKind": {
"properties": {}
},
"arrayKind": {
"kind": "<unknown>"
},
"semanticType": "<string>"
},
"classification": "<string>"
}
]
}
]
},
"engine": "ENGINE_UNSPECIFIED"
}
'{
"diff": "<string>"
}The metadata of the source schema.
Show child attributes
The metadata of the target schema.
Show child attributes
Catalog metadata for a database including schemas, tables, and columns.
Show child attributes
Catalog metadata for a database including schemas, tables, and columns.
Show child attributes
The database engine of the schema.
ENGINE_UNSPECIFIED, CLICKHOUSE, MYSQL, POSTGRES, SNOWFLAKE, SQLITE, TIDB, MONGODB, REDIS, ORACLE, SPANNER, MSSQL, REDSHIFT, MARIADB, OCEANBASE, STARROCKS, DORIS, HIVE, ELASTICSEARCH, BIGQUERY, DYNAMODB, DATABRICKS, COCKROACHDB, COSMOSDB, TRINO, CASSANDRA OK
The diff of the metadata.
Was this page helpful?