azure-native.solutions.JitRequest
Explore with Pulumi AI
Information about JIT request definition. Azure REST API version: 2021-07-01. Prior API version in Azure Native 1.x: 2019-07-01.
Other available API versions: 2023-12-01-preview.
Example Usage
Create or update jit request
using System.Collections.Generic;
using System.Linq;
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 = AzureNative.Solutions.JitSchedulingType.Once,
},
ResourceGroupName = "rg",
});
});
package main
import (
solutions "github.com/pulumi/pulumi-azure-native-sdk/solutions/v2"
"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(solutions.JitSchedulingTypeOnce),
},
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 com.pulumi.azurenative.solutions.inputs.JitAuthorizationPoliciesArgs;
import com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs;
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(JitAuthorizationPoliciesArgs.builder()
.principalId("1db8e132e2934dbcb8e1178a61319491")
.roleDefinitionId("ecd05a23-931a-4c38-a52b-ac7c4c583334")
.build())
.jitRequestName("myJitRequest")
.jitSchedulingPolicy(JitSchedulingPolicyArgs.builder()
.duration("PT8H")
.startTime("2021-04-22T05:48:30.6661804Z")
.type("Once")
.build())
.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=azure_native.solutions.JitSchedulingType.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: azure_native.solutions.JitSchedulingType.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JitRequest(name: string, args: JitRequestArgs, opts?: CustomResourceOptions);
@overload
def JitRequest(resource_name: str,
args: JitRequestArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JitRequest(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_resource_id: Optional[str] = None,
jit_authorization_policies: Optional[Sequence[JitAuthorizationPoliciesArgs]] = None,
jit_scheduling_policy: Optional[JitSchedulingPolicyArgs] = None,
resource_group_name: Optional[str] = None,
jit_request_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var jitRequestResource = new AzureNative.Solutions.JitRequest("jitRequestResource", new()
{
ApplicationResourceId = "string",
JitAuthorizationPolicies = new[]
{
new AzureNative.Solutions.Inputs.JitAuthorizationPoliciesArgs
{
PrincipalId = "string",
RoleDefinitionId = "string",
},
},
JitSchedulingPolicy = new AzureNative.Solutions.Inputs.JitSchedulingPolicyArgs
{
Duration = "string",
StartTime = "string",
Type = "string",
},
ResourceGroupName = "string",
JitRequestName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := solutions.NewJitRequest(ctx, "jitRequestResource", &solutions.JitRequestArgs{
ApplicationResourceId: pulumi.String("string"),
JitAuthorizationPolicies: solutions.JitAuthorizationPoliciesArray{
&solutions.JitAuthorizationPoliciesArgs{
PrincipalId: pulumi.String("string"),
RoleDefinitionId: pulumi.String("string"),
},
},
JitSchedulingPolicy: &solutions.JitSchedulingPolicyArgs{
Duration: pulumi.String("string"),
StartTime: pulumi.String("string"),
Type: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
JitRequestName: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var jitRequestResource = new JitRequest("jitRequestResource", JitRequestArgs.builder()
.applicationResourceId("string")
.jitAuthorizationPolicies(JitAuthorizationPoliciesArgs.builder()
.principalId("string")
.roleDefinitionId("string")
.build())
.jitSchedulingPolicy(JitSchedulingPolicyArgs.builder()
.duration("string")
.startTime("string")
.type("string")
.build())
.resourceGroupName("string")
.jitRequestName("string")
.location("string")
.tags(Map.of("string", "string"))
.build());
jit_request_resource = azure_native.solutions.JitRequest("jitRequestResource",
application_resource_id="string",
jit_authorization_policies=[azure_native.solutions.JitAuthorizationPoliciesArgs(
principal_id="string",
role_definition_id="string",
)],
jit_scheduling_policy=azure_native.solutions.JitSchedulingPolicyArgs(
duration="string",
start_time="string",
type="string",
),
resource_group_name="string",
jit_request_name="string",
location="string",
tags={
"string": "string",
})
const jitRequestResource = new azure_native.solutions.JitRequest("jitRequestResource", {
applicationResourceId: "string",
jitAuthorizationPolicies: [{
principalId: "string",
roleDefinitionId: "string",
}],
jitSchedulingPolicy: {
duration: "string",
startTime: "string",
type: "string",
},
resourceGroupName: "string",
jitRequestName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:solutions:JitRequest
properties:
applicationResourceId: string
jitAuthorizationPolicies:
- principalId: string
roleDefinitionId: string
jitRequestName: string
jitSchedulingPolicy:
duration: string
startTime: string
type: string
location: string
resourceGroupName: string
tags:
string: string
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:
- Application
Resource stringId - The parent application id.
- List<Pulumi.
Azure Native. Solutions. Inputs. Jit Authorization Policies> - The JIT authorization policies.
- Jit
Scheduling Pulumi.Policy Azure Native. Solutions. Inputs. Jit Scheduling Policy - The JIT request properties.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Jit
Request stringName - The name of the JIT request.
- Location string
- Resource location
- Dictionary<string, string>
- Resource tags
- Application
Resource stringId - The parent application id.
- []Jit
Authorization Policies Args - The JIT authorization policies.
- Jit
Scheduling JitPolicy Scheduling Policy Args - The JIT request properties.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Jit
Request stringName - The name of the JIT request.
- Location string
- Resource location
- map[string]string
- Resource tags
- application
Resource StringId - The parent application id.
- List<Jit
Authorization Policies> - The JIT authorization policies.
- jit
Scheduling JitPolicy Scheduling Policy - The JIT request properties.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- jit
Request StringName - The name of the JIT request.
- location String
- Resource location
- Map<String,String>
- Resource tags
- application
Resource stringId - The parent application id.
- Jit
Authorization Policies[] - The JIT authorization policies.
- jit
Scheduling JitPolicy Scheduling Policy - The JIT request properties.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- jit
Request stringName - The name of the JIT request.
- location string
- Resource location
- {[key: string]: string}
- Resource tags
- application_
resource_ strid - The parent application id.
- Sequence[Jit
Authorization Policies Args] - The JIT authorization policies.
- jit_
scheduling_ Jitpolicy Scheduling Policy Args - The JIT request properties.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- jit_
request_ strname - The name of the JIT request.
- location str
- Resource location
- Mapping[str, str]
- Resource tags
- application
Resource StringId - The parent application id.
- List<Property Map>
- The JIT authorization policies.
- jit
Scheduling Property MapPolicy - The JIT request properties.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- jit
Request StringName - The name of the JIT request.
- location String
- Resource location
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the JitRequest resource produces the following output properties:
- Created
By Pulumi.Azure Native. Solutions. Outputs. Application Client Details Response - The client entity that created the JIT request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Jit
Request stringState - The JIT request state.
- Name string
- Resource name
- Provisioning
State string - The JIT request provisioning state.
- Publisher
Tenant stringId - The publisher tenant id.
- System
Data Pulumi.Azure Native. Solutions. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type
- Updated
By Pulumi.Azure Native. Solutions. Outputs. Application Client Details Response - The client entity that last updated the JIT request.
- Created
By ApplicationClient Details Response - The client entity that created the JIT request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Jit
Request stringState - The JIT request state.
- Name string
- Resource name
- Provisioning
State string - The JIT request provisioning state.
- Publisher
Tenant stringId - The publisher tenant id.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type
- Updated
By ApplicationClient Details Response - The client entity that last updated the JIT request.
- created
By ApplicationClient Details Response - The client entity that created the JIT request.
- id String
- The provider-assigned unique ID for this managed resource.
- jit
Request StringState - The JIT request state.
- name String
- Resource name
- provisioning
State String - The JIT request provisioning state.
- publisher
Tenant StringId - The publisher tenant id.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type
- updated
By ApplicationClient Details Response - The client entity that last updated the JIT request.
- created
By ApplicationClient Details Response - The client entity that created the JIT request.
- id string
- The provider-assigned unique ID for this managed resource.
- jit
Request stringState - The JIT request state.
- name string
- Resource name
- provisioning
State string - The JIT request provisioning state.
- publisher
Tenant stringId - The publisher tenant id.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- Resource type
- updated
By ApplicationClient Details Response - The client entity that last updated the JIT request.
- created_
by ApplicationClient Details Response - The client entity that created the JIT request.
- id str
- The provider-assigned unique ID for this managed resource.
- jit_
request_ strstate - The JIT request state.
- name str
- Resource name
- provisioning_
state str - The JIT request provisioning state.
- publisher_
tenant_ strid - The publisher tenant id.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- Resource type
- updated_
by ApplicationClient Details Response - The client entity that last updated the JIT request.
- created
By Property Map - The client entity that created the JIT request.
- id String
- The provider-assigned unique ID for this managed resource.
- jit
Request StringState - The JIT request state.
- name String
- Resource name
- provisioning
State String - The JIT request provisioning state.
- publisher
Tenant StringId - The publisher tenant id.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type
- updated
By Property Map - The client entity that last updated the JIT request.
Supporting Types
ApplicationClientDetailsResponse, ApplicationClientDetailsResponseArgs
- Application
Id string - The client application Id.
- Oid string
- The client Oid.
- Puid string
- The client Puid
- Application
Id string - The client application Id.
- Oid string
- The client Oid.
- Puid string
- The client Puid
- application
Id String - The client application Id.
- oid String
- The client Oid.
- puid String
- The client Puid
- application
Id 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
- application
Id String - The client application Id.
- oid String
- The client Oid.
- puid String
- The client Puid
JitAuthorizationPolicies, JitAuthorizationPoliciesArgs
- Principal
Id string - The the principal id that will be granted JIT access.
- Role
Definition stringId - The role definition id that will be granted to the Principal.
- Principal
Id string - The the principal id that will be granted JIT access.
- Role
Definition stringId - The role definition id that will be granted to the Principal.
- principal
Id String - The the principal id that will be granted JIT access.
- role
Definition StringId - The role definition id that will be granted to the Principal.
- principal
Id string - The the principal id that will be granted JIT access.
- role
Definition stringId - 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_ strid - The role definition id that will be granted to the Principal.
- principal
Id String - The the principal id that will be granted JIT access.
- role
Definition StringId - The role definition id that will be granted to the Principal.
JitAuthorizationPoliciesResponse, JitAuthorizationPoliciesResponseArgs
- Principal
Id string - The the principal id that will be granted JIT access.
- Role
Definition stringId - The role definition id that will be granted to the Principal.
- Principal
Id string - The the principal id that will be granted JIT access.
- Role
Definition stringId - The role definition id that will be granted to the Principal.
- principal
Id String - The the principal id that will be granted JIT access.
- role
Definition StringId - The role definition id that will be granted to the Principal.
- principal
Id string - The the principal id that will be granted JIT access.
- role
Definition stringId - 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_ strid - The role definition id that will be granted to the Principal.
- principal
Id String - The the principal id that will be granted JIT access.
- role
Definition StringId - The role definition id that will be granted to the Principal.
JitSchedulingPolicy, JitSchedulingPolicyArgs
- Duration string
- Start
Time string - The start time of the request.
- Type
string | Pulumi.
Azure Native. Solutions. Jit Scheduling Type - The type of JIT schedule.
- Duration string
- Start
Time string - The start time of the request.
- Type
string | Jit
Scheduling Type - The type of JIT schedule.
- duration String
- start
Time String - The start time of the request.
- type
String | Jit
Scheduling Type - The type of JIT schedule.
- duration string
- start
Time string - The start time of the request.
- type
string | Jit
Scheduling Type - The type of JIT schedule.
- duration str
- start_
time str - The start time of the request.
- type
str | Jit
Scheduling Type - The type of JIT schedule.
- duration String
- start
Time String - The start time of the request.
- type
String | "Not
Specified" | "Once" | "Recurring" - The type of JIT schedule.
JitSchedulingPolicyResponse, JitSchedulingPolicyResponseArgs
- duration str
- start_
time str - The start time of the request.
- type str
- The type of JIT schedule.
JitSchedulingType, JitSchedulingTypeArgs
- Not
Specified - NotSpecified
- Once
- Once
- Recurring
- Recurring
- Jit
Scheduling Type Not Specified - NotSpecified
- Jit
Scheduling Type Once - Once
- Jit
Scheduling Type Recurring - Recurring
- Not
Specified - NotSpecified
- Once
- Once
- Recurring
- Recurring
- Not
Specified - NotSpecified
- Once
- Once
- Recurring
- Recurring
- NOT_SPECIFIED
- NotSpecified
- ONCE
- Once
- RECURRING
- Recurring
- "Not
Specified" - NotSpecified
- "Once"
- Once
- "Recurring"
- Recurring
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:solutions:JitRequest myJitRequest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0