This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.security.getJitNetworkAccessPolicy
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Policies for protecting resources using Just-in-Time access control for the subscription, location 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>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]func LookupJitNetworkAccessPolicy(ctx *Context, args *LookupJitNetworkAccessPolicyArgs, opts ...InvokeOption) (*LookupJitNetworkAccessPolicyResult, error)
func LookupJitNetworkAccessPolicyOutput(ctx *Context, args *LookupJitNetworkAccessPolicyOutputArgs, opts ...InvokeOption) LookupJitNetworkAccessPolicyResultOutput> 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)
}public static CompletableFuture<GetJitNetworkAccessPolicyResult> getJitNetworkAccessPolicy(GetJitNetworkAccessPolicyArgs args, InvokeOptions options)
public static Output<GetJitNetworkAccessPolicyResult> getJitNetworkAccessPolicy(GetJitNetworkAccessPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:security:getJitNetworkAccessPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AscLocation string
- The location where ASC stores the data of the subscription. can be retrieved from Get locations
- JitNetwork stringAccess Policy Name 
- Name of a Just-in-Time access configuration policy.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- AscLocation string
- The location where ASC stores the data of the subscription. can be retrieved from Get locations
- JitNetwork stringAccess Policy Name 
- Name of a Just-in-Time access configuration policy.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- ascLocation String
- The location where ASC stores the data of the subscription. can be retrieved from Get locations
- jitNetwork StringAccess Policy Name 
- Name of a Just-in-Time access configuration policy.
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- ascLocation string
- The location where ASC stores the data of the subscription. can be retrieved from Get locations
- jitNetwork stringAccess Policy Name 
- Name of a Just-in-Time access configuration policy.
- resourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- asc_location str
- The location where ASC stores the data of the subscription. can be retrieved from Get locations
- jit_network_ straccess_ policy_ name 
- Name of a Just-in-Time access configuration policy.
- resource_group_ strname 
- The name of the resource group within the user's subscription. The name is case insensitive.
- ascLocation String
- The location where ASC stores the data of the subscription. can be retrieved from Get locations
- jitNetwork StringAccess Policy Name 
- Name of a Just-in-Time access configuration policy.
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
getJitNetworkAccessPolicy Result
The following output properties are available:
- 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.Azure Native. Security. Outputs. Jit Network Access Policy Virtual Machine Response> 
- Configurations for Microsoft.Compute/virtualMachines resource type.
- Kind string
- Kind of the resource
- Requests
List<Pulumi.Azure Native. Security. Outputs. Jit Network Access Request Response> 
- 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 []JitNetwork Access Policy Virtual Machine Response 
- Configurations for Microsoft.Compute/virtualMachines resource type.
- Kind string
- Kind of the resource
- Requests
[]JitNetwork Access Request Response 
- 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<JitNetwork Access Policy Virtual Machine Response> 
- Configurations for Microsoft.Compute/virtualMachines resource type.
- kind String
- Kind of the resource
- requests
List<JitNetwork Access Request Response> 
- 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 JitNetwork Access Policy Virtual Machine Response[] 
- Configurations for Microsoft.Compute/virtualMachines resource type.
- kind string
- Kind of the resource
- requests
JitNetwork Access Request Response[] 
- 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[JitNetwork Access Policy Virtual Machine Response] 
- Configurations for Microsoft.Compute/virtualMachines resource type.
- kind str
- Kind of the resource
- requests
Sequence[JitNetwork Access Request Response] 
- 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 string
- Resource ID of the virtual machine that is linked to this policy
- Ports
List<Pulumi.Azure Native. Security. Inputs. Jit Network Access Port Rule Response> 
- Port configurations for the virtual machine
- PublicIp stringAddress 
- Public IP address of the Azure Firewall that is linked to this policy, if applicable
- Id string
- Resource ID of the virtual machine that is linked to this policy
- Ports
[]JitNetwork Access Port Rule Response 
- Port configurations for the virtual machine
- PublicIp stringAddress 
- Public IP address of the Azure Firewall that is linked to this policy, if applicable
- id String
- Resource ID of the virtual machine that is linked to this policy
- ports
List<JitNetwork Access Port Rule Response> 
- Port configurations for the virtual machine
- publicIp StringAddress 
- Public IP address of the Azure Firewall that is linked to this policy, if applicable
- id string
- Resource ID of the virtual machine that is linked to this policy
- ports
JitNetwork Access Port Rule Response[] 
- Port configurations for the virtual machine
- publicIp stringAddress 
- Public IP address of the Azure Firewall that is linked to this policy, if applicable
- id str
- Resource ID of the virtual machine that is linked to this policy
- ports
Sequence[JitNetwork Access Port Rule Response] 
- Port configurations for the virtual machine
- public_ip_ straddress 
- Public IP address of the Azure Firewall that is linked to this policy, if applicable
- id String
- Resource ID of the virtual machine that is linked to this policy
- ports List<Property Map>
- Port configurations for the virtual machine
- publicIp StringAddress 
- Public IP address of the Azure Firewall that is linked to this policy, if applicable
JitNetworkAccessPortRuleResponse     
- MaxRequest stringAccess Duration 
- Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
- Number int
- Protocol string
- AllowedSource stringAddress Prefix 
- 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".
- AllowedSource List<string>Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- MaxRequest stringAccess Duration 
- Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
- Number int
- Protocol string
- AllowedSource stringAddress Prefix 
- 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".
- AllowedSource []stringAddress Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- maxRequest StringAccess Duration 
- Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
- number Integer
- protocol String
- allowedSource StringAddress Prefix 
- 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".
- allowedSource List<String>Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- maxRequest stringAccess Duration 
- Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
- number number
- protocol string
- allowedSource stringAddress Prefix 
- 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".
- allowedSource string[]Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- max_request_ straccess_ duration 
- Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
- number int
- protocol str
- allowed_source_ straddress_ prefix 
- 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_ Sequence[str]address_ prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- maxRequest StringAccess Duration 
- Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
- number Number
- protocol String
- allowedSource StringAddress Prefix 
- 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".
- allowedSource List<String>Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
JitNetworkAccessRequestPortResponse     
- EndTime stringUtc 
- The date & time at which the request ends in UTC
- Number int
- Status string
- The status of the port
- StatusReason string
- A description of why the statushas its value
- AllowedSource stringAddress Prefix 
- 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".
- AllowedSource List<string>Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- MappedPort int
- The port which is mapped to this port's numberin the Azure Firewall, if applicable
- EndTime stringUtc 
- The date & time at which the request ends in UTC
- Number int
- Status string
- The status of the port
- StatusReason string
- A description of why the statushas its value
- AllowedSource stringAddress Prefix 
- 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".
- AllowedSource []stringAddress Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- MappedPort int
- The port which is mapped to this port's numberin the Azure Firewall, if applicable
- endTime StringUtc 
- The date & time at which the request ends in UTC
- number Integer
- status String
- The status of the port
- statusReason String
- A description of why the statushas its value
- allowedSource StringAddress Prefix 
- 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".
- allowedSource List<String>Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mappedPort Integer
- The port which is mapped to this port's numberin the Azure Firewall, if applicable
- endTime stringUtc 
- The date & time at which the request ends in UTC
- number number
- status string
- The status of the port
- statusReason string
- A description of why the statushas its value
- allowedSource stringAddress Prefix 
- 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".
- allowedSource string[]Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mappedPort number
- The port which is mapped to this port's numberin the Azure Firewall, if applicable
- end_time_ strutc 
- The date & time at which the request ends in UTC
- number int
- status str
- The status of the port
- status_reason str
- A description of why the statushas its value
- allowed_source_ straddress_ prefix 
- 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_ Sequence[str]address_ prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mapped_port int
- The port which is mapped to this port's numberin the Azure Firewall, if applicable
- endTime StringUtc 
- The date & time at which the request ends in UTC
- number Number
- status String
- The status of the port
- statusReason String
- A description of why the statushas its value
- allowedSource StringAddress Prefix 
- 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".
- allowedSource List<String>Address Prefixes 
- Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mappedPort Number
- The port which is mapped to this port's numberin the Azure Firewall, if applicable
JitNetworkAccessRequestResponse    
- Requestor string
- The identity of the person who made the request
- StartTime stringUtc 
- The start time of the request in UTC
- VirtualMachines List<Pulumi.Azure Native. Security. Inputs. Jit Network Access Request Virtual Machine Response> 
- Justification string
- The justification for making the initiate request
- Requestor string
- The identity of the person who made the request
- StartTime stringUtc 
- The start time of the request in UTC
- VirtualMachines []JitNetwork Access Request Virtual Machine Response 
- Justification string
- The justification for making the initiate request
- requestor String
- The identity of the person who made the request
- startTime StringUtc 
- The start time of the request in UTC
- virtualMachines List<JitNetwork Access Request Virtual Machine Response> 
- justification String
- The justification for making the initiate request
- requestor string
- The identity of the person who made the request
- startTime stringUtc 
- The start time of the request in UTC
- virtualMachines JitNetwork Access Request Virtual Machine Response[] 
- justification string
- The justification for making the initiate request
- requestor str
- The identity of the person who made the request
- start_time_ strutc 
- The start time of the request in UTC
- virtual_machines Sequence[JitNetwork Access Request Virtual Machine Response] 
- justification str
- The justification for making the initiate request
- requestor String
- The identity of the person who made the request
- startTime StringUtc 
- The start time of the request in UTC
- virtualMachines List<Property Map>
- justification String
- The justification for making the initiate request
JitNetworkAccessRequestVirtualMachineResponse      
- Id string
- Resource ID of the virtual machine that is linked to this policy
- Ports
List<Pulumi.Azure Native. Security. Inputs. Jit Network Access Request Port Response> 
- The ports that were opened for the virtual machine
- Id string
- Resource ID of the virtual machine that is linked to this policy
- Ports
[]JitNetwork Access Request Port Response 
- The ports that were opened for the virtual machine
- id String
- Resource ID of the virtual machine that is linked to this policy
- ports
List<JitNetwork Access Request Port Response> 
- The ports that were opened for the virtual machine
- id string
- Resource ID of the virtual machine that is linked to this policy
- ports
JitNetwork Access Request Port Response[] 
- The ports that were opened for the virtual machine
- id str
- Resource ID of the virtual machine that is linked to this policy
- ports
Sequence[JitNetwork Access Request Port Response] 
- The ports that were opened for the virtual machine
- id String
- Resource ID of the virtual machine that is linked to this policy
- ports 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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi