azure-native.solutions.JitRequest

Explore with Pulumi AI

Information about JIT request definition. API Version: 2019-07-01.

Example Usage

Creates or updates the JIT request

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var jitRequest = new AzureNative.Solutions.JitRequest("jitRequest", new()
    {
        ApplicationResourceId = "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158",
        JitAuthorizationPolicies = new[]
        {
            new AzureNative.Solutions.Inputs.JitAuthorizationPoliciesArgs
            {
                PrincipalId = "1db8e132e2934dbcb8e1178a61319491",
                RoleDefinitionId = "ecd05a23-931a-4c38-a52b-ac7c4c583334",
            },
        },
        JitRequestName = "myJitRequest",
        JitSchedulingPolicy = new AzureNative.Solutions.Inputs.JitSchedulingPolicyArgs
        {
            Duration = "PT8H",
            StartTime = "2021-04-22T05:48:30.6661804Z",
            Type = "Once",
        },
        ResourceGroupName = "rg",
    });

});
package main

import (
	solutions "github.com/pulumi/pulumi-azure-native/sdk/go/azure/solutions"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := solutions.NewJitRequest(ctx, "jitRequest", &solutions.JitRequestArgs{
			ApplicationResourceId: pulumi.String("/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158"),
			JitAuthorizationPolicies: solutions.JitAuthorizationPoliciesArray{
				&solutions.JitAuthorizationPoliciesArgs{
					PrincipalId:      pulumi.String("1db8e132e2934dbcb8e1178a61319491"),
					RoleDefinitionId: pulumi.String("ecd05a23-931a-4c38-a52b-ac7c4c583334"),
				},
			},
			JitRequestName: pulumi.String("myJitRequest"),
			JitSchedulingPolicy: &solutions.JitSchedulingPolicyArgs{
				Duration:  pulumi.String("PT8H"),
				StartTime: pulumi.String("2021-04-22T05:48:30.6661804Z"),
				Type:      pulumi.String("Once"),
			},
			ResourceGroupName: pulumi.String("rg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.solutions.JitRequest;
import com.pulumi.azurenative.solutions.JitRequestArgs;
import java.util.List;
import java.util.ArrayList;
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 jitRequest = new JitRequest("jitRequest", JitRequestArgs.builder()        
            .applicationResourceId("/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158")
            .jitAuthorizationPolicies(Map.ofEntries(
                Map.entry("principalId", "1db8e132e2934dbcb8e1178a61319491"),
                Map.entry("roleDefinitionId", "ecd05a23-931a-4c38-a52b-ac7c4c583334")
            ))
            .jitRequestName("myJitRequest")
            .jitSchedulingPolicy(Map.ofEntries(
                Map.entry("duration", "PT8H"),
                Map.entry("startTime", "2021-04-22T05:48:30.6661804Z"),
                Map.entry("type", "Once")
            ))
            .resourceGroupName("rg")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

jit_request = azure_native.solutions.JitRequest("jitRequest",
    application_resource_id="/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158",
    jit_authorization_policies=[azure_native.solutions.JitAuthorizationPoliciesArgs(
        principal_id="1db8e132e2934dbcb8e1178a61319491",
        role_definition_id="ecd05a23-931a-4c38-a52b-ac7c4c583334",
    )],
    jit_request_name="myJitRequest",
    jit_scheduling_policy=azure_native.solutions.JitSchedulingPolicyArgs(
        duration="PT8H",
        start_time="2021-04-22T05:48:30.6661804Z",
        type="Once",
    ),
    resource_group_name="rg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const jitRequest = new azure_native.solutions.JitRequest("jitRequest", {
    applicationResourceId: "/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158",
    jitAuthorizationPolicies: [{
        principalId: "1db8e132e2934dbcb8e1178a61319491",
        roleDefinitionId: "ecd05a23-931a-4c38-a52b-ac7c4c583334",
    }],
    jitRequestName: "myJitRequest",
    jitSchedulingPolicy: {
        duration: "PT8H",
        startTime: "2021-04-22T05:48:30.6661804Z",
        type: "Once",
    },
    resourceGroupName: "rg",
});
resources:
  jitRequest:
    type: azure-native:solutions:JitRequest
    properties:
      applicationResourceId: /subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158
      jitAuthorizationPolicies:
        - principalId: 1db8e132e2934dbcb8e1178a61319491
          roleDefinitionId: ecd05a23-931a-4c38-a52b-ac7c4c583334
      jitRequestName: myJitRequest
      jitSchedulingPolicy:
        duration: PT8H
        startTime: 2021-04-22T05:48:30.6661804Z
        type: Once
      resourceGroupName: rg

Create JitRequest Resource

new JitRequest(name: string, args: JitRequestArgs, opts?: CustomResourceOptions);
@overload
def JitRequest(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               application_resource_id: Optional[str] = None,
               jit_authorization_policies: Optional[Sequence[JitAuthorizationPoliciesArgs]] = None,
               jit_request_name: Optional[str] = None,
               jit_scheduling_policy: Optional[JitSchedulingPolicyArgs] = None,
               location: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
@overload
def JitRequest(resource_name: str,
               args: JitRequestArgs,
               opts: Optional[ResourceOptions] = None)
func NewJitRequest(ctx *Context, name string, args JitRequestArgs, opts ...ResourceOption) (*JitRequest, error)
public JitRequest(string name, JitRequestArgs args, CustomResourceOptions? opts = null)
public JitRequest(String name, JitRequestArgs args)
public JitRequest(String name, JitRequestArgs args, CustomResourceOptions options)
type: azure-native:solutions:JitRequest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args JitRequestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args JitRequestArgs
The arguments to resource properties.
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 resource.
args JitRequestArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args JitRequestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args JitRequestArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

JitRequest Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The JitRequest resource accepts the following input properties:

ApplicationResourceId string

The parent application id.

JitAuthorizationPolicies List<Pulumi.AzureNative.Solutions.Inputs.JitAuthorizationPoliciesArgs>

The JIT authorization policies.

JitSchedulingPolicy Pulumi.AzureNative.Solutions.Inputs.JitSchedulingPolicyArgs

The JIT request properties.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

JitRequestName string

The name of the JIT request.

Location string

Resource location

Tags Dictionary<string, string>

Resource tags

ApplicationResourceId string

The parent application id.

JitAuthorizationPolicies []JitAuthorizationPoliciesArgs

The JIT authorization policies.

JitSchedulingPolicy JitSchedulingPolicyArgs

The JIT request properties.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

JitRequestName string

The name of the JIT request.

Location string

Resource location

Tags map[string]string

Resource tags

applicationResourceId String

The parent application id.

jitAuthorizationPolicies List<JitAuthorizationPoliciesArgs>

The JIT authorization policies.

jitSchedulingPolicy JitSchedulingPolicyArgs

The JIT request properties.

resourceGroupName String

The name of the resource group. The name is case insensitive.

jitRequestName String

The name of the JIT request.

location String

Resource location

tags Map<String,String>

Resource tags

applicationResourceId string

The parent application id.

jitAuthorizationPolicies JitAuthorizationPoliciesArgs[]

The JIT authorization policies.

jitSchedulingPolicy JitSchedulingPolicyArgs

The JIT request properties.

resourceGroupName string

The name of the resource group. The name is case insensitive.

jitRequestName string

The name of the JIT request.

location string

Resource location

tags {[key: string]: string}

Resource tags

application_resource_id str

The parent application id.

jit_authorization_policies Sequence[JitAuthorizationPoliciesArgs]

The JIT authorization policies.

jit_scheduling_policy JitSchedulingPolicyArgs

The JIT request properties.

resource_group_name str

The name of the resource group. The name is case insensitive.

jit_request_name str

The name of the JIT request.

location str

Resource location

tags Mapping[str, str]

Resource tags

applicationResourceId String

The parent application id.

jitAuthorizationPolicies List<Property Map>

The JIT authorization policies.

jitSchedulingPolicy Property Map

The JIT request properties.

resourceGroupName String

The name of the resource group. The name is case insensitive.

jitRequestName String

The name of the JIT request.

location String

Resource location

tags Map<String>

Resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the JitRequest resource produces the following output properties:

CreatedBy Pulumi.AzureNative.Solutions.Outputs.ApplicationClientDetailsResponse

The client entity that created the JIT request.

Id string

The provider-assigned unique ID for this managed resource.

JitRequestState string

The JIT request state.

Name string

Resource name

ProvisioningState string

The JIT request provisioning state.

PublisherTenantId string

The publisher tenant id.

Type string

Resource type

UpdatedBy Pulumi.AzureNative.Solutions.Outputs.ApplicationClientDetailsResponse

The client entity that last updated the JIT request.

CreatedBy ApplicationClientDetailsResponse

The client entity that created the JIT request.

Id string

The provider-assigned unique ID for this managed resource.

JitRequestState string

The JIT request state.

Name string

Resource name

ProvisioningState string

The JIT request provisioning state.

PublisherTenantId string

The publisher tenant id.

Type string

Resource type

UpdatedBy ApplicationClientDetailsResponse

The client entity that last updated the JIT request.

createdBy ApplicationClientDetailsResponse

The client entity that created the JIT request.

id String

The provider-assigned unique ID for this managed resource.

jitRequestState String

The JIT request state.

name String

Resource name

provisioningState String

The JIT request provisioning state.

publisherTenantId String

The publisher tenant id.

type String

Resource type

updatedBy ApplicationClientDetailsResponse

The client entity that last updated the JIT request.

createdBy ApplicationClientDetailsResponse

The client entity that created the JIT request.

id string

The provider-assigned unique ID for this managed resource.

jitRequestState string

The JIT request state.

name string

Resource name

provisioningState string

The JIT request provisioning state.

publisherTenantId string

The publisher tenant id.

type string

Resource type

updatedBy ApplicationClientDetailsResponse

The client entity that last updated the JIT request.

created_by ApplicationClientDetailsResponse

The client entity that created the JIT request.

id str

The provider-assigned unique ID for this managed resource.

jit_request_state str

The JIT request state.

name str

Resource name

provisioning_state str

The JIT request provisioning state.

publisher_tenant_id str

The publisher tenant id.

type str

Resource type

updated_by ApplicationClientDetailsResponse

The client entity that last updated the JIT request.

createdBy Property Map

The client entity that created the JIT request.

id String

The provider-assigned unique ID for this managed resource.

jitRequestState String

The JIT request state.

name String

Resource name

provisioningState String

The JIT request provisioning state.

publisherTenantId String

The publisher tenant id.

type String

Resource type

updatedBy Property Map

The client entity that last updated the JIT request.

Supporting Types

ApplicationClientDetailsResponse

ApplicationId string

The client application Id.

Oid string

The client Oid.

Puid string

The client Puid

ApplicationId string

The client application Id.

Oid string

The client Oid.

Puid string

The client Puid

applicationId String

The client application Id.

oid String

The client Oid.

puid String

The client Puid

applicationId string

The client application Id.

oid string

The client Oid.

puid string

The client Puid

application_id str

The client application Id.

oid str

The client Oid.

puid str

The client Puid

applicationId String

The client application Id.

oid String

The client Oid.

puid String

The client Puid

JitAuthorizationPolicies

PrincipalId string

The the principal id that will be granted JIT access.

RoleDefinitionId string

The role definition id that will be granted to the Principal.

PrincipalId string

The the principal id that will be granted JIT access.

RoleDefinitionId string

The role definition id that will be granted to the Principal.

principalId String

The the principal id that will be granted JIT access.

roleDefinitionId String

The role definition id that will be granted to the Principal.

principalId string

The the principal id that will be granted JIT access.

roleDefinitionId string

The role definition id that will be granted to the Principal.

principal_id str

The the principal id that will be granted JIT access.

role_definition_id str

The role definition id that will be granted to the Principal.

principalId String

The the principal id that will be granted JIT access.

roleDefinitionId String

The role definition id that will be granted to the Principal.

JitAuthorizationPoliciesResponse

PrincipalId string

The the principal id that will be granted JIT access.

RoleDefinitionId string

The role definition id that will be granted to the Principal.

PrincipalId string

The the principal id that will be granted JIT access.

RoleDefinitionId string

The role definition id that will be granted to the Principal.

principalId String

The the principal id that will be granted JIT access.

roleDefinitionId String

The role definition id that will be granted to the Principal.

principalId string

The the principal id that will be granted JIT access.

roleDefinitionId string

The role definition id that will be granted to the Principal.

principal_id str

The the principal id that will be granted JIT access.

role_definition_id str

The role definition id that will be granted to the Principal.

principalId String

The the principal id that will be granted JIT access.

roleDefinitionId String

The role definition id that will be granted to the Principal.

JitSchedulingPolicy

Duration string
StartTime string

The start time of the request.

Type string | Pulumi.AzureNative.Solutions.JitSchedulingType

The type of JIT schedule.

Duration string
StartTime string

The start time of the request.

Type string | JitSchedulingType

The type of JIT schedule.

duration String
startTime String

The start time of the request.

type String | JitSchedulingType

The type of JIT schedule.

duration string
startTime string

The start time of the request.

type string | JitSchedulingType

The type of JIT schedule.

duration str
start_time str

The start time of the request.

type str | JitSchedulingType

The type of JIT schedule.

duration String
startTime String

The start time of the request.

type String | "NotSpecified" | "Once" | "Recurring"

The type of JIT schedule.

JitSchedulingPolicyResponse

Duration string
StartTime string

The start time of the request.

Type string

The type of JIT schedule.

Duration string
StartTime string

The start time of the request.

Type string

The type of JIT schedule.

duration String
startTime String

The start time of the request.

type String

The type of JIT schedule.

duration string
startTime string

The start time of the request.

type string

The type of JIT schedule.

duration str
start_time str

The start time of the request.

type str

The type of JIT schedule.

duration String
startTime String

The start time of the request.

type String

The type of JIT schedule.

JitSchedulingType

NotSpecified
NotSpecified
Once
Once
Recurring
Recurring
JitSchedulingTypeNotSpecified
NotSpecified
JitSchedulingTypeOnce
Once
JitSchedulingTypeRecurring
Recurring
NotSpecified
NotSpecified
Once
Once
Recurring
Recurring
NotSpecified
NotSpecified
Once
Once
Recurring
Recurring
NOT_SPECIFIED
NotSpecified
ONCE
Once
RECURRING
Recurring
"NotSpecified"
NotSpecified
"Once"
Once
"Recurring"
Recurring

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:solutions:JitRequest myJitRequest /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/jitRequests/myJitRequest 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0