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>
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 dictionary
The following arguments are supported:
- Asc
Location This property is required. Changes to this property will trigger replacement.
- 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.
- Name of a Just-in-Time access configuration policy.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- Name of a Just-in-Time access configuration policy.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- Name of a Just-in-Time access configuration policy.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- Name of a Just-in-Time access configuration policy.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- Name of a Just-in-Time access configuration policy.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- Name of a Just-in-Time access configuration policy.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the user's subscription. The name is case insensitive.
getJitNetworkAccessPolicy Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource Id
- Location string
- Location where the resource is stored
- Name string
- Resource name
- Provisioning
State string - Gets the provisioning state of the Just-in-Time policy.
- Type string
- Resource type
- Virtual
Machines 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>
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource Id
- Location string
- Location where the resource is stored
- Name string
- Resource name
- Provisioning
State string - Gets the provisioning state of the Just-in-Time policy.
- Type string
- Resource type
- Virtual
Machines []JitNetwork Access Policy Virtual Machine Response - Configurations for Microsoft.Compute/virtualMachines resource type.
- Kind string
- Kind of the resource
- Requests
[]Jit
Network Access Request Response
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource Id
- location String
- Location where the resource is stored
- name String
- Resource name
- provisioning
State String - Gets the provisioning state of the Just-in-Time policy.
- type String
- Resource type
- virtual
Machines List<JitNetwork Access Policy Virtual Machine Response> - Configurations for Microsoft.Compute/virtualMachines resource type.
- kind String
- Kind of the resource
- requests
List<Jit
Network Access Request Response>
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Resource Id
- location string
- Location where the resource is stored
- name string
- Resource name
- provisioning
State string - Gets the provisioning state of the Just-in-Time policy.
- type string
- Resource type
- virtual
Machines JitNetwork Access Policy Virtual Machine Response[] - Configurations for Microsoft.Compute/virtualMachines resource type.
- kind string
- Kind of the resource
- requests
Jit
Network Access Request Response[]
- azure_
api_ strversion - 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[JitNetwork Access Policy Virtual Machine Response] - Configurations for Microsoft.Compute/virtualMachines resource type.
- kind str
- Kind of the resource
- requests
Sequence[Jit
Network Access Request Response]
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource Id
- location String
- Location where the resource is stored
- name String
- Resource name
- provisioning
State String - Gets the provisioning state of the Just-in-Time policy.
- type String
- Resource type
- virtual
Machines 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.Azure Native. Security. Inputs. Jit Network Access Port Rule Response> - Port configurations for the virtual machine
- Public
Ip stringAddress - 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. []JitNetwork Access Port Rule Response - Port configurations for the virtual machine
- Public
Ip stringAddress - 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<JitNetwork Access Port Rule Response> - Port configurations for the virtual machine
- public
Ip StringAddress - 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. JitNetwork Access Port Rule Response[] - Port configurations for the virtual machine
- public
Ip stringAddress - 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[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
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
- public
Ip StringAddress - Public IP address of the Azure Firewall that is linked to this policy, if applicable
JitNetworkAccessPortRuleResponse
- Max
Request Access Duration 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 - Allowed
Source 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".
- Allowed
Source List<string>Address Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- Max
Request Access Duration 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 - Allowed
Source 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".
- Allowed
Source []stringAddress Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- max
Request Access Duration 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 - allowed
Source 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".
- allowed
Source List<String>Address Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- max
Request Access Duration 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 - allowed
Source 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".
- allowed
Source string[]Address Prefixes - 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_ 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.
- max
Request Access Duration 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 - allowed
Source 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".
- allowed
Source List<String>Address Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
JitNetworkAccessRequestPortResponse
- End
Time Utc 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
- Status
Reason This property is required. string - A description of why the
status
has its value - Allowed
Source 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".
- Allowed
Source List<string>Address Prefixes - 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
- End
Time Utc 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
- Status
Reason This property is required. string - A description of why the
status
has its value - Allowed
Source 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".
- Allowed
Source []stringAddress Prefixes - 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
- end
Time Utc 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
- status
Reason This property is required. String - A description of why the
status
has its value - allowed
Source 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".
- allowed
Source List<String>Address Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mapped
Port Integer - The port which is mapped to this port's
number
in the Azure Firewall, if applicable
- end
Time Utc 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
- status
Reason This property is required. string - A description of why the
status
has its value - allowed
Source 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".
- allowed
Source string[]Address Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mapped
Port 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_ 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
number
in the Azure Firewall, if applicable
- end
Time Utc 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
- status
Reason This property is required. String - A description of why the
status
has its value - allowed
Source 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".
- allowed
Source List<String>Address Prefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
- mapped
Port 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
- Start
Time Utc This property is required. string - The start time of the request in UTC
- Virtual
Machines This property is required. List<Pulumi.Azure Native. Security. Inputs. Jit Network Access Request Virtual Machine Response> - Justification string
- The justification for making the initiate request
- Requestor
This property is required. string - The identity of the person who made the request
- Start
Time Utc This property is required. string - The start time of the request in UTC
- Virtual
Machines This property is required. []JitNetwork Access Request Virtual Machine Response - Justification string
- The justification for making the initiate request
- requestor
This property is required. String - The identity of the person who made the request
- start
Time Utc This property is required. String - The start time of the request in UTC
- virtual
Machines This property is required. List<JitNetwork Access Request Virtual Machine Response> - justification String
- The justification for making the initiate request
- requestor
This property is required. string - The identity of the person who made the request
- start
Time Utc This property is required. string - The start time of the request in UTC
- virtual
Machines This property is required. JitNetwork Access Request Virtual Machine Response[] - 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[JitNetwork Access Request Virtual Machine Response] - justification str
- The justification for making the initiate request
- requestor
This property is required. String - The identity of the person who made the request
- start
Time Utc This property is required. String - The start time of the request in UTC
- virtual
Machines 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.Azure Native. Security. Inputs. Jit Network Access Request Port Response> - 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. []JitNetwork Access Request Port Response - 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<JitNetwork Access Request Port Response> - 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. JitNetwork Access Request Port Response[] - 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[JitNetwork Access Request Port Response] - 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