Create Asset Filter
| datazone_create_asset_filter | R Documentation |
Creates a data asset filter¶
Description¶
Creates a data asset filter.
Asset filters provide a sophisticated way to create controlled views of data assets by selecting specific columns or applying row-level filters. This capability is crucial for organizations that need to share data while maintaining security and privacy controls. For example, your database might be filtered to show only non-PII fields to certain users, or sales data might be filtered by region for different regional teams. Asset filters enable fine-grained access control while maintaining a single source of truth.
Prerequisites:
-
A valid domain (
--domain-identifier) must exist. -
A data asset (
--asset-identifier) must already be created under that domain. -
The asset must have the referenced columns available in its schema for column-based filtering.
-
You cannot specify both (
columnConfiguration,rowConfiguration)at the same time.
Usage¶
datazone_create_asset_filter(domainIdentifier, assetIdentifier, name,
description, configuration, clientToken)
Arguments¶
domainIdentifier |
[required] The ID of the domain in which you want to create an asset filter. |
assetIdentifier |
[required] The ID of the data asset. |
name |
[required] The name of the asset filter. |
description |
The description of the asset filter. |
configuration |
[required] The configuration of the asset filter. |
clientToken |
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. |
Value¶
A list with the following syntax:
list(
id = "string",
domainId = "string",
assetId = "string",
name = "string",
description = "string",
status = "VALID"|"INVALID",
configuration = list(
columnConfiguration = list(
includedColumnNames = list(
"string"
)
),
rowConfiguration = list(
rowFilter = list(
expression = list(
equalTo = list(
columnName = "string",
value = "string"
),
notEqualTo = list(
columnName = "string",
value = "string"
),
greaterThan = list(
columnName = "string",
value = "string"
),
lessThan = list(
columnName = "string",
value = "string"
),
greaterThanOrEqualTo = list(
columnName = "string",
value = "string"
),
lessThanOrEqualTo = list(
columnName = "string",
value = "string"
),
isNull = list(
columnName = "string"
),
isNotNull = list(
columnName = "string"
),
in = list(
columnName = "string",
values = list(
"string"
)
),
notIn = list(
columnName = "string",
values = list(
"string"
)
),
like = list(
columnName = "string",
value = "string"
),
notLike = list(
columnName = "string",
value = "string"
)
),
and = list(
list()
),
or = list(
list()
)
),
sensitive = TRUE|FALSE
)
),
createdAt = as.POSIXct(
"2015-01-01"
),
errorMessage = "string",
effectiveColumnNames = list(
"string"
),
effectiveRowFilter = "string"
)
Request syntax¶
svc$create_asset_filter(
domainIdentifier = "string",
assetIdentifier = "string",
name = "string",
description = "string",
configuration = list(
columnConfiguration = list(
includedColumnNames = list(
"string"
)
),
rowConfiguration = list(
rowFilter = list(
expression = list(
equalTo = list(
columnName = "string",
value = "string"
),
notEqualTo = list(
columnName = "string",
value = "string"
),
greaterThan = list(
columnName = "string",
value = "string"
),
lessThan = list(
columnName = "string",
value = "string"
),
greaterThanOrEqualTo = list(
columnName = "string",
value = "string"
),
lessThanOrEqualTo = list(
columnName = "string",
value = "string"
),
isNull = list(
columnName = "string"
),
isNotNull = list(
columnName = "string"
),
in = list(
columnName = "string",
values = list(
"string"
)
),
notIn = list(
columnName = "string",
values = list(
"string"
)
),
like = list(
columnName = "string",
value = "string"
),
notLike = list(
columnName = "string",
value = "string"
)
),
and = list(
list()
),
or = list(
list()
)
),
sensitive = TRUE|FALSE
)
),
clientToken = "string"
)