|
| 1 | +``a.network_policies``: Network Policies |
| 2 | +======================================== |
| 3 | +.. currentmodule:: databricks.sdk.service.settings |
| 4 | + |
| 5 | +.. py:class:: NetworkPoliciesAPI |
| 6 | +
|
| 7 | + These APIs manage network policies for this account. Network policies control which network destinations |
| 8 | + can be accessed from the Databricks environment. Each Databricks account includes a default policy named |
| 9 | + 'default-policy'. 'default-policy' is associated with any workspace lacking an explicit network policy |
| 10 | + assignment, and is automatically associated with each newly created workspace. 'default-policy' is |
| 11 | + reserved and cannot be deleted, but it can be updated to customize the default network access rules for |
| 12 | + your account. |
| 13 | + |
| 14 | + .. py:method:: create_network_policy_rpc(network_policy: AccountNetworkPolicy) -> AccountNetworkPolicy |
| 15 | +
|
| 16 | + Create a network policy. |
| 17 | + |
| 18 | + Creates a new network policy to manage which network destinations can be accessed from the Databricks |
| 19 | + environment. |
| 20 | + |
| 21 | + :param network_policy: :class:`AccountNetworkPolicy` |
| 22 | + |
| 23 | + :returns: :class:`AccountNetworkPolicy` |
| 24 | + |
| 25 | + |
| 26 | + .. py:method:: delete_network_policy_rpc(network_policy_id: str) |
| 27 | +
|
| 28 | + Delete a network policy. |
| 29 | + |
| 30 | + Deletes a network policy. Cannot be called on 'default-policy'. |
| 31 | + |
| 32 | + :param network_policy_id: str |
| 33 | + The unique identifier of the network policy to delete. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + .. py:method:: get_network_policy_rpc(network_policy_id: str) -> AccountNetworkPolicy |
| 39 | +
|
| 40 | + Get a network policy. |
| 41 | + |
| 42 | + Gets a network policy. |
| 43 | + |
| 44 | + :param network_policy_id: str |
| 45 | + The unique identifier of the network policy to retrieve. |
| 46 | + |
| 47 | + :returns: :class:`AccountNetworkPolicy` |
| 48 | + |
| 49 | + |
| 50 | + .. py:method:: list_network_policies_rpc( [, page_token: Optional[str]]) -> Iterator[AccountNetworkPolicy] |
| 51 | +
|
| 52 | + List network policies. |
| 53 | + |
| 54 | + Gets an array of network policies. |
| 55 | + |
| 56 | + :param page_token: str (optional) |
| 57 | + Pagination token to go to next page based on previous query. |
| 58 | + |
| 59 | + :returns: Iterator over :class:`AccountNetworkPolicy` |
| 60 | + |
| 61 | + |
| 62 | + .. py:method:: update_network_policy_rpc(network_policy_id: str, network_policy: AccountNetworkPolicy) -> AccountNetworkPolicy |
| 63 | +
|
| 64 | + Update a network policy. |
| 65 | + |
| 66 | + Updates a network policy. This allows you to modify the configuration of a network policy. |
| 67 | + |
| 68 | + :param network_policy_id: str |
| 69 | + The unique identifier for the network policy. |
| 70 | + :param network_policy: :class:`AccountNetworkPolicy` |
| 71 | + |
| 72 | + :returns: :class:`AccountNetworkPolicy` |
| 73 | + |
0 commit comments