Snowflake v1.1.3 published on Saturday, Mar 8, 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 dictionaryThe following arguments are supported:
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (%and_).
- WithDescribe bool
- 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_).
- WithDescribe bool
- 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_).
- withDescribe Boolean
- 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_).
- withDescribe boolean
- 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
- 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_).
- withDescribe Boolean
- 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.
- NetworkPolicies 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_).
- WithDescribe bool
- 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.
- NetworkPolicies []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_).
- WithDescribe bool
- 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.
- networkPolicies 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_).
- withDescribe Boolean
- 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.
- networkPolicies 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_).
- withDescribe boolean
- 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
- 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.
- networkPolicies 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_).
- withDescribe Boolean
- 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    
- DescribeOutputs List<GetNetwork Policies Network Policy Describe Output> 
- Holds the output of DESCRIBE NETWORK POLICIES.
- ShowOutputs List<GetNetwork Policies Network Policy Show Output> 
- Holds the output of SHOW NETWORK POLICIES.
- DescribeOutputs []GetNetwork Policies Network Policy Describe Output 
- Holds the output of DESCRIBE NETWORK POLICIES.
- ShowOutputs []GetNetwork Policies Network Policy Show Output 
- Holds the output of SHOW NETWORK POLICIES.
- describeOutputs List<GetNetwork Policies Network Policy Describe Output> 
- Holds the output of DESCRIBE NETWORK POLICIES.
- showOutputs List<GetNetwork Policies Network Policy Show Output> 
- Holds the output of SHOW NETWORK POLICIES.
- describeOutputs GetNetwork Policies Network Policy Describe Output[] 
- Holds the output of DESCRIBE NETWORK POLICIES.
- showOutputs GetNetwork Policies Network Policy Show Output[] 
- Holds the output of SHOW NETWORK POLICIES.
- describe_outputs Sequence[GetNetwork Policies Network Policy Describe Output] 
- Holds the output of DESCRIBE NETWORK POLICIES.
- show_outputs Sequence[GetNetwork Policies Network Policy Show Output] 
- Holds the output of SHOW NETWORK POLICIES.
- describeOutputs List<Property Map>
- Holds the output of DESCRIBE NETWORK POLICIES.
- showOutputs List<Property Map>
- Holds the output of SHOW NETWORK POLICIES.
GetNetworkPoliciesNetworkPolicyDescribeOutput      
- AllowedIp stringList 
- AllowedNetwork stringRule List 
- BlockedIp stringList 
- BlockedNetwork stringRule List 
- AllowedIp stringList 
- AllowedNetwork stringRule List 
- BlockedIp stringList 
- BlockedNetwork stringRule List 
- allowedIp StringList 
- allowedNetwork StringRule List 
- blockedIp StringList 
- blockedNetwork StringRule List 
- allowedIp stringList 
- allowedNetwork stringRule List 
- blockedIp stringList 
- blockedNetwork stringRule List 
- allowedIp StringList 
- allowedNetwork StringRule List 
- blockedIp StringList 
- blockedNetwork StringRule List 
GetNetworkPoliciesNetworkPolicyShowOutput      
- Comment string
- CreatedOn string
- EntriesIn intAllowed Ip List 
- EntriesIn intAllowed Network Rules 
- EntriesIn intBlocked Ip List 
- EntriesIn intBlocked Network Rules 
- Name string
- Comment string
- CreatedOn string
- EntriesIn intAllowed Ip List 
- EntriesIn intAllowed Network Rules 
- EntriesIn intBlocked Ip List 
- EntriesIn intBlocked Network Rules 
- Name string
- comment String
- createdOn String
- entriesIn IntegerAllowed Ip List 
- entriesIn IntegerAllowed Network Rules 
- entriesIn IntegerBlocked Ip List 
- entriesIn IntegerBlocked Network Rules 
- name String
- comment string
- createdOn string
- entriesIn numberAllowed Ip List 
- entriesIn numberAllowed Network Rules 
- entriesIn numberBlocked Ip List 
- entriesIn numberBlocked Network Rules 
- name string
- comment String
- createdOn String
- entriesIn NumberAllowed Ip List 
- entriesIn NumberAllowed Network Rules 
- entriesIn NumberBlocked Ip List 
- entriesIn NumberBlocked Network Rules 
- name String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the snowflakeTerraform Provider.