!> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to preview_features_enabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
Data source used to get details of filtered network rules. Filtering is aligned with the current possibilities for SHOW NETWORK RULES query. The results of SHOW and DESCRIBE are encapsulated in one output collection network_rules.
Using getNetworkRules
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 getNetworkRules(args: GetNetworkRulesArgs, opts?: InvokeOptions): Promise<GetNetworkRulesResult>
function getNetworkRulesOutput(args: GetNetworkRulesOutputArgs, opts?: InvokeOptions): Output<GetNetworkRulesResult>def get_network_rules(in_: Optional[GetNetworkRulesIn] = None,
like: Optional[str] = None,
limit: Optional[GetNetworkRulesLimit] = None,
starts_with: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkRulesResult
def get_network_rules_output(in_: Optional[pulumi.Input[GetNetworkRulesInArgs]] = None,
like: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[GetNetworkRulesLimitArgs]] = None,
starts_with: Optional[pulumi.Input[str]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkRulesResult]func GetNetworkRules(ctx *Context, args *GetNetworkRulesArgs, opts ...InvokeOption) (*GetNetworkRulesResult, error)
func GetNetworkRulesOutput(ctx *Context, args *GetNetworkRulesOutputArgs, opts ...InvokeOption) GetNetworkRulesResultOutput> Note: This function is named GetNetworkRules in the Go SDK.
public static class GetNetworkRules
{
public static Task<GetNetworkRulesResult> InvokeAsync(GetNetworkRulesArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkRulesResult> Invoke(GetNetworkRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkRulesResult> getNetworkRules(GetNetworkRulesArgs args, InvokeOptions options)
public static Output<GetNetworkRulesResult> getNetworkRules(GetNetworkRulesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getNetworkRules:getNetworkRules
arguments:
# arguments dictionaryThe following arguments are supported:
- In
Get
Network Rules In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. The output of describe is saved to the description field. By default this value is set to true.
- In
Get
Network Rules In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Network Rules In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Network Rules In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. The output of describe is saved to the description field. By default this value is set to true.
- in_
Get
Network Rules In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. 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 objects
- 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.fromis set, then the limit will 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_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. The output of describe is saved to the description field. By default this value is set to true.
getNetworkRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Rules List<GetNetwork Rules Network Rule> - Holds the aggregated output of all network rules details queries.
- In
Get
Network Rules In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. 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.
- Network
Rules []GetNetwork Rules Network Rule - Holds the aggregated output of all network rules details queries.
- In
Get
Network Rules In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. 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.
- network
Rules List<GetNetwork Rules Network Rule> - Holds the aggregated output of all network rules details queries.
- in
Get
Network Rules In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. 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.
- network
Rules GetNetwork Rules Network Rule[] - Holds the aggregated output of all network rules details queries.
- in
Get
Network Rules In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. 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.
- network_
rules Sequence[GetNetwork Rules Network Rule] - Holds the aggregated output of all network rules details queries.
- in_
Get
Network Rules In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Network Rules Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will 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_withorlike. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. 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.
- network
Rules List<Property Map> - Holds the aggregated output of all network rules details queries.
- in Property Map
- IN clause to filter the list of objects
- 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.fromis set, then the limit will 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_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NETWORK RULE for each network rule returned by SHOW NETWORK RULES. The output of describe is saved to the description field. By default this value is set to true.
Supporting Types
GetNetworkRulesIn
GetNetworkRulesLimit
GetNetworkRulesNetworkRule
- Describe
Outputs List<GetNetwork Rules Network Rule Describe Output> - Holds the output of DESCRIBE NETWORK RULE.
- Show
Outputs List<GetNetwork Rules Network Rule Show Output> - Holds the output of SHOW NETWORK RULES.
- Describe
Outputs []GetNetwork Rules Network Rule Describe Output - Holds the output of DESCRIBE NETWORK RULE.
- Show
Outputs []GetNetwork Rules Network Rule Show Output - Holds the output of SHOW NETWORK RULES.
- describe
Outputs List<GetNetwork Rules Network Rule Describe Output> - Holds the output of DESCRIBE NETWORK RULE.
- show
Outputs List<GetNetwork Rules Network Rule Show Output> - Holds the output of SHOW NETWORK RULES.
- describe
Outputs GetNetwork Rules Network Rule Describe Output[] - Holds the output of DESCRIBE NETWORK RULE.
- show
Outputs GetNetwork Rules Network Rule Show Output[] - Holds the output of SHOW NETWORK RULES.
- describe_
outputs Sequence[GetNetwork Rules Network Rule Describe Output] - Holds the output of DESCRIBE NETWORK RULE.
- show_
outputs Sequence[GetNetwork Rules Network Rule Show Output] - Holds the output of SHOW NETWORK RULES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE NETWORK RULE.
- show
Outputs List<Property Map> - Holds the output of SHOW NETWORK RULES.
GetNetworkRulesNetworkRuleDescribeOutput
- Comment string
- Created
On string - Database
Name string - Mode string
- Name string
- Owner string
- Schema
Name string - Type string
- Value
Lists List<string>
- Comment string
- Created
On string - Database
Name string - Mode string
- Name string
- Owner string
- Schema
Name string - Type string
- Value
Lists []string
- comment String
- created
On String - database
Name String - mode String
- name String
- owner String
- schema
Name String - type String
- value
Lists List<String>
- comment string
- created
On string - database
Name string - mode string
- name string
- owner string
- schema
Name string - type string
- value
Lists string[]
- comment str
- created_
on str - database_
name str - mode str
- name str
- owner str
- schema_
name str - type str
- value_
lists Sequence[str]
- comment String
- created
On String - database
Name String - mode String
- name String
- owner String
- schema
Name String - type String
- value
Lists List<String>
GetNetworkRulesNetworkRuleShowOutput
- Comment string
- Created
On string - Database
Name string - Entries
In intValue List - Mode string
- Name string
- Owner string
- Owner
Role stringType - Schema
Name string - Type string
- Comment string
- Created
On string - Database
Name string - Entries
In intValue List - Mode string
- Name string
- Owner string
- Owner
Role stringType - Schema
Name string - Type string
- comment String
- created
On String - database
Name String - entries
In IntegerValue List - mode String
- name String
- owner String
- owner
Role StringType - schema
Name String - type String
- comment string
- created
On string - database
Name string - entries
In numberValue List - mode string
- name string
- owner string
- owner
Role stringType - schema
Name string - type string
- comment str
- created_
on str - database_
name str - entries_
in_ intvalue_ list - mode str
- name str
- owner str
- owner_
role_ strtype - schema_
name str - type str
- comment String
- created
On String - database
Name String - entries
In NumberValue List - mode String
- name String
- owner String
- owner
Role StringType - schema
Name String - type String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
