a.network_policies: Network Policies¶
- class databricks.sdk.service.settings.NetworkPoliciesAPI¶
These APIs manage network policies for this account. Network policies control which network destinations can be accessed from the Databricks environment. Each Databricks account includes a default policy named ‘default-policy’. ‘default-policy’ is associated with any workspace lacking an explicit network policy assignment, and is automatically associated with each newly created workspace. ‘default-policy’ is reserved and cannot be deleted, but it can be updated to customize the default network access rules for your account.
- create_network_policy_rpc(network_policy: AccountNetworkPolicy) AccountNetworkPolicy¶
Creates a new network policy to manage which network destinations can be accessed from the Databricks environment.
- Parameters:
network_policy –
AccountNetworkPolicyNetwork policy configuration details.- Returns:
- delete_network_policy_rpc(network_policy_id: str)¶
Deletes a network policy. Cannot be called on ‘default-policy’.
- Parameters:
network_policy_id – str The unique identifier of the network policy to delete.
- get_network_policy_rpc(network_policy_id: str) AccountNetworkPolicy¶
Gets a network policy.
- Parameters:
network_policy_id – str The unique identifier of the network policy to retrieve.
- Returns:
- list_network_policies_rpc([, page_token: Optional[str]]) Iterator[AccountNetworkPolicy]¶
Gets an array of network policies.
- Parameters:
page_token – str (optional) Pagination token to go to next page based on previous query.
- Returns:
Iterator over
AccountNetworkPolicy
- update_network_policy_rpc(network_policy_id: str, network_policy: AccountNetworkPolicy) AccountNetworkPolicy¶
Updates a network policy. This allows you to modify the configuration of a network policy.
- Parameters:
network_policy_id – str The unique identifier for the network policy.
network_policy –
AccountNetworkPolicyUpdated network policy configuration details.
- Returns: