1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. getJitNetworkAccessPolicy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.security.getJitNetworkAccessPolicy

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Policies for protecting resources using Just-in-Time access control for the subscription, location

Uses Azure REST API version 2020-01-01.

Using getJitNetworkAccessPolicy

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 getJitNetworkAccessPolicy(args: GetJitNetworkAccessPolicyArgs, opts?: InvokeOptions): Promise<GetJitNetworkAccessPolicyResult>
function getJitNetworkAccessPolicyOutput(args: GetJitNetworkAccessPolicyOutputArgs, opts?: InvokeOptions): Output<GetJitNetworkAccessPolicyResult>
Copy
def get_jit_network_access_policy(asc_location: Optional[str] = None,
                                  jit_network_access_policy_name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetJitNetworkAccessPolicyResult
def get_jit_network_access_policy_output(asc_location: Optional[pulumi.Input[str]] = None,
                                  jit_network_access_policy_name: Optional[pulumi.Input[str]] = None,
                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetJitNetworkAccessPolicyResult]
Copy
func LookupJitNetworkAccessPolicy(ctx *Context, args *LookupJitNetworkAccessPolicyArgs, opts ...InvokeOption) (*LookupJitNetworkAccessPolicyResult, error)
func LookupJitNetworkAccessPolicyOutput(ctx *Context, args *LookupJitNetworkAccessPolicyOutputArgs, opts ...InvokeOption) LookupJitNetworkAccessPolicyResultOutput
Copy

> Note: This function is named LookupJitNetworkAccessPolicy in the Go SDK.

public static class GetJitNetworkAccessPolicy 
{
    public static Task<GetJitNetworkAccessPolicyResult> InvokeAsync(GetJitNetworkAccessPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetJitNetworkAccessPolicyResult> Invoke(GetJitNetworkAccessPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetJitNetworkAccessPolicyResult> getJitNetworkAccessPolicy(GetJitNetworkAccessPolicyArgs args, InvokeOptions options)
public static Output<GetJitNetworkAccessPolicyResult> getJitNetworkAccessPolicy(GetJitNetworkAccessPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:security:getJitNetworkAccessPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AscLocation
This property is required.
Changes to this property will trigger replacement.
string
The location where ASC stores the data of the subscription. can be retrieved from Get locations
JitNetworkAccessPolicyName
This property is required.
Changes to this property will trigger replacement.
string
Name of a Just-in-Time access configuration policy.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
AscLocation
This property is required.
Changes to this property will trigger replacement.
string
The location where ASC stores the data of the subscription. can be retrieved from Get locations
JitNetworkAccessPolicyName
This property is required.
Changes to this property will trigger replacement.
string
Name of a Just-in-Time access configuration policy.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
ascLocation
This property is required.
Changes to this property will trigger replacement.
String
The location where ASC stores the data of the subscription. can be retrieved from Get locations
jitNetworkAccessPolicyName
This property is required.
Changes to this property will trigger replacement.
String
Name of a Just-in-Time access configuration policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
ascLocation
This property is required.
Changes to this property will trigger replacement.
string
The location where ASC stores the data of the subscription. can be retrieved from Get locations
jitNetworkAccessPolicyName
This property is required.
Changes to this property will trigger replacement.
string
Name of a Just-in-Time access configuration policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
asc_location
This property is required.
Changes to this property will trigger replacement.
str
The location where ASC stores the data of the subscription. can be retrieved from Get locations
jit_network_access_policy_name
This property is required.
Changes to this property will trigger replacement.
str
Name of a Just-in-Time access configuration policy.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group within the user's subscription. The name is case insensitive.
ascLocation
This property is required.
Changes to this property will trigger replacement.
String
The location where ASC stores the data of the subscription. can be retrieved from Get locations
jitNetworkAccessPolicyName
This property is required.
Changes to this property will trigger replacement.
String
Name of a Just-in-Time access configuration policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.

getJitNetworkAccessPolicy Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Resource Id
Location string
Location where the resource is stored
Name string
Resource name
ProvisioningState string
Gets the provisioning state of the Just-in-Time policy.
Type string
Resource type
VirtualMachines List<Pulumi.AzureNative.Security.Outputs.JitNetworkAccessPolicyVirtualMachineResponse>
Configurations for Microsoft.Compute/virtualMachines resource type.
Kind string
Kind of the resource
Requests List<Pulumi.AzureNative.Security.Outputs.JitNetworkAccessRequestResponse>
AzureApiVersion string
The Azure API version of the resource.
Id string
Resource Id
Location string
Location where the resource is stored
Name string
Resource name
ProvisioningState string
Gets the provisioning state of the Just-in-Time policy.
Type string
Resource type
VirtualMachines []JitNetworkAccessPolicyVirtualMachineResponse
Configurations for Microsoft.Compute/virtualMachines resource type.
Kind string
Kind of the resource
Requests []JitNetworkAccessRequestResponse
azureApiVersion String
The Azure API version of the resource.
id String
Resource Id
location String
Location where the resource is stored
name String
Resource name
provisioningState String
Gets the provisioning state of the Just-in-Time policy.
type String
Resource type
virtualMachines List<JitNetworkAccessPolicyVirtualMachineResponse>
Configurations for Microsoft.Compute/virtualMachines resource type.
kind String
Kind of the resource
requests List<JitNetworkAccessRequestResponse>
azureApiVersion string
The Azure API version of the resource.
id string
Resource Id
location string
Location where the resource is stored
name string
Resource name
provisioningState string
Gets the provisioning state of the Just-in-Time policy.
type string
Resource type
virtualMachines JitNetworkAccessPolicyVirtualMachineResponse[]
Configurations for Microsoft.Compute/virtualMachines resource type.
kind string
Kind of the resource
requests JitNetworkAccessRequestResponse[]
azure_api_version str
The Azure API version of the resource.
id str
Resource Id
location str
Location where the resource is stored
name str
Resource name
provisioning_state str
Gets the provisioning state of the Just-in-Time policy.
type str
Resource type
virtual_machines Sequence[JitNetworkAccessPolicyVirtualMachineResponse]
Configurations for Microsoft.Compute/virtualMachines resource type.
kind str
Kind of the resource
requests Sequence[JitNetworkAccessRequestResponse]
azureApiVersion String
The Azure API version of the resource.
id String
Resource Id
location String
Location where the resource is stored
name String
Resource name
provisioningState String
Gets the provisioning state of the Just-in-Time policy.
type String
Resource type
virtualMachines List<Property Map>
Configurations for Microsoft.Compute/virtualMachines resource type.
kind String
Kind of the resource
requests List<Property Map>

Supporting Types

JitNetworkAccessPolicyVirtualMachineResponse

Id This property is required. string
Resource ID of the virtual machine that is linked to this policy
Ports This property is required. List<Pulumi.AzureNative.Security.Inputs.JitNetworkAccessPortRuleResponse>
Port configurations for the virtual machine
PublicIpAddress string
Public IP address of the Azure Firewall that is linked to this policy, if applicable
Id This property is required. string
Resource ID of the virtual machine that is linked to this policy
Ports This property is required. []JitNetworkAccessPortRuleResponse
Port configurations for the virtual machine
PublicIpAddress string
Public IP address of the Azure Firewall that is linked to this policy, if applicable
id This property is required. String
Resource ID of the virtual machine that is linked to this policy
ports This property is required. List<JitNetworkAccessPortRuleResponse>
Port configurations for the virtual machine
publicIpAddress String
Public IP address of the Azure Firewall that is linked to this policy, if applicable
id This property is required. string
Resource ID of the virtual machine that is linked to this policy
ports This property is required. JitNetworkAccessPortRuleResponse[]
Port configurations for the virtual machine
publicIpAddress string
Public IP address of the Azure Firewall that is linked to this policy, if applicable
id This property is required. str
Resource ID of the virtual machine that is linked to this policy
ports This property is required. Sequence[JitNetworkAccessPortRuleResponse]
Port configurations for the virtual machine
public_ip_address str
Public IP address of the Azure Firewall that is linked to this policy, if applicable
id This property is required. String
Resource ID of the virtual machine that is linked to this policy
ports This property is required. List<Property Map>
Port configurations for the virtual machine
publicIpAddress String
Public IP address of the Azure Firewall that is linked to this policy, if applicable

JitNetworkAccessPortRuleResponse

MaxRequestAccessDuration This property is required. string
Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
Number This property is required. int
Protocol This property is required. string
AllowedSourceAddressPrefix string
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
AllowedSourceAddressPrefixes List<string>
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
MaxRequestAccessDuration This property is required. string
Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
Number This property is required. int
Protocol This property is required. string
AllowedSourceAddressPrefix string
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
AllowedSourceAddressPrefixes []string
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
maxRequestAccessDuration This property is required. String
Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
number This property is required. Integer
protocol This property is required. String
allowedSourceAddressPrefix String
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowedSourceAddressPrefixes List<String>
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
maxRequestAccessDuration This property is required. string
Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
number This property is required. number
protocol This property is required. string
allowedSourceAddressPrefix string
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowedSourceAddressPrefixes string[]
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
max_request_access_duration This property is required. str
Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
number This property is required. int
protocol This property is required. str
allowed_source_address_prefix str
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowed_source_address_prefixes Sequence[str]
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
maxRequestAccessDuration This property is required. String
Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
number This property is required. Number
protocol This property is required. String
allowedSourceAddressPrefix String
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowedSourceAddressPrefixes List<String>
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

JitNetworkAccessRequestPortResponse

EndTimeUtc This property is required. string
The date & time at which the request ends in UTC
Number This property is required. int
Status This property is required. string
The status of the port
StatusReason This property is required. string
A description of why the status has its value
AllowedSourceAddressPrefix string
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
AllowedSourceAddressPrefixes List<string>
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
MappedPort int
The port which is mapped to this port's number in the Azure Firewall, if applicable
EndTimeUtc This property is required. string
The date & time at which the request ends in UTC
Number This property is required. int
Status This property is required. string
The status of the port
StatusReason This property is required. string
A description of why the status has its value
AllowedSourceAddressPrefix string
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
AllowedSourceAddressPrefixes []string
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
MappedPort int
The port which is mapped to this port's number in the Azure Firewall, if applicable
endTimeUtc This property is required. String
The date & time at which the request ends in UTC
number This property is required. Integer
status This property is required. String
The status of the port
statusReason This property is required. String
A description of why the status has its value
allowedSourceAddressPrefix String
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowedSourceAddressPrefixes List<String>
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
mappedPort Integer
The port which is mapped to this port's number in the Azure Firewall, if applicable
endTimeUtc This property is required. string
The date & time at which the request ends in UTC
number This property is required. number
status This property is required. string
The status of the port
statusReason This property is required. string
A description of why the status has its value
allowedSourceAddressPrefix string
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowedSourceAddressPrefixes string[]
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
mappedPort number
The port which is mapped to this port's number in the Azure Firewall, if applicable
end_time_utc This property is required. str
The date & time at which the request ends in UTC
number This property is required. int
status This property is required. str
The status of the port
status_reason This property is required. str
A description of why the status has its value
allowed_source_address_prefix str
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowed_source_address_prefixes Sequence[str]
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
mapped_port int
The port which is mapped to this port's number in the Azure Firewall, if applicable
endTimeUtc This property is required. String
The date & time at which the request ends in UTC
number This property is required. Number
status This property is required. String
The status of the port
statusReason This property is required. String
A description of why the status has its value
allowedSourceAddressPrefix String
Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
allowedSourceAddressPrefixes List<String>
Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
mappedPort Number
The port which is mapped to this port's number in the Azure Firewall, if applicable

JitNetworkAccessRequestResponse

Requestor This property is required. string
The identity of the person who made the request
StartTimeUtc This property is required. string
The start time of the request in UTC
VirtualMachines This property is required. List<Pulumi.AzureNative.Security.Inputs.JitNetworkAccessRequestVirtualMachineResponse>
Justification string
The justification for making the initiate request
Requestor This property is required. string
The identity of the person who made the request
StartTimeUtc This property is required. string
The start time of the request in UTC
VirtualMachines This property is required. []JitNetworkAccessRequestVirtualMachineResponse
Justification string
The justification for making the initiate request
requestor This property is required. String
The identity of the person who made the request
startTimeUtc This property is required. String
The start time of the request in UTC
virtualMachines This property is required. List<JitNetworkAccessRequestVirtualMachineResponse>
justification String
The justification for making the initiate request
requestor This property is required. string
The identity of the person who made the request
startTimeUtc This property is required. string
The start time of the request in UTC
virtualMachines This property is required. JitNetworkAccessRequestVirtualMachineResponse[]
justification string
The justification for making the initiate request
requestor This property is required. str
The identity of the person who made the request
start_time_utc This property is required. str
The start time of the request in UTC
virtual_machines This property is required. Sequence[JitNetworkAccessRequestVirtualMachineResponse]
justification str
The justification for making the initiate request
requestor This property is required. String
The identity of the person who made the request
startTimeUtc This property is required. String
The start time of the request in UTC
virtualMachines This property is required. List<Property Map>
justification String
The justification for making the initiate request

JitNetworkAccessRequestVirtualMachineResponse

Id This property is required. string
Resource ID of the virtual machine that is linked to this policy
Ports This property is required. List<Pulumi.AzureNative.Security.Inputs.JitNetworkAccessRequestPortResponse>
The ports that were opened for the virtual machine
Id This property is required. string
Resource ID of the virtual machine that is linked to this policy
Ports This property is required. []JitNetworkAccessRequestPortResponse
The ports that were opened for the virtual machine
id This property is required. String
Resource ID of the virtual machine that is linked to this policy
ports This property is required. List<JitNetworkAccessRequestPortResponse>
The ports that were opened for the virtual machine
id This property is required. string
Resource ID of the virtual machine that is linked to this policy
ports This property is required. JitNetworkAccessRequestPortResponse[]
The ports that were opened for the virtual machine
id This property is required. str
Resource ID of the virtual machine that is linked to this policy
ports This property is required. Sequence[JitNetworkAccessRequestPortResponse]
The ports that were opened for the virtual machine
id This property is required. String
Resource ID of the virtual machine that is linked to this policy
ports This property is required. List<Property Map>
The ports that were opened for the virtual machine

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi