Get a data asset by id
curl --request GET \
--url https://{hostname}.gable.ai/v0/data-asset/{id} \
--header 'X-API-KEY: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataAssetResourceName": "<string>",
"domain": "<string>",
"path": "<string>",
"type": "postgres",
"versionDetail": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fields": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataAssetVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nativeDataType": "<string>",
"type": {},
"displayType": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"order": 123,
"parentFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deletedAt": "2023-11-07T05:31:56Z",
"piiCategory": "phone",
"profile": {
"sampledRecordsCount": 123,
"nullable": true,
"sampledFiles": [
"<string>"
],
"samplingParameters": {
"rowSampleCount": 123,
"recentFileCount": 123
},
"profileType": "boolean",
"trueCount": 123,
"falseCount": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nullCount": 123,
"sampledDate": "2023-11-07T05:31:56Z"
}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"violations": [
{
"contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractVersion": "<string>",
"contractFieldName": "<string>",
"entityType": "DATA_CONTRACT",
"violationType": "MISSING_REQUIRED_PROPERTY",
"dataAssetResourceName": "<string>",
"expectedValue": "<string>",
"actualValue": "<string>",
"contractName": "<string>",
"contractDomain": "<string>",
"dataAssetFieldProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "VIOLATION",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prLink": "<string>"
}
],
"description": "<string>",
"rawSchema": "<string>",
"deletedAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"contractId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z"
}UUID of the data asset
Data asset
The unique identifier for the data asset.
The unique identifier of the data asset. It follows the pattern '{data_asset_type}://{data_asset_source}:{data_asset_name}'
The domain to which the data asset belongs. Previously referred to as "namespace."
The name or path identifying the data asset. Previously referred to as "name."
The type of the source data asset, indicating its source or format (e.g., postgres, protobuf).
postgres, mysql, mssql, json_schema, avro, protobuf, python, pyspark, typescript, java, s3, dataframe, kotlin, swift, php, golang The version details of the data asset.
Show child attributes
The unique identifier for the version of the data asset.
The identifier of the parent data asset to which this version belongs.
The fields of the data asset.
Show child attributes
The unique identifier for the data asset field.
The identifier of the data asset version this field belongs to.
The name of the field.
The native data type of the field in the source system.
A custom or specific attribute to represent the Gable type of the field.
The display name of the field.
The timestamp when the field was created.
The timestamp when the field was last updated.
A brief description of the field.
The order or position of the field in the data asset.
For nested fields, this is the ID of the parent field.
The timestamp when the field was marked as deleted.
type of pii detected in the column name
phone, email, credit_card, address, person, birth_date, gender, nationality, ssn, zip_code, po_box, user_name, password, religion, sexual_orientation, drivers_license, passport, birth_certificate, medicare, concession_card, fingerprint, face_scan, bank_details, contact_details, tax_file_number generic data asset field profile Data asset field profile for boolean
Show child attributes
Number of samples
Whether the data is nullable
List of sampled files
1The parameters used to sample the data
boolean Number of true values
Number of false values
Unique identifier for the data asset field profile in UUID format
Number of nulls (only defined if nullable is true)
The date the sample was taken
The timestamp when this version of the data asset was created.
The timestamp when this version of the data asset was last updated.
List of contract violations associated with the data asset version.
Show child attributes
Unique identifier for the contract in UUID format
Version of the contract
Field of the contract where violation occured
The type of entity that the changelog event is associated with.
DATA_CONTRACT Type of violation
MISSING_REQUIRED_PROPERTY, INCOMPATIBLE_TYPE, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, IS_NULL, IS_NULL_THRESHOLD, IS_NOT_EMPTY, LENGTH, LENGTH_GREATER_THAN, LENGTH_GREATER_THAN_OR_EQUAL_TO, LENGTH_LESS_THAN, LENGTH_LESS_THAN_OR_EQUAL_TO, MISSING_DATA_ASSET, PII_DETECTED The unique identifier of the data asset. It follows the pattern '{data_asset_type}://{data_asset_source}:{data_asset_name}'
Expected value of the field
actual value of the field
Name of the contract
Domain of the contract
Unique identifier for the data asset field in UUID format
The type of event that occurred
VIOLATION Unique identifier for the user in UUID format
Link to the pull request associated with the violation
A brief description of this particular version of the data asset.
The raw schema of the data asset from the source system. This can be the contents of a schema file or data from the information schema of a database. This is used to regenerate the schema of the data asset if needed.
The timestamp when this version of the data asset was marked as deleted, if applicable.
The timestamp of when the data asset was initially created.
The timestamp of the most recent update to the data asset.
The contract ID associated with the data asset.
The timestamp indicating when the data asset was deleted, if applicable.
curl --request GET \
--url https://{hostname}.gable.ai/v0/data-asset/{id} \
--header 'X-API-KEY: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataAssetResourceName": "<string>",
"domain": "<string>",
"path": "<string>",
"type": "postgres",
"versionDetail": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fields": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataAssetVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nativeDataType": "<string>",
"type": {},
"displayType": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"order": 123,
"parentFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deletedAt": "2023-11-07T05:31:56Z",
"piiCategory": "phone",
"profile": {
"sampledRecordsCount": 123,
"nullable": true,
"sampledFiles": [
"<string>"
],
"samplingParameters": {
"rowSampleCount": 123,
"recentFileCount": 123
},
"profileType": "boolean",
"trueCount": 123,
"falseCount": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nullCount": 123,
"sampledDate": "2023-11-07T05:31:56Z"
}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"violations": [
{
"contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractVersion": "<string>",
"contractFieldName": "<string>",
"entityType": "DATA_CONTRACT",
"violationType": "MISSING_REQUIRED_PROPERTY",
"dataAssetResourceName": "<string>",
"expectedValue": "<string>",
"actualValue": "<string>",
"contractName": "<string>",
"contractDomain": "<string>",
"dataAssetFieldProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "VIOLATION",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prLink": "<string>"
}
],
"description": "<string>",
"rawSchema": "<string>",
"deletedAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"contractId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z"
}