Titan Core
  • Overview
  • Getting Started
  • Working With Resources
  • Blueprint
  • GitHub Action
  • Resources
    • APIAuthenticationSecurityIntegration
    • APIIntegration
    • AccountParameter
    • AggregationPolicy
    • Alert
    • AuthenticationPolicy
    • AzureStorageIntegration
    • ComputePool
    • Database
    • DatabaseRole
    • DynamicTable
    • EmailNotificationIntegration
    • EventTable
    • ExternalAccessIntegration
    • ExternalStage
    • FailoverGroup
    • FutureGrant
    • GCSStorageIntegration
    • GenericSecret
    • GlueCatalogIntegration
    • Grant
    • GrantOnAll
    • HybridTable
    • ImageRepository
    • InternalStage
    • JSONFileFormat
    • JavascriptUDF
    • MaterializedView
    • NetworkPolicy
    • NetworkRule
    • OAuthSecret
    • ObjectStoreCatalogIntegration
    • PackagesPolicy
    • ParquetFileFormat
    • PasswordPolicy
    • PasswordSecret
    • Pipe
    • PythonStoredProcedure
    • PythonUDF
    • ReplicationGroup
    • ResourceMonitor
    • Role
    • RoleGrant
    • S3StorageIntegration
    • Schema
    • Sequence
    • Service
    • SessionPolicy
    • Share
    • SnowflakePartnerOAuthSecurityIntegration
    • SnowservicesOAuthSecurityIntegration
    • StageStream
    • Table
    • TableStream
    • Tag
    • Task
    • User
    • View
    • ViewStream
    • Warehouse
Powered by GitBook
On this page
  • Examples
  • Python
  • YAML
  • Fields
  1. Resources

NetworkRule

PreviousNetworkPolicyNextOAuthSecret

Last updated 10 months ago

A Network Rule in Snowflake defines a set of network addresses, such as IP addresses or hostnames, that can be allowed or denied access to a Snowflake account. This helps in managing network traffic and securing access based on network policies.

Examples

Python

network_rule = NetworkRule(
    name="some_network_rule",
    type="IPV4",
    value_list=["192.168.1.1", "192.168.1.2"],
    mode="INGRESS",
    comment="Example network rule"
)

YAML

network_rules:
  - name: some_network_rule
    type: IPV4
    value_list: ["192.168.1.1", "192.168.1.2"]
    mode: INGRESS
    comment: "Example network rule"

Fields

  • name (string, required) - The name of the network rule.

  • value_list (list) - A list of values associated with the network rule.

  • comment (string) - A comment about the network rule.

type (string or , required) - The type of network identifier. Defaults to IPV4.

mode (string or ) - The mode of the network rule. Defaults to INGRESS.

owner (string or ) - The owner role of the network rule. Defaults to "SYSADMIN".

Snowflake Documentation
NetworkIdentifierType
NetworkRuleMode
Role