Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi
snowflake.getNetworkPolicies
Explore with Pulumi AI
Data source used to get details of filtered network policies. Filtering is aligned with the current possibilities for SHOW NETWORK POLICIES query (like
is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection.
Using getNetworkPolicies
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 getNetworkPolicies(args: GetNetworkPoliciesArgs, opts?: InvokeOptions): Promise<GetNetworkPoliciesResult>
function getNetworkPoliciesOutput(args: GetNetworkPoliciesOutputArgs, opts?: InvokeOptions): Output<GetNetworkPoliciesResult>
def get_network_policies(like: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkPoliciesResult
def get_network_policies_output(like: Optional[pulumi.Input[str]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPoliciesResult]
func GetNetworkPolicies(ctx *Context, args *GetNetworkPoliciesArgs, opts ...InvokeOption) (*GetNetworkPoliciesResult, error)
func GetNetworkPoliciesOutput(ctx *Context, args *GetNetworkPoliciesOutputArgs, opts ...InvokeOption) GetNetworkPoliciesResultOutput
> Note: This function is named GetNetworkPolicies
in the Go SDK.
public static class GetNetworkPolicies
{
public static Task<GetNetworkPoliciesResult> InvokeAsync(GetNetworkPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkPoliciesResult> Invoke(GetNetworkPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkPoliciesResult> getNetworkPolicies(GetNetworkPoliciesArgs args, InvokeOptions options)
public static Output<GetNetworkPoliciesResult> getNetworkPolicies(GetNetworkPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getNetworkPolicies:getNetworkPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe boolean - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with_
describe bool - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
getNetworkPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Policies List<GetNetwork Policies Network Policy> - Holds the aggregated output of all network policies details queries.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK 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.
- Network
Policies []GetNetwork Policies Network Policy - Holds the aggregated output of all network policies details queries.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK 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.
- network
Policies List<GetNetwork Policies Network Policy> - Holds the aggregated output of all network policies details queries.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK 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.
- network
Policies GetNetwork Policies Network Policy[] - Holds the aggregated output of all network policies details queries.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe boolean - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK 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.
- network_
policies Sequence[GetNetwork Policies Network Policy] - Holds the aggregated output of all network policies details queries.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with_
describe bool - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK 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.
- network
Policies List<Property Map> - Holds the aggregated output of all network policies details queries.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
Supporting Types
GetNetworkPoliciesNetworkPolicy
- Describe
Outputs This property is required. List<GetNetwork Policies Network Policy Describe Output> - Holds the output of DESCRIBE NETWORK POLICIES.
- Show
Outputs This property is required. List<GetNetwork Policies Network Policy Show Output> - Holds the output of SHOW NETWORK POLICIES.
- Describe
Outputs This property is required. []GetNetwork Policies Network Policy Describe Output - Holds the output of DESCRIBE NETWORK POLICIES.
- Show
Outputs This property is required. []GetNetwork Policies Network Policy Show Output - Holds the output of SHOW NETWORK POLICIES.
- describe
Outputs This property is required. List<GetNetwork Policies Network Policy Describe Output> - Holds the output of DESCRIBE NETWORK POLICIES.
- show
Outputs This property is required. List<GetNetwork Policies Network Policy Show Output> - Holds the output of SHOW NETWORK POLICIES.
- describe
Outputs This property is required. GetNetwork Policies Network Policy Describe Output[] - Holds the output of DESCRIBE NETWORK POLICIES.
- show
Outputs This property is required. GetNetwork Policies Network Policy Show Output[] - Holds the output of SHOW NETWORK POLICIES.
- describe_
outputs This property is required. Sequence[GetNetwork Policies Network Policy Describe Output] - Holds the output of DESCRIBE NETWORK POLICIES.
- show_
outputs This property is required. Sequence[GetNetwork Policies Network Policy Show Output] - Holds the output of SHOW NETWORK POLICIES.
- describe
Outputs This property is required. List<Property Map> - Holds the output of DESCRIBE NETWORK POLICIES.
- show
Outputs This property is required. List<Property Map> - Holds the output of SHOW NETWORK POLICIES.
GetNetworkPoliciesNetworkPolicyDescribeOutput
- Allowed
Ip List This property is required. string - Allowed
Network Rule List This property is required. string - Blocked
Ip List This property is required. string - Blocked
Network Rule List This property is required. string
- Allowed
Ip List This property is required. string - Allowed
Network Rule List This property is required. string - Blocked
Ip List This property is required. string - Blocked
Network Rule List This property is required. string
- allowed
Ip List This property is required. String - allowed
Network Rule List This property is required. String - blocked
Ip List This property is required. String - blocked
Network Rule List This property is required. String
- allowed
Ip List This property is required. string - allowed
Network Rule List This property is required. string - blocked
Ip List This property is required. string - blocked
Network Rule List This property is required. string
- allowed_
ip_ list This property is required. str - allowed_
network_ rule_ list This property is required. str - blocked_
ip_ list This property is required. str - blocked_
network_ rule_ list This property is required. str
- allowed
Ip List This property is required. String - allowed
Network Rule List This property is required. String - blocked
Ip List This property is required. String - blocked
Network Rule List This property is required. String
GetNetworkPoliciesNetworkPolicyShowOutput
- Comment
This property is required. string - Created
On This property is required. string - Entries
In Allowed Ip List This property is required. int - Entries
In Allowed Network Rules This property is required. int - Entries
In Blocked Ip List This property is required. int - Entries
In Blocked Network Rules This property is required. int - Name
This property is required. string
- Comment
This property is required. string - Created
On This property is required. string - Entries
In Allowed Ip List This property is required. int - Entries
In Allowed Network Rules This property is required. int - Entries
In Blocked Ip List This property is required. int - Entries
In Blocked Network Rules This property is required. int - Name
This property is required. string
- comment
This property is required. String - created
On This property is required. String - entries
In Allowed Ip List This property is required. Integer - entries
In Allowed Network Rules This property is required. Integer - entries
In Blocked Ip List This property is required. Integer - entries
In Blocked Network Rules This property is required. Integer - name
This property is required. String
- comment
This property is required. string - created
On This property is required. string - entries
In Allowed Ip List This property is required. number - entries
In Allowed Network Rules This property is required. number - entries
In Blocked Ip List This property is required. number - entries
In Blocked Network Rules This property is required. number - name
This property is required. string
- comment
This property is required. str - created_
on This property is required. str - entries_
in_ allowed_ ip_ list This property is required. int - entries_
in_ allowed_ network_ rules This property is required. int - entries_
in_ blocked_ ip_ list This property is required. int - entries_
in_ blocked_ network_ rules This property is required. int - name
This property is required. str
- comment
This property is required. String - created
On This property is required. String - entries
In Allowed Ip List This property is required. Number - entries
In Allowed Network Rules This property is required. Number - entries
In Blocked Ip List This property is required. Number - entries
In Blocked Network Rules This property is required. Number - name
This property is required. String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.