snowflake.getNetworkPolicies
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 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_
). - 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_
). - 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_
). - with
Describe 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_
). - with
Describe 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_
). - with
Describe 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.
- 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 - 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 - 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 - 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 - 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.
- 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 - 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 List<GetNetwork Policies Network Policy Describe Output> - Holds the output of DESCRIBE NETWORK POLICIES.
- Show
Outputs List<GetNetwork Policies Network Policy Show Output> - Holds the output of SHOW NETWORK POLICIES.
- Describe
Outputs []GetNetwork Policies Network Policy Describe Output - Holds the output of DESCRIBE NETWORK POLICIES.
- Show
Outputs []GetNetwork Policies Network Policy Show Output - Holds the output of SHOW NETWORK POLICIES.
- describe
Outputs List<GetNetwork Policies Network Policy Describe Output> - Holds the output of DESCRIBE NETWORK POLICIES.
- show
Outputs List<GetNetwork Policies Network Policy Show Output> - Holds the output of SHOW NETWORK POLICIES.
- describe
Outputs GetNetwork Policies Network Policy Describe Output[] - Holds the output of DESCRIBE NETWORK POLICIES.
- show
Outputs 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.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE NETWORK POLICIES.
- show
Outputs List<Property Map> - Holds the output of SHOW NETWORK POLICIES.
GetNetworkPoliciesNetworkPolicyDescribeOutput
- Allowed
Ip stringList - Allowed
Network stringRule List - Blocked
Ip stringList - Blocked
Network stringRule List
- Allowed
Ip stringList - Allowed
Network stringRule List - Blocked
Ip stringList - Blocked
Network stringRule List
- allowed
Ip StringList - allowed
Network StringRule List - blocked
Ip StringList - blocked
Network StringRule List
- allowed
Ip stringList - allowed
Network stringRule List - blocked
Ip stringList - blocked
Network stringRule List
- allowed
Ip StringList - allowed
Network StringRule List - blocked
Ip StringList - blocked
Network StringRule List
GetNetworkPoliciesNetworkPolicyShowOutput
- Comment string
- Created
On string - Entries
In intAllowed Ip List - Entries
In intAllowed Network Rules - Entries
In intBlocked Ip List - Entries
In intBlocked Network Rules - Name string
- Comment string
- Created
On string - Entries
In intAllowed Ip List - Entries
In intAllowed Network Rules - Entries
In intBlocked Ip List - Entries
In intBlocked Network Rules - Name string
- comment String
- created
On String - entries
In IntegerAllowed Ip List - entries
In IntegerAllowed Network Rules - entries
In IntegerBlocked Ip List - entries
In IntegerBlocked Network Rules - name String
- comment string
- created
On string - entries
In numberAllowed Ip List - entries
In numberAllowed Network Rules - entries
In numberBlocked Ip List - entries
In numberBlocked Network Rules - name string
- comment String
- created
On String - entries
In NumberAllowed Ip List - entries
In NumberAllowed Network Rules - entries
In NumberBlocked Ip List - entries
In NumberBlocked Network Rules - name String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.