snowflake.getRowAccessPolicies
Explore with Pulumi AI
!> V1 release candidate This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
Datasource used to get details of filtered row access policies. Filtering is aligned with the current possibilities for SHOW ROW ACCESS POLICIES query. The results of SHOW and DESCRIBE are encapsulated in one output collection row_access_policies
.
Using getRowAccessPolicies
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRowAccessPolicies(args: GetRowAccessPoliciesArgs, opts?: InvokeOptions): Promise<GetRowAccessPoliciesResult>
function getRowAccessPoliciesOutput(args: GetRowAccessPoliciesOutputArgs, opts?: InvokeOptions): Output<GetRowAccessPoliciesResult>
def get_row_access_policies(in_: Optional[GetRowAccessPoliciesIn] = None,
like: Optional[str] = None,
limit: Optional[GetRowAccessPoliciesLimit] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetRowAccessPoliciesResult
def get_row_access_policies_output(in_: Optional[pulumi.Input[GetRowAccessPoliciesInArgs]] = None,
like: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[GetRowAccessPoliciesLimitArgs]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRowAccessPoliciesResult]
func GetRowAccessPolicies(ctx *Context, args *GetRowAccessPoliciesArgs, opts ...InvokeOption) (*GetRowAccessPoliciesResult, error)
func GetRowAccessPoliciesOutput(ctx *Context, args *GetRowAccessPoliciesOutputArgs, opts ...InvokeOption) GetRowAccessPoliciesResultOutput
> Note: This function is named GetRowAccessPolicies
in the Go SDK.
public static class GetRowAccessPolicies
{
public static Task<GetRowAccessPoliciesResult> InvokeAsync(GetRowAccessPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetRowAccessPoliciesResult> Invoke(GetRowAccessPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRowAccessPoliciesResult> getRowAccessPolicies(GetRowAccessPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getRowAccessPolicies:getRowAccessPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- In
Get
Row Access Policies In - IN clause to filter the list of row access policies
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - With
Describe bool - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- In
Get
Row Access Policies In - IN clause to filter the list of row access policies
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - With
Describe bool - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Row Access Policies In - IN clause to filter the list of row access policies
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with
Describe Boolean - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Row Access Policies In - IN clause to filter the list of row access policies
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with
Describe boolean - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- in_
Get
Row Access Policies In - IN clause to filter the list of row access policies
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with_
describe bool - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- in Property Map
- IN clause to filter the list of row access policies
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit Property Map
- Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with
Describe Boolean - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
getRowAccessPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Row
Access List<GetPolicies Row Access Policies Row Access Policy> - Holds the aggregated output of all views details queries.
- In
Get
Row Access Policies In - IN clause to filter the list of row access policies
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - With
Describe bool - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- Id string
- The provider-assigned unique ID for this managed resource.
- Row
Access []GetPolicies Row Access Policies Row Access Policy - Holds the aggregated output of all views details queries.
- In
Get
Row Access Policies In - IN clause to filter the list of row access policies
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - With
Describe bool - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- row
Access List<GetPolicies Row Access Policies Row Access Policy> - Holds the aggregated output of all views details queries.
- in
Get
Row Access Policies In - IN clause to filter the list of row access policies
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with
Describe Boolean - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- row
Access GetPolicies Row Access Policies Row Access Policy[] - Holds the aggregated output of all views details queries.
- in
Get
Row Access Policies In - IN clause to filter the list of row access policies
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with
Describe boolean - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- id str
- The provider-assigned unique ID for this managed resource.
- row_
access_ Sequence[Getpolicies Row Access Policies Row Access Policy] - Holds the aggregated output of all views details queries.
- in_
Get
Row Access Policies In - IN clause to filter the list of row access policies
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Row Access Policies Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with_
describe bool - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- row
Access List<Property Map>Policies - Holds the aggregated output of all views details queries.
- in Property Map
- IN clause to filter the list of row access policies
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit Property Map
- Limits the number of rows returned. If the
limit.from
is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - with
Describe Boolean - Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
Supporting Types
GetRowAccessPoliciesIn
- Account bool
- Returns records for the entire account.
- Application string
- Returns records for the specified application.
- Application
Package string - Returns records for the specified application package.
- Database string
- Returns records for the current database in use or for a specified database.
- Schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- Account bool
- Returns records for the entire account.
- Application string
- Returns records for the specified application.
- Application
Package string - Returns records for the specified application package.
- Database string
- Returns records for the current database in use or for a specified database.
- Schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account Boolean
- Returns records for the entire account.
- application String
- Returns records for the specified application.
- application
Package String - Returns records for the specified application package.
- database String
- Returns records for the current database in use or for a specified database.
- schema String
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account boolean
- Returns records for the entire account.
- application string
- Returns records for the specified application.
- application
Package string - Returns records for the specified application package.
- database string
- Returns records for the current database in use or for a specified database.
- schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account bool
- Returns records for the entire account.
- application str
- Returns records for the specified application.
- application_
package str - Returns records for the specified application package.
- database str
- Returns records for the current database in use or for a specified database.
- schema str
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account Boolean
- Returns records for the entire account.
- application String
- Returns records for the specified application.
- application
Package String - Returns records for the specified application package.
- database String
- Returns records for the current database in use or for a specified database.
- schema String
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
GetRowAccessPoliciesLimit
GetRowAccessPoliciesRowAccessPolicy
- Describe
Outputs List<GetRow Access Policies Row Access Policy Describe Output> - Holds the output of DESCRIBE ROW ACCESS POLICY.
- Show
Outputs List<GetRow Access Policies Row Access Policy Show Output> - Holds the output of SHOW ROW ACCESS POLICIES.
- Describe
Outputs []GetRow Access Policies Row Access Policy Describe Output - Holds the output of DESCRIBE ROW ACCESS POLICY.
- Show
Outputs []GetRow Access Policies Row Access Policy Show Output - Holds the output of SHOW ROW ACCESS POLICIES.
- describe
Outputs List<GetRow Access Policies Row Access Policy Describe Output> - Holds the output of DESCRIBE ROW ACCESS POLICY.
- show
Outputs List<GetRow Access Policies Row Access Policy Show Output> - Holds the output of SHOW ROW ACCESS POLICIES.
- describe
Outputs GetRow Access Policies Row Access Policy Describe Output[] - Holds the output of DESCRIBE ROW ACCESS POLICY.
- show
Outputs GetRow Access Policies Row Access Policy Show Output[] - Holds the output of SHOW ROW ACCESS POLICIES.
- describe_
outputs Sequence[GetRow Access Policies Row Access Policy Describe Output] - Holds the output of DESCRIBE ROW ACCESS POLICY.
- show_
outputs Sequence[GetRow Access Policies Row Access Policy Show Output] - Holds the output of SHOW ROW ACCESS POLICIES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE ROW ACCESS POLICY.
- show
Outputs List<Property Map> - Holds the output of SHOW ROW ACCESS POLICIES.
GetRowAccessPoliciesRowAccessPolicyDescribeOutput
- Body string
- Name string
- Return
Type string - Signatures
[]Get
Row Access Policies Row Access Policy Describe Output Signature
- body string
- name string
- return
Type string - signatures
Get
Row Access Policies Row Access Policy Describe Output Signature[]
- body String
- name String
- return
Type String - signatures List<Property Map>
GetRowAccessPoliciesRowAccessPolicyDescribeOutputSignature
GetRowAccessPoliciesRowAccessPolicyShowOutput
- Comment string
- Created
On string - Database
Name string - Kind string
- Name string
- Options string
- Owner string
- Owner
Role stringType - Schema
Name string
- Comment string
- Created
On string - Database
Name string - Kind string
- Name string
- Options string
- Owner string
- Owner
Role stringType - Schema
Name string
- comment String
- created
On String - database
Name String - kind String
- name String
- options String
- owner String
- owner
Role StringType - schema
Name String
- comment string
- created
On string - database
Name string - kind string
- name string
- options string
- owner string
- owner
Role stringType - schema
Name string
- comment str
- created_
on str - database_
name str - kind str
- name str
- options str
- owner str
- owner_
role_ strtype - schema_
name str
- comment String
- created
On String - database
Name String - kind String
- name String
- options String
- owner String
- owner
Role StringType - schema
Name String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.