1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getNetworkPolicies
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

snowflake.getNetworkPolicies

Explore with Pulumi AI

snowflake logo
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

    !> 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 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)
    // Output-based functions aren't available in Java yet
    
    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 _).
    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<GetNetworkPoliciesNetworkPolicy>
    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 []GetNetworkPoliciesNetworkPolicy
    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<GetNetworkPoliciesNetworkPolicy>
    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 GetNetworkPoliciesNetworkPolicy[]
    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[GetNetworkPoliciesNetworkPolicy]
    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<GetNetworkPoliciesNetworkPolicyDescribeOutput>
    Holds the output of DESCRIBE NETWORK POLICIES.
    ShowOutputs List<GetNetworkPoliciesNetworkPolicyShowOutput>
    Holds the output of SHOW NETWORK POLICIES.
    DescribeOutputs []GetNetworkPoliciesNetworkPolicyDescribeOutput
    Holds the output of DESCRIBE NETWORK POLICIES.
    ShowOutputs []GetNetworkPoliciesNetworkPolicyShowOutput
    Holds the output of SHOW NETWORK POLICIES.
    describeOutputs List<GetNetworkPoliciesNetworkPolicyDescribeOutput>
    Holds the output of DESCRIBE NETWORK POLICIES.
    showOutputs List<GetNetworkPoliciesNetworkPolicyShowOutput>
    Holds the output of SHOW NETWORK POLICIES.
    describeOutputs GetNetworkPoliciesNetworkPolicyDescribeOutput[]
    Holds the output of DESCRIBE NETWORK POLICIES.
    showOutputs GetNetworkPoliciesNetworkPolicyShowOutput[]
    Holds the output of SHOW NETWORK POLICIES.
    describe_outputs Sequence[GetNetworkPoliciesNetworkPolicyDescribeOutput]
    Holds the output of DESCRIBE NETWORK POLICIES.
    show_outputs Sequence[GetNetworkPoliciesNetworkPolicyShowOutput]
    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

    GetNetworkPoliciesNetworkPolicyShowOutput

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi