Concrete proxy resource types can be created by aliasing this type using a specific property type.
Uses Azure REST API version 2020-01-01. In version 2.x of the Azure Native provider, it used API version 2020-01-01.
Example Usage
Create JIT network access policy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var jitNetworkAccessPolicy = new AzureNative.Security.JitNetworkAccessPolicy("jitNetworkAccessPolicy", new()
{
AscLocation = "westeurope",
JitNetworkAccessPolicyName = "default",
Kind = "Basic",
Requests = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessRequestArgs
{
Requestor = "barbara@contoso.com",
StartTimeUtc = "2018-05-17T08:06:45.5691611Z",
VirtualMachines = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessRequestVirtualMachineArgs
{
Id = "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
Ports = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessRequestPortArgs
{
AllowedSourceAddressPrefix = "192.127.0.2",
EndTimeUtc = "2018-05-17T09:06:45.5691611Z",
Number = 3389,
Status = AzureNative.Security.Status.Initiated,
StatusReason = AzureNative.Security.StatusReason.UserRequested,
},
},
},
},
},
},
ResourceGroupName = "myRg1",
VirtualMachines = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessPolicyVirtualMachineArgs
{
Id = "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
Ports = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessPortRuleArgs
{
AllowedSourceAddressPrefix = "*",
MaxRequestAccessDuration = "PT3H",
Number = 22,
Protocol = AzureNative.Security.Protocol.All,
},
new AzureNative.Security.Inputs.JitNetworkAccessPortRuleArgs
{
AllowedSourceAddressPrefix = "*",
MaxRequestAccessDuration = "PT3H",
Number = 3389,
Protocol = AzureNative.Security.Protocol.All,
},
},
},
},
});
});
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/security/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := security.NewJitNetworkAccessPolicy(ctx, "jitNetworkAccessPolicy", &security.JitNetworkAccessPolicyArgs{
AscLocation: pulumi.String("westeurope"),
JitNetworkAccessPolicyName: pulumi.String("default"),
Kind: pulumi.String("Basic"),
Requests: security.JitNetworkAccessRequestArray{
&security.JitNetworkAccessRequestArgs{
Requestor: pulumi.String("barbara@contoso.com"),
StartTimeUtc: pulumi.String("2018-05-17T08:06:45.5691611Z"),
VirtualMachines: security.JitNetworkAccessRequestVirtualMachineArray{
&security.JitNetworkAccessRequestVirtualMachineArgs{
Id: pulumi.String("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1"),
Ports: security.JitNetworkAccessRequestPortArray{
&security.JitNetworkAccessRequestPortArgs{
AllowedSourceAddressPrefix: pulumi.String("192.127.0.2"),
EndTimeUtc: pulumi.String("2018-05-17T09:06:45.5691611Z"),
Number: pulumi.Int(3389),
Status: pulumi.String(security.StatusInitiated),
StatusReason: pulumi.String(security.StatusReasonUserRequested),
},
},
},
},
},
},
ResourceGroupName: pulumi.String("myRg1"),
VirtualMachines: security.JitNetworkAccessPolicyVirtualMachineArray{
&security.JitNetworkAccessPolicyVirtualMachineArgs{
Id: pulumi.String("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1"),
Ports: security.JitNetworkAccessPortRuleArray{
&security.JitNetworkAccessPortRuleArgs{
AllowedSourceAddressPrefix: pulumi.String("*"),
MaxRequestAccessDuration: pulumi.String("PT3H"),
Number: pulumi.Int(22),
Protocol: pulumi.String(security.ProtocolAll),
},
&security.JitNetworkAccessPortRuleArgs{
AllowedSourceAddressPrefix: pulumi.String("*"),
MaxRequestAccessDuration: pulumi.String("PT3H"),
Number: pulumi.Int(3389),
Protocol: pulumi.String(security.ProtocolAll),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_security_jit_network_access_policy" "jitNetworkAccessPolicy" {
lifecycle {
create_before_destroy = true
}
asc_location = "westeurope"
jit_network_access_policy_name = "default"
kind = "Basic"
requests {
requestor = "barbara@contoso.com"
start_time_utc = "2018-05-17T08:06:45.5691611Z"
virtual_machines {
id = "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1"
ports {
allowed_source_address_prefix = "192.127.0.2"
end_time_utc = "2018-05-17T09:06:45.5691611Z"
number = 3389
status = "Initiated"
status_reason = "UserRequested"
}
}
}
resource_group_name = "myRg1"
virtual_machines {
id = "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1"
ports {
allowed_source_address_prefix = "*"
max_request_access_duration = "PT3H"
number = 22
protocol = "*"
}
ports {
allowed_source_address_prefix = "*"
max_request_access_duration = "PT3H"
number = 3389
protocol = "*"
}
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.security.JitNetworkAccessPolicy;
import com.pulumi.azurenative.security.JitNetworkAccessPolicyArgs;
import com.pulumi.azurenative.security.inputs.JitNetworkAccessRequestArgs;
import com.pulumi.azurenative.security.inputs.JitNetworkAccessRequestVirtualMachineArgs;
import com.pulumi.azurenative.security.inputs.JitNetworkAccessRequestPortArgs;
import com.pulumi.azurenative.security.inputs.JitNetworkAccessPolicyVirtualMachineArgs;
import com.pulumi.azurenative.security.inputs.JitNetworkAccessPortRuleArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var jitNetworkAccessPolicy = new JitNetworkAccessPolicy("jitNetworkAccessPolicy", JitNetworkAccessPolicyArgs.builder()
.ascLocation("westeurope")
.jitNetworkAccessPolicyName("default")
.kind("Basic")
.requests(JitNetworkAccessRequestArgs.builder()
.requestor("barbara@contoso.com")
.startTimeUtc("2018-05-17T08:06:45.5691611Z")
.virtualMachines(JitNetworkAccessRequestVirtualMachineArgs.builder()
.id("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1")
.ports(JitNetworkAccessRequestPortArgs.builder()
.allowedSourceAddressPrefix("192.127.0.2")
.endTimeUtc("2018-05-17T09:06:45.5691611Z")
.number(3389)
.status("Initiated")
.statusReason("UserRequested")
.build())
.build())
.build())
.resourceGroupName("myRg1")
.virtualMachines(JitNetworkAccessPolicyVirtualMachineArgs.builder()
.id("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1")
.ports(
JitNetworkAccessPortRuleArgs.builder()
.allowedSourceAddressPrefix("*")
.maxRequestAccessDuration("PT3H")
.number(22)
.protocol("*")
.build(),
JitNetworkAccessPortRuleArgs.builder()
.allowedSourceAddressPrefix("*")
.maxRequestAccessDuration("PT3H")
.number(3389)
.protocol("*")
.build())
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const jitNetworkAccessPolicy = new azure_native.security.JitNetworkAccessPolicy("jitNetworkAccessPolicy", {
ascLocation: "westeurope",
jitNetworkAccessPolicyName: "default",
kind: "Basic",
requests: [{
requestor: "barbara@contoso.com",
startTimeUtc: "2018-05-17T08:06:45.5691611Z",
virtualMachines: [{
id: "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
ports: [{
allowedSourceAddressPrefix: "192.127.0.2",
endTimeUtc: "2018-05-17T09:06:45.5691611Z",
number: 3389,
status: azure_native.security.Status.Initiated,
statusReason: azure_native.security.StatusReason.UserRequested,
}],
}],
}],
resourceGroupName: "myRg1",
virtualMachines: [{
id: "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
ports: [
{
allowedSourceAddressPrefix: "*",
maxRequestAccessDuration: "PT3H",
number: 22,
protocol: azure_native.security.Protocol.All,
},
{
allowedSourceAddressPrefix: "*",
maxRequestAccessDuration: "PT3H",
number: 3389,
protocol: azure_native.security.Protocol.All,
},
],
}],
});
import pulumi
import pulumi_azure_native as azure_native
jit_network_access_policy = azure_native.security.JitNetworkAccessPolicy("jitNetworkAccessPolicy",
asc_location="westeurope",
jit_network_access_policy_name="default",
kind="Basic",
requests=[{
"requestor": "barbara@contoso.com",
"start_time_utc": "2018-05-17T08:06:45.5691611Z",
"virtual_machines": [{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
"ports": [{
"allowed_source_address_prefix": "192.127.0.2",
"end_time_utc": "2018-05-17T09:06:45.5691611Z",
"number": 3389,
"status": azure_native.security.Status.INITIATED,
"status_reason": azure_native.security.StatusReason.USER_REQUESTED,
}],
}],
}],
resource_group_name="myRg1",
virtual_machines=[{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
"ports": [
{
"allowed_source_address_prefix": "*",
"max_request_access_duration": "PT3H",
"number": 22,
"protocol": azure_native.security.Protocol.ALL,
},
{
"allowed_source_address_prefix": "*",
"max_request_access_duration": "PT3H",
"number": 3389,
"protocol": azure_native.security.Protocol.ALL,
},
],
}])
resources:
jitNetworkAccessPolicy:
type: azure-native:security:JitNetworkAccessPolicy
properties:
ascLocation: westeurope
jitNetworkAccessPolicyName: default
kind: Basic
requests:
- requestor: barbara@contoso.com
startTimeUtc: 2018-05-17T08:06:45.5691611Z
virtualMachines:
- id: /subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1
ports:
- allowedSourceAddressPrefix: 192.127.0.2
endTimeUtc: 2018-05-17T09:06:45.5691611Z
number: 3389
status: Initiated
statusReason: UserRequested
resourceGroupName: myRg1
virtualMachines:
- id: /subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1
ports:
- allowedSourceAddressPrefix: '*'
maxRequestAccessDuration: PT3H
number: 22
protocol: '*'
- allowedSourceAddressPrefix: '*'
maxRequestAccessDuration: PT3H
number: 3389
protocol: '*'
Create JitNetworkAccessPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def JitNetworkAccessPolicy(resource_name: str,
args: JitNetworkAccessPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JitNetworkAccessPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
asc_location: Optional[str] = None,
resource_group_name: Optional[str] = None,
virtual_machines: Optional[Sequence[JitNetworkAccessPolicyVirtualMachineArgs]] = None,
jit_network_access_policy_name: Optional[str] = None,
kind: Optional[str] = None,
requests: Optional[Sequence[JitNetworkAccessRequestArgs]] = None)
type: azure-native:security:JitNetworkAccessPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_security_jit_network_access_policy" "name" {
# resource properties
}
Parameters
- name
String
- The unique name of the resource.
- args
JitNetworkAccessPolicyArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var jitNetworkAccessPolicyResource = new AzureNative.Security.JitNetworkAccessPolicy("jitNetworkAccessPolicyResource", new()
{
AscLocation = "string",
ResourceGroupName = "string",
VirtualMachines = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessPolicyVirtualMachineArgs
{
Id = "string",
Ports = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessPortRuleArgs
{
MaxRequestAccessDuration = "string",
Number = 0,
Protocol = "string",
AllowedSourceAddressPrefix = "string",
AllowedSourceAddressPrefixes = new[]
{
"string",
},
},
},
PublicIpAddress = "string",
},
},
JitNetworkAccessPolicyName = "string",
Kind = "string",
Requests = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessRequestArgs
{
Requestor = "string",
StartTimeUtc = "string",
VirtualMachines = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessRequestVirtualMachineArgs
{
Id = "string",
Ports = new[]
{
new AzureNative.Security.Inputs.JitNetworkAccessRequestPortArgs
{
EndTimeUtc = "string",
Number = 0,
Status = "string",
StatusReason = "string",
AllowedSourceAddressPrefix = "string",
AllowedSourceAddressPrefixes = new[]
{
"string",
},
MappedPort = 0,
},
},
},
},
Justification = "string",
},
},
});
example, err := security.NewJitNetworkAccessPolicy(ctx, "jitNetworkAccessPolicyResource", &security.JitNetworkAccessPolicyArgs{
AscLocation: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
VirtualMachines: security.JitNetworkAccessPolicyVirtualMachineArray{
&security.JitNetworkAccessPolicyVirtualMachineArgs{
Id: pulumi.String("string"),
Ports: security.JitNetworkAccessPortRuleArray{
&security.JitNetworkAccessPortRuleArgs{
MaxRequestAccessDuration: pulumi.String("string"),
Number: pulumi.Int(0),
Protocol: pulumi.String("string"),
AllowedSourceAddressPrefix: pulumi.String("string"),
AllowedSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
},
},
PublicIpAddress: pulumi.String("string"),
},
},
JitNetworkAccessPolicyName: pulumi.String("string"),
Kind: pulumi.String("string"),
Requests: security.JitNetworkAccessRequestArray{
&security.JitNetworkAccessRequestArgs{
Requestor: pulumi.String("string"),
StartTimeUtc: pulumi.String("string"),
VirtualMachines: security.JitNetworkAccessRequestVirtualMachineArray{
&security.JitNetworkAccessRequestVirtualMachineArgs{
Id: pulumi.String("string"),
Ports: security.JitNetworkAccessRequestPortArray{
&security.JitNetworkAccessRequestPortArgs{
EndTimeUtc: pulumi.String("string"),
Number: pulumi.Int(0),
Status: pulumi.String("string"),
StatusReason: pulumi.String("string"),
AllowedSourceAddressPrefix: pulumi.String("string"),
AllowedSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
MappedPort: pulumi.Int(0),
},
},
},
},
Justification: pulumi.String("string"),
},
},
})
resource "azure-native_security_jit_network_access_policy" "jitNetworkAccessPolicyResource" {
lifecycle {
create_before_destroy = true
}
asc_location = "string"
resource_group_name = "string"
virtual_machines {
id = "string"
ports {
max_request_access_duration = "string"
number = 0
protocol = "string"
allowed_source_address_prefix = "string"
allowed_source_address_prefixes = ["string"]
}
public_ip_address = "string"
}
jit_network_access_policy_name = "string"
kind = "string"
requests {
requestor = "string"
start_time_utc = "string"
virtual_machines {
id = "string"
ports {
end_time_utc = "string"
number = 0
status = "string"
status_reason = "string"
allowed_source_address_prefix = "string"
allowed_source_address_prefixes = ["string"]
mapped_port = 0
}
}
justification = "string"
}
}
var jitNetworkAccessPolicyResource = new JitNetworkAccessPolicy("jitNetworkAccessPolicyResource", JitNetworkAccessPolicyArgs.builder()
.ascLocation("string")
.resourceGroupName("string")
.virtualMachines(JitNetworkAccessPolicyVirtualMachineArgs.builder()
.id("string")
.ports(JitNetworkAccessPortRuleArgs.builder()
.maxRequestAccessDuration("string")
.number(0)
.protocol("string")
.allowedSourceAddressPrefix("string")
.allowedSourceAddressPrefixes("string")
.build())
.publicIpAddress("string")
.build())
.jitNetworkAccessPolicyName("string")
.kind("string")
.requests(JitNetworkAccessRequestArgs.builder()
.requestor("string")
.startTimeUtc("string")
.virtualMachines(JitNetworkAccessRequestVirtualMachineArgs.builder()
.id("string")
.ports(JitNetworkAccessRequestPortArgs.builder()
.endTimeUtc("string")
.number(0)
.status("string")
.statusReason("string")
.allowedSourceAddressPrefix("string")
.allowedSourceAddressPrefixes("string")
.mappedPort(0)
.build())
.build())
.justification("string")
.build())
.build());
jit_network_access_policy_resource = azure_native.security.JitNetworkAccessPolicy("jitNetworkAccessPolicyResource",
asc_location="string",
resource_group_name="string",
virtual_machines=[{
"id": "string",
"ports": [{
"max_request_access_duration": "string",
"number": 0,
"protocol": "string",
"allowed_source_address_prefix": "string",
"allowed_source_address_prefixes": ["string"],
}],
"public_ip_address": "string",
}],
jit_network_access_policy_name="string",
kind="string",
requests=[{
"requestor": "string",
"start_time_utc": "string",
"virtual_machines": [{
"id": "string",
"ports": [{
"end_time_utc": "string",
"number": 0,
"status": "string",
"status_reason": "string",
"allowed_source_address_prefix": "string",
"allowed_source_address_prefixes": ["string"],
"mapped_port": 0,
}],
}],
"justification": "string",
}])
const jitNetworkAccessPolicyResource = new azure_native.security.JitNetworkAccessPolicy("jitNetworkAccessPolicyResource", {
ascLocation: "string",
resourceGroupName: "string",
virtualMachines: [{
id: "string",
ports: [{
maxRequestAccessDuration: "string",
number: 0,
protocol: "string",
allowedSourceAddressPrefix: "string",
allowedSourceAddressPrefixes: ["string"],
}],
publicIpAddress: "string",
}],
jitNetworkAccessPolicyName: "string",
kind: "string",
requests: [{
requestor: "string",
startTimeUtc: "string",
virtualMachines: [{
id: "string",
ports: [{
endTimeUtc: "string",
number: 0,
status: "string",
statusReason: "string",
allowedSourceAddressPrefix: "string",
allowedSourceAddressPrefixes: ["string"],
mappedPort: 0,
}],
}],
justification: "string",
}],
});
type: azure-native:security:JitNetworkAccessPolicy
properties:
ascLocation: string
jitNetworkAccessPolicyName: string
kind: string
requests:
- justification: string
requestor: string
startTimeUtc: string
virtualMachines:
- id: string
ports:
- allowedSourceAddressPrefix: string
allowedSourceAddressPrefixes:
- string
endTimeUtc: string
mappedPort: 0
number: 0
status: string
statusReason: string
resourceGroupName: string
virtualMachines:
- id: string
ports:
- allowedSourceAddressPrefix: string
allowedSourceAddressPrefixes:
- string
maxRequestAccessDuration: string
number: 0
protocol: string
publicIpAddress: string
JitNetworkAccessPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The JitNetworkAccessPolicy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the JitNetworkAccessPolicy resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Location
string
- Location where the resource is stored
- Name
string
- The name of the resource
- ProvisioningState
string
- Gets the provisioning state of the Just-in-Time policy.
- SystemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- location
string
- Location where the resource is stored
- name
string
- The name of the resource
- provisioning_state
string
- Gets the provisioning state of the Just-in-Time policy.
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- location
String
- Location where the resource is stored
- name
String
- The name of the resource
- provisioningState
String
- Gets the provisioning state of the Just-in-Time policy.
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- location
string
- Location where the resource is stored
- name
string
- The name of the resource
- provisioningState
string
- Gets the provisioning state of the Just-in-Time policy.
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- location
str
- Location where the resource is stored
- name
str
- The name of the resource
- provisioning_state
str
- Gets the provisioning state of the Just-in-Time policy.
- system_data
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- location
String
- Location where the resource is stored
- name
String
- The name of the resource
- provisioningState
String
- Gets the provisioning state of the Just-in-Time policy.
- systemData
Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Look up Existing JitNetworkAccessPolicy Resource
Get an existing JitNetworkAccessPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
func GetJitNetworkAccessPolicy(ctx *Context, name string, id IDInput, state *JitNetworkAccessPolicyState, opts ...ResourceOption) (*JitNetworkAccessPolicy, error)
public static JitNetworkAccessPolicy get(String name, Output<String> id, CustomResourceOptions options)
resources: existingJitNetworkAccessPolicy: type: azure-native:security:JitNetworkAccessPolicy get: id: ${id}
import {
to = azure-native_security_jit_network_access_policy.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
JitNetworkAccessPolicyState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
JitNetworkAccessPolicyVirtualMachine, JitNetworkAccessPolicyVirtualMachineArgs
- Id
string
- Resource ID of the virtual machine that is linked to this policy
- Ports
[]JitNetworkAccessPortRule
- 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(object)
- Port configurations for the virtual machine
- public_ip_address
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
JitNetworkAccessPortRule[]
- 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<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
JitNetworkAccessPolicyVirtualMachineResponse
- id
string
- Resource ID of the virtual machine that is linked to this policy
- ports
list(object)
- Port configurations for the virtual machine
- public_ip_address
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<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
JitNetworkAccessPortRule, JitNetworkAccessPortRuleArgs
JitNetworkAccessPortRuleResponse
JitNetworkAccessRequest, JitNetworkAccessRequestArgs
JitNetworkAccessRequestPort, JitNetworkAccessRequestPortArgs
- EndTimeUtc
string
- The date & time at which the request ends in UTC
- Number
int
- Status
string | Status
- The status of the port
- StatusReason
string | StatusReason
- 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 | Status
- The status of the port
- statusReason
String | StatusReason
- 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 | Status
- The status of the port
- statusReason
string | StatusReason
- 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
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
- end_time_utc
string
- The date & time at which the request ends in UTC
- number
number
- status
string
- The status of the port
- status_reason
string
- A description of why the
status has its value - allowed_source_address_prefix
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".
- allowed_source_address_prefixes
list(string)
- 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
- 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
JitNetworkAccessRequestVirtualMachine, JitNetworkAccessRequestVirtualMachineArgs
- id
string
- Resource ID of the virtual machine that is linked to this policy
- ports
list(object)
- 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
JitNetworkAccessRequestVirtualMachineResponse
- id
string
- Resource ID of the virtual machine that is linked to this policy
- ports
list(object)
- 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
Protocol
| Name | Value | Description |
|---|
| TCP | TCP | TCP |
| UDP | UDP | UDP |
| All | * | |
| Name | Value | Description |
|---|
| ProtocolTCP | TCP | TCP |
| ProtocolUDP | UDP | UDP |
| ProtocolAll | * | |
| Value | Description |
|---|
TCP | TCP |
UDP | UDP |
* | |
| Name | Value | Description |
|---|
| TCP | TCP | TCP |
| UDP | UDP | UDP |
| All | * | |
| Name | Value | Description |
|---|
| TCP | TCP | TCP |
| UDP | UDP | UDP |
| All | * | |
| Name | Value | Description |
|---|
| TCP | TCP | TCP |
| UDP | UDP | UDP |
| ALL | * | |
| Value | Description |
|---|
TCP | TCP |
UDP | UDP |
* | |
Status
The status of the port
| Name | Value | Description |
|---|
| Revoked | Revoked | Revoked |
| Initiated | Initiated | Initiated |
| Name | Value | Description |
|---|
| StatusRevoked | Revoked | Revoked |
| StatusInitiated | Initiated | Initiated |
| Value | Description |
|---|
Revoked | Revoked |
Initiated | Initiated |
| Name | Value | Description |
|---|
| Revoked | Revoked | Revoked |
| Initiated | Initiated | Initiated |
| Name | Value | Description |
|---|
| Revoked | Revoked | Revoked |
| Initiated | Initiated | Initiated |
| Name | Value | Description |
|---|
| REVOKED | Revoked | Revoked |
| INITIATED | Initiated | Initiated |
| Value | Description |
|---|
Revoked | Revoked |
Initiated | Initiated |
StatusReason
A description of why the status has its value
| Name | Value | Description |
|---|
| Expired | Expired | Expired |
| UserRequested | UserRequested | UserRequested |
| NewerRequestInitiated | NewerRequestInitiated | NewerRequestInitiated |
| Name | Value | Description |
|---|
| StatusReasonExpired | Expired | Expired |
| StatusReasonUserRequested | UserRequested | UserRequested |
| StatusReasonNewerRequestInitiated | NewerRequestInitiated | NewerRequestInitiated |
| Value | Description |
|---|
Expired | Expired |
UserRequested | UserRequested |
NewerRequestInitiated | NewerRequestInitiated |
| Name | Value | Description |
|---|
| Expired | Expired | Expired |
| UserRequested | UserRequested | UserRequested |
| NewerRequestInitiated | NewerRequestInitiated | NewerRequestInitiated |
| Name | Value | Description |
|---|
| Expired | Expired | Expired |
| UserRequested | UserRequested | UserRequested |
| NewerRequestInitiated | NewerRequestInitiated | NewerRequestInitiated |
| Name | Value | Description |
|---|
| EXPIRED | Expired | Expired |
| USER_REQUESTED | UserRequested | UserRequested |
| NEWER_REQUEST_INITIATED | NewerRequestInitiated | NewerRequestInitiated |
| Value | Description |
|---|
Expired | Expired |
UserRequested | UserRequested |
NewerRequestInitiated | NewerRequestInitiated |
SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:security:JitNetworkAccessPolicy default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0