Databricks v1.74.0 published on Thursday, Aug 14, 2025 by Pulumi
databricks.getAccountNetworkPolicy
Explore with Pulumi AI
This data source can be used to get a single network policy.
Note This data source can only be used with an account-level provider!
Example Usage
Referring to a network policy by id:
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
variables:
this:
fn::invoke:
function: databricks:getAccountNetworkPolicy
arguments:
policyId: test
Using getAccountNetworkPolicy
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 getAccountNetworkPolicy(args: GetAccountNetworkPolicyArgs, opts?: InvokeOptions): Promise<GetAccountNetworkPolicyResult>
function getAccountNetworkPolicyOutput(args: GetAccountNetworkPolicyOutputArgs, opts?: InvokeOptions): Output<GetAccountNetworkPolicyResult>
def get_account_network_policy(account_id: Optional[str] = None,
egress: Optional[GetAccountNetworkPolicyEgress] = None,
network_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountNetworkPolicyResult
def get_account_network_policy_output(account_id: Optional[pulumi.Input[str]] = None,
egress: Optional[pulumi.Input[GetAccountNetworkPolicyEgressArgs]] = None,
network_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountNetworkPolicyResult]
func LookupAccountNetworkPolicy(ctx *Context, args *LookupAccountNetworkPolicyArgs, opts ...InvokeOption) (*LookupAccountNetworkPolicyResult, error)
func LookupAccountNetworkPolicyOutput(ctx *Context, args *LookupAccountNetworkPolicyOutputArgs, opts ...InvokeOption) LookupAccountNetworkPolicyResultOutput
> Note: This function is named LookupAccountNetworkPolicy
in the Go SDK.
public static class GetAccountNetworkPolicy
{
public static Task<GetAccountNetworkPolicyResult> InvokeAsync(GetAccountNetworkPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetAccountNetworkPolicyResult> Invoke(GetAccountNetworkPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountNetworkPolicyResult> getAccountNetworkPolicy(GetAccountNetworkPolicyArgs args, InvokeOptions options)
public static Output<GetAccountNetworkPolicyResult> getAccountNetworkPolicy(GetAccountNetworkPolicyArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getAccountNetworkPolicy:getAccountNetworkPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - (string) - The associated account ID for this Network Policy object
- Egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- Network
Policy stringId - The unique identifier for the network policy
- Account
Id string - (string) - The associated account ID for this Network Policy object
- Egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- Network
Policy stringId - The unique identifier for the network policy
- account
Id String - (string) - The associated account ID for this Network Policy object
- egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- network
Policy StringId - The unique identifier for the network policy
- account
Id string - (string) - The associated account ID for this Network Policy object
- egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- network
Policy stringId - The unique identifier for the network policy
- account_
id str - (string) - The associated account ID for this Network Policy object
- egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- network_
policy_ strid - The unique identifier for the network policy
- account
Id String - (string) - The associated account ID for this Network Policy object
- egress Property Map
- (NetworkPolicyEgress) - The network policies applying for egress traffic
- network
Policy StringId - The unique identifier for the network policy
getAccountNetworkPolicy Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Account
Id string - (string) - The associated account ID for this Network Policy object
- Egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- Network
Policy stringId - (string) - The unique identifier for the network policy
- Id string
- The provider-assigned unique ID for this managed resource.
- Account
Id string - (string) - The associated account ID for this Network Policy object
- Egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- Network
Policy stringId - (string) - The unique identifier for the network policy
- id String
- The provider-assigned unique ID for this managed resource.
- account
Id String - (string) - The associated account ID for this Network Policy object
- egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- network
Policy StringId - (string) - The unique identifier for the network policy
- id string
- The provider-assigned unique ID for this managed resource.
- account
Id string - (string) - The associated account ID for this Network Policy object
- egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- network
Policy stringId - (string) - The unique identifier for the network policy
- id str
- The provider-assigned unique ID for this managed resource.
- account_
id str - (string) - The associated account ID for this Network Policy object
- egress
Get
Account Network Policy Egress - (NetworkPolicyEgress) - The network policies applying for egress traffic
- network_
policy_ strid - (string) - The unique identifier for the network policy
- id String
- The provider-assigned unique ID for this managed resource.
- account
Id String - (string) - The associated account ID for this Network Policy object
- egress Property Map
- (NetworkPolicyEgress) - The network policies applying for egress traffic
- network
Policy StringId - (string) - The unique identifier for the network policy
Supporting Types
GetAccountNetworkPolicyEgress
- Network
Access GetAccount Network Policy Egress Network Access - (EgressNetworkPolicyNetworkAccessPolicy) - The access policy enforced for egress traffic to the internet
- Network
Access GetAccount Network Policy Egress Network Access - (EgressNetworkPolicyNetworkAccessPolicy) - The access policy enforced for egress traffic to the internet
- network
Access GetAccount Network Policy Egress Network Access - (EgressNetworkPolicyNetworkAccessPolicy) - The access policy enforced for egress traffic to the internet
- network
Access GetAccount Network Policy Egress Network Access - (EgressNetworkPolicyNetworkAccessPolicy) - The access policy enforced for egress traffic to the internet
- network_
access GetAccount Network Policy Egress Network Access - (EgressNetworkPolicyNetworkAccessPolicy) - The access policy enforced for egress traffic to the internet
- network
Access Property Map - (EgressNetworkPolicyNetworkAccessPolicy) - The access policy enforced for egress traffic to the internet
GetAccountNetworkPolicyEgressNetworkAccess
- Restriction
Mode string - (string) - The restriction mode that controls how serverless workloads can access the internet. Possible values are:
FULL_ACCESS
,RESTRICTED_ACCESS
- Allowed
Internet List<GetDestinations Account Network Policy Egress Network Access Allowed Internet Destination> - (list of EgressNetworkPolicyNetworkAccessPolicyInternetDestination) - List of internet destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- Allowed
Storage List<GetDestinations Account Network Policy Egress Network Access Allowed Storage Destination> - (list of EgressNetworkPolicyNetworkAccessPolicyStorageDestination) - List of storage destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- Policy
Enforcement GetAccount Network Policy Egress Network Access Policy Enforcement - (EgressNetworkPolicyNetworkAccessPolicyPolicyEnforcement) - Optional. When policy_enforcement is not provided, we default to ENFORCE_MODE_ALL_SERVICES
- Restriction
Mode string - (string) - The restriction mode that controls how serverless workloads can access the internet. Possible values are:
FULL_ACCESS
,RESTRICTED_ACCESS
- Allowed
Internet []GetDestinations Account Network Policy Egress Network Access Allowed Internet Destination - (list of EgressNetworkPolicyNetworkAccessPolicyInternetDestination) - List of internet destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- Allowed
Storage []GetDestinations Account Network Policy Egress Network Access Allowed Storage Destination - (list of EgressNetworkPolicyNetworkAccessPolicyStorageDestination) - List of storage destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- Policy
Enforcement GetAccount Network Policy Egress Network Access Policy Enforcement - (EgressNetworkPolicyNetworkAccessPolicyPolicyEnforcement) - Optional. When policy_enforcement is not provided, we default to ENFORCE_MODE_ALL_SERVICES
- restriction
Mode String - (string) - The restriction mode that controls how serverless workloads can access the internet. Possible values are:
FULL_ACCESS
,RESTRICTED_ACCESS
- allowed
Internet List<GetDestinations Account Network Policy Egress Network Access Allowed Internet Destination> - (list of EgressNetworkPolicyNetworkAccessPolicyInternetDestination) - List of internet destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- allowed
Storage List<GetDestinations Account Network Policy Egress Network Access Allowed Storage Destination> - (list of EgressNetworkPolicyNetworkAccessPolicyStorageDestination) - List of storage destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- policy
Enforcement GetAccount Network Policy Egress Network Access Policy Enforcement - (EgressNetworkPolicyNetworkAccessPolicyPolicyEnforcement) - Optional. When policy_enforcement is not provided, we default to ENFORCE_MODE_ALL_SERVICES
- restriction
Mode string - (string) - The restriction mode that controls how serverless workloads can access the internet. Possible values are:
FULL_ACCESS
,RESTRICTED_ACCESS
- allowed
Internet GetDestinations Account Network Policy Egress Network Access Allowed Internet Destination[] - (list of EgressNetworkPolicyNetworkAccessPolicyInternetDestination) - List of internet destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- allowed
Storage GetDestinations Account Network Policy Egress Network Access Allowed Storage Destination[] - (list of EgressNetworkPolicyNetworkAccessPolicyStorageDestination) - List of storage destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- policy
Enforcement GetAccount Network Policy Egress Network Access Policy Enforcement - (EgressNetworkPolicyNetworkAccessPolicyPolicyEnforcement) - Optional. When policy_enforcement is not provided, we default to ENFORCE_MODE_ALL_SERVICES
- restriction_
mode str - (string) - The restriction mode that controls how serverless workloads can access the internet. Possible values are:
FULL_ACCESS
,RESTRICTED_ACCESS
- allowed_
internet_ Sequence[Getdestinations Account Network Policy Egress Network Access Allowed Internet Destination] - (list of EgressNetworkPolicyNetworkAccessPolicyInternetDestination) - List of internet destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- allowed_
storage_ Sequence[Getdestinations Account Network Policy Egress Network Access Allowed Storage Destination] - (list of EgressNetworkPolicyNetworkAccessPolicyStorageDestination) - List of storage destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- policy_
enforcement GetAccount Network Policy Egress Network Access Policy Enforcement - (EgressNetworkPolicyNetworkAccessPolicyPolicyEnforcement) - Optional. When policy_enforcement is not provided, we default to ENFORCE_MODE_ALL_SERVICES
- restriction
Mode String - (string) - The restriction mode that controls how serverless workloads can access the internet. Possible values are:
FULL_ACCESS
,RESTRICTED_ACCESS
- allowed
Internet List<Property Map>Destinations - (list of EgressNetworkPolicyNetworkAccessPolicyInternetDestination) - List of internet destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- allowed
Storage List<Property Map>Destinations - (list of EgressNetworkPolicyNetworkAccessPolicyStorageDestination) - List of storage destinations that serverless workloads are allowed to access when in RESTRICTED_ACCESS mode
- policy
Enforcement Property Map - (EgressNetworkPolicyNetworkAccessPolicyPolicyEnforcement) - Optional. When policy_enforcement is not provided, we default to ENFORCE_MODE_ALL_SERVICES
GetAccountNetworkPolicyEgressNetworkAccessAllowedInternetDestination
- Destination string
- (string) - The internet destination to which access will be allowed. Format dependent on the destination type
- Internet
Destination stringType - (string) - The type of internet destination. Currently only DNS_NAME is supported. Possible values are:
DNS_NAME
- Destination string
- (string) - The internet destination to which access will be allowed. Format dependent on the destination type
- Internet
Destination stringType - (string) - The type of internet destination. Currently only DNS_NAME is supported. Possible values are:
DNS_NAME
- destination String
- (string) - The internet destination to which access will be allowed. Format dependent on the destination type
- internet
Destination StringType - (string) - The type of internet destination. Currently only DNS_NAME is supported. Possible values are:
DNS_NAME
- destination string
- (string) - The internet destination to which access will be allowed. Format dependent on the destination type
- internet
Destination stringType - (string) - The type of internet destination. Currently only DNS_NAME is supported. Possible values are:
DNS_NAME
- destination str
- (string) - The internet destination to which access will be allowed. Format dependent on the destination type
- internet_
destination_ strtype - (string) - The type of internet destination. Currently only DNS_NAME is supported. Possible values are:
DNS_NAME
- destination String
- (string) - The internet destination to which access will be allowed. Format dependent on the destination type
- internet
Destination StringType - (string) - The type of internet destination. Currently only DNS_NAME is supported. Possible values are:
DNS_NAME
GetAccountNetworkPolicyEgressNetworkAccessAllowedStorageDestination
- Azure
Storage stringAccount - (string) - The Azure storage account name
- Azure
Storage stringService - (string) - The Azure storage service type (blob, dfs, etc.)
- Bucket
Name string - (string)
- Region string
- (string)
- Storage
Destination stringType - (string) - The type of storage destination. Possible values are:
AWS_S3
,AZURE_STORAGE
,GOOGLE_CLOUD_STORAGE
- Azure
Storage stringAccount - (string) - The Azure storage account name
- Azure
Storage stringService - (string) - The Azure storage service type (blob, dfs, etc.)
- Bucket
Name string - (string)
- Region string
- (string)
- Storage
Destination stringType - (string) - The type of storage destination. Possible values are:
AWS_S3
,AZURE_STORAGE
,GOOGLE_CLOUD_STORAGE
- azure
Storage StringAccount - (string) - The Azure storage account name
- azure
Storage StringService - (string) - The Azure storage service type (blob, dfs, etc.)
- bucket
Name String - (string)
- region String
- (string)
- storage
Destination StringType - (string) - The type of storage destination. Possible values are:
AWS_S3
,AZURE_STORAGE
,GOOGLE_CLOUD_STORAGE
- azure
Storage stringAccount - (string) - The Azure storage account name
- azure
Storage stringService - (string) - The Azure storage service type (blob, dfs, etc.)
- bucket
Name string - (string)
- region string
- (string)
- storage
Destination stringType - (string) - The type of storage destination. Possible values are:
AWS_S3
,AZURE_STORAGE
,GOOGLE_CLOUD_STORAGE
- azure_
storage_ straccount - (string) - The Azure storage account name
- azure_
storage_ strservice - (string) - The Azure storage service type (blob, dfs, etc.)
- bucket_
name str - (string)
- region str
- (string)
- storage_
destination_ strtype - (string) - The type of storage destination. Possible values are:
AWS_S3
,AZURE_STORAGE
,GOOGLE_CLOUD_STORAGE
- azure
Storage StringAccount - (string) - The Azure storage account name
- azure
Storage StringService - (string) - The Azure storage service type (blob, dfs, etc.)
- bucket
Name String - (string)
- region String
- (string)
- storage
Destination StringType - (string) - The type of storage destination. Possible values are:
AWS_S3
,AZURE_STORAGE
,GOOGLE_CLOUD_STORAGE
GetAccountNetworkPolicyEgressNetworkAccessPolicyEnforcement
- Dry
Run List<string>Mode Product Filters - (list of string) - When empty, it means dry run for all products. When non-empty, it means dry run for specific products and for the other products, they will run in enforced mode
- Enforcement
Mode string - (string) - The mode of policy enforcement. ENFORCED blocks traffic that violates policy,
while DRY_RUN only logs violations without blocking. When not specified,
defaults to ENFORCED. Possible values are:
DRY_RUN
,ENFORCED
- Dry
Run []stringMode Product Filters - (list of string) - When empty, it means dry run for all products. When non-empty, it means dry run for specific products and for the other products, they will run in enforced mode
- Enforcement
Mode string - (string) - The mode of policy enforcement. ENFORCED blocks traffic that violates policy,
while DRY_RUN only logs violations without blocking. When not specified,
defaults to ENFORCED. Possible values are:
DRY_RUN
,ENFORCED
- dry
Run List<String>Mode Product Filters - (list of string) - When empty, it means dry run for all products. When non-empty, it means dry run for specific products and for the other products, they will run in enforced mode
- enforcement
Mode String - (string) - The mode of policy enforcement. ENFORCED blocks traffic that violates policy,
while DRY_RUN only logs violations without blocking. When not specified,
defaults to ENFORCED. Possible values are:
DRY_RUN
,ENFORCED
- dry
Run string[]Mode Product Filters - (list of string) - When empty, it means dry run for all products. When non-empty, it means dry run for specific products and for the other products, they will run in enforced mode
- enforcement
Mode string - (string) - The mode of policy enforcement. ENFORCED blocks traffic that violates policy,
while DRY_RUN only logs violations without blocking. When not specified,
defaults to ENFORCED. Possible values are:
DRY_RUN
,ENFORCED
- dry_
run_ Sequence[str]mode_ product_ filters - (list of string) - When empty, it means dry run for all products. When non-empty, it means dry run for specific products and for the other products, they will run in enforced mode
- enforcement_
mode str - (string) - The mode of policy enforcement. ENFORCED blocks traffic that violates policy,
while DRY_RUN only logs violations without blocking. When not specified,
defaults to ENFORCED. Possible values are:
DRY_RUN
,ENFORCED
- dry
Run List<String>Mode Product Filters - (list of string) - When empty, it means dry run for all products. When non-empty, it means dry run for specific products and for the other products, they will run in enforced mode
- enforcement
Mode String - (string) - The mode of policy enforcement. ENFORCED blocks traffic that violates policy,
while DRY_RUN only logs violations without blocking. When not specified,
defaults to ENFORCED. Possible values are:
DRY_RUN
,ENFORCED
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.