snowflake.core.network_rule.NetworkRuleResource¶
- class snowflake.core.network_rule.NetworkRuleResource(name: str, collection_class: NetworkRuleCollectionBase)¶
Bases:
NetworkRuleResourceBaseRepresents a reference to a Snowflake network rule.
With this network rule reference, you can fetch information about a network rule, as well as perform certain actions on it.
Attributes
- database¶
The DatabaseResource this reference belongs to.
- fully_qualified_name¶
Return the fully qualified name of the object this reference points to.
- root¶
The Root object this reference belongs to.
Methods
- drop(if_exists: bool | None = None) None¶
Delete a network rule.
- Parameters:
if_exists (bool) – Parameter that specifies how to handle the request for a resource that does not exist: - true: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource. - false: The endpoint throws an error if the resource doesn’t exist.
- drop_async(if_exists: bool | None = None) PollingOperation[None]¶
An asynchronous version of
drop().Refer to
PollingOperationfor more information on asynchronous execution and the return type.
- fetch() NetworkRule¶
Fetch a network rule.
- fetch_async() PollingOperation[NetworkRule]¶
An asynchronous version of
fetch().Refer to
PollingOperationfor more information on asynchronous execution and the return type.