Create and Manage a Data Product¶
Alation Cloud Service Applies to Alation Cloud Service instances of Alation
Creating and maintaining a data product involves taking responsibility for its accuracy, usefulness, and reusability. This topic explains how to create and manage a data product throughout its lifecycle. You can manage a data product through the Alation UI and the API.
To start using data products through Alation UI, contact Alation Support. Alation Support will enable the alation.feature_flags.DEV_enable_data_products
feature flag upon request.
Create a Data Product¶
To create a data product, you must define it through a YAML file. You can write the YAML manually or use Alation’s UI to construct it. Once you’ve created the YAML file, you must upload it to Alation if using APIs to do so.
Create a Product Spec YAML File Manually¶
Open a text editor of your choice (example, Visual Studio Code or Sublime Text).
Start a new file and name it with a .yaml extension.
Refer to the specification to develop the .yaml file content.
Save the file.
Create a Product Spec YAML File in Alation¶
Go to the Data Product App > Manage Marketplace page.
Click Add or Edit Data Product.
Click the Create in Editor button.
Enter the required metadata in the guided form.
Add one or more record sets and define their schema.
Add a delivery system and paste in the data connection URI.
Preview the product page to review your metadata.
Click Save or download the YAML file to get a copy of the spec file from the Data Product Options (three-dot menu in the top right) on the Preview tab.
Upload the YAML File through API or UI¶
To upload via UI:
Go to the Data Product > Manage Marketplace page.
Click Add or Edit Data Product.
Click on the Upload YAML button.
Browse to your YAML file and select it.
Click Upload.
To upload via API:
Use the endpoint
/integration/data-products/v1/data-product/
.Set the
Content-Type to application/x-yaml
.Include the full YAML file in the request body.
Send a POST request using your API token.
YAML Field Reference¶
Each data product YAML file must include fields specified in the specification.
Here are some of the common fields:
Field |
Required |
Description |
---|---|---|
|
Yes |
Unique identifier for the product |
|
Yes |
Semantic version string Example: 1.0.0 |
|
Yes |
Contact email for support or questions |
|
Yes |
Human-readable name of the product owner |
|
Yes |
Display name for the product |
|
Yes |
List of systems where the data is accessible |
|
Yes |
One or more tabular datasets included in the product |
You may also add custom properties anywhere in the YAML using the x-
prefix. For example, x-department
or x-security-tier
.
Update a Data Product¶
To update a data product, you can modify the YAML file using the Alation UI or via API.
To update via UI, perfrom the following steps:
Go to the Data Product > Manage My Data Product page.
From the list of products under the Data Products table, locate the one to update.
Scroll to the extreme right of the table and click Edit.
Edit the YAML file and preview the changes.
Click Save.
To update via API, perform the following steps:
Use the endpoint
/integration/data-products/v1/data-product/
.Send a PUT request.
Save the returned YAML from the
spec_yaml
field.
Download a Data Product¶
To download via UI:
Navigate to the product’s detail page.
Click Data Product Options (the three-dot menu in the top right).
Select Download Data Product to download the YAML file.
To download via API:
Use the endpoint
/integration/data-products/v1/data-product/{product_id}/
.Send a GET request.
Save the returned YAML from the
spec_yaml
field.
Assign Product Roles¶
To assign roles to users or groups for a data product.
Manage Who Can View or Edit Data Product¶
Only users with the Admin role can edit the product or assign roles.
Delete a Data Product¶
To delete a data product via UI:
To delete a data product using the API:
Identify the
productId
of the product to delete.Use the endpoint
/integration/data-products/v1/data-product/{product_id}/
.Send a DELETE request.
Confirm that the product no longer appears in your list.