1. Packages
  2. Azure Native v1
  3. API Docs
  4. security
  5. getJitNetworkAccessPolicy
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.security.getJitNetworkAccessPolicy

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Policies for protecting resources using Just-in-Time access control for the subscription, location 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:security:getJitNetworkAccessPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AscLocation string
    The location where ASC stores the data of the subscription. can be retrieved from Get locations
    JitNetworkAccessPolicyName string
    Name of a Just-in-Time access configuration policy.
    ResourceGroupName string
    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
    JitNetworkAccessPolicyName string
    Name of a Just-in-Time access configuration policy.
    ResourceGroupName string
    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
    jitNetworkAccessPolicyName String
    Name of a Just-in-Time access configuration policy.
    resourceGroupName String
    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
    jitNetworkAccessPolicyName string
    Name of a Just-in-Time access configuration policy.
    resourceGroupName string
    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_access_policy_name str
    Name of a Just-in-Time access configuration policy.
    resource_group_name str
    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
    jitNetworkAccessPolicyName String
    Name of a Just-in-Time access configuration policy.
    resourceGroupName 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:

    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>
    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
    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>
    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[]
    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]
    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.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 string
    Resource ID of the virtual machine that is linked to this policy
    Ports []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 String
    Resource ID of the virtual machine that is linked to this policy
    ports 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 string
    Resource ID of the virtual machine that is linked to this policy
    ports 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 str
    Resource ID of the virtual machine that is linked to this policy
    ports 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 String
    Resource ID of the virtual machine that is linked to this policy
    ports 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 string
    Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    Number int
    Protocol 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 string
    Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    Number int
    Protocol 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 String
    Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    number Integer
    protocol 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 string
    Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    number number
    protocol 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 str
    Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    number int
    protocol 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 String
    Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
    number Number
    protocol 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 string
    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 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 string
    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 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 String
    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 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 string
    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 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 str
    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 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 String
    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 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 string
    The identity of the person who made the request
    StartTimeUtc string
    The start time of the request in UTC
    VirtualMachines List<Pulumi.AzureNative.Security.Inputs.JitNetworkAccessRequestVirtualMachineResponse>
    Justification string
    The justification for making the initiate request
    Requestor string
    The identity of the person who made the request
    StartTimeUtc string
    The start time of the request in UTC
    VirtualMachines []JitNetworkAccessRequestVirtualMachineResponse
    Justification string
    The justification for making the initiate request
    requestor String
    The identity of the person who made the request
    startTimeUtc String
    The start time of the request in UTC
    virtualMachines List<JitNetworkAccessRequestVirtualMachineResponse>
    justification String
    The justification for making the initiate request
    requestor string
    The identity of the person who made the request
    startTimeUtc string
    The start time of the request in UTC
    virtualMachines JitNetworkAccessRequestVirtualMachineResponse[]
    justification string
    The justification for making the initiate request
    requestor str
    The identity of the person who made the request
    start_time_utc str
    The start time of the request in UTC
    virtual_machines Sequence[JitNetworkAccessRequestVirtualMachineResponse]
    justification str
    The justification for making the initiate request
    requestor String
    The identity of the person who made the request
    startTimeUtc String
    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.AzureNative.Security.Inputs.JitNetworkAccessRequestPortResponse>
    The ports that were opened for the virtual machine
    Id string
    Resource ID of the virtual machine that is linked to this policy
    Ports []JitNetworkAccessRequestPortResponse
    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<JitNetworkAccessRequestPortResponse>
    The ports that were opened for the virtual machine
    id string
    Resource ID of the virtual machine that is linked to this policy
    ports JitNetworkAccessRequestPortResponse[]
    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[JitNetworkAccessRequestPortResponse]
    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-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi