Latest version of this endpoint: API Deployments Object Import Rules Patch v4.
Contents:
Create a list of object-based import rules for the specified deployment. Delete all previous rules applied to the same object.
NOTE: Import rules must be applied to individual deployments.
The generated rules apply to all flows that are imported into the deployment after they has been created.
NOTE: Deployments pertain to Production instances of the Designer Cloud Powered by Trifacta® platform. For more information, see Overview of Deployment Manager.
The response contains any previously created rules that have been deleted as a result of this change.
You can also make replacements in the import package based on value mappings. See API Deployments Value Import Rules Patch v3.
Version: v3
Required Permissions
NOTE: Each request to the Designer Cloud Powered by Trifacta® platform must include authentication credentials. See https://api.trifacta.com/ee/6.4/index.html#section/Authentication.
Request
Request Type: PATCH
Endpoint:
/v3/deployments/<id>/objectImportRules
where:
Parameter | Description |
---|---|
<id> | Internal identifier for the deployment |
Request URI - Example:
/v3/deployments/4/objectImportRules
Request Body Example: Replace connection
The following JSON array describes replacing the connection specified by the UUID, which is a field on the connection object exported from the original platform instance. This connection reference is replaced by a reference to connection ID 1
in the local platform instance and is applied to any release uploaded into the deployment after the rule has been created:
[{"tableName":"connections","onCondition":{"uuid":"d75255f0-a245-11e7-8618-adc1dbb4bed0"},"withCondition":{"id":1}}]
You can specify matching values using string literals.
Match Type | Example Syntax |
---|---|
string literal | {"uuid":"d75255f0-a245-11e7-8618-adc1dbb4bed0"} |
string literal | {"id":"22"} |
NOTE: Use of Alteryx patterns or regular expressions is not supported.
For more information on patterns, see Text Matching.
Request Body Example: Replace multiple connections
This example request includes replacements for multiple connection references.
NOTE: Rules are applied in the listed order. If you are applying multiple rules to the same object in the import package, the second rule must reference the expected changes applied by the first rule.
This type of replacement applies if the imported packages contain sources that are imported through two separate connections:
[ {"tableName":"connections","onCondition":{"uuid":"d75255f0-a245-11e7-8618-adc1dbb4bed0"},"withCondition":{"id":1}}, {"tableName":"connections","onCondition":{"uuid":"d552045e0-c314-22b5-9410-acd1bcd8eea2"},"withCondition":{"id":2}} ]
Response
Response Status Code - Success: 200 - OK
The response body contains any previously created rules that have been deleted as a result of this update.
Response Body Example: All new rule, no deletions
If the update does not overwrite any previous rules, then no rules are deleted. So, the response looks like the following:
{ "deleted": [] }
Response Body Example: Replace connection
If you submit the request again, the response contains the rule definition of the previous update, which has been deleted. This example applies to the one-rule change listed previously:
{ "deleted": [ { "onCondition": { "uuid": "d75255f0-a245-11e7-8618-adc1dbb4bed0" }, "withCondition": { "id": 1 }, "id": 1, "tableName": "connections", "createdBy": 3, "updatedBy": 3, "createdAt": "2017-11-07T01:42:46.798Z", "updatedAt": "2017-11-07T01:42:46.798Z", "deploymentId": 4 } ] }
Reference
Property | Description |
---|---|
onCondition | The matching object identifier and the specified literal or pattern to match. |
withCondition | The identifier for the object type, as specified in by the tableName value, which is being modified. |
id | Internal identifier for the object import rule |
tableName | Name of the table to which the mapping is applied. Values:
|
deploymentId | Internal identifier for the deployment to which to apply the import rule. |
This page has no comments.