jit_requests
Creates, updates, deletes, gets or lists a jit_requests resource.
Overview
| Name | jit_requests |
| Type | Resource |
| Id | azure.resource.jit_requests |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resource_group
- list_by_subscription
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
applicationResourceId | string | The parent application id. |
createdBy | object | The client entity that created the JIT request. |
jitAuthorizationPolicies | array | The JIT authorization policies. |
jitRequestState | string | The JIT request state. Known values are: "NotSpecified", "Pending", "Approved", "Denied", "Failed", "Canceled", "Expired", and "Timeout". |
jitSchedulingPolicy | object | The JIT request properties. |
location | string | Resource location. |
provisioningState | string | The JIT request provisioning state. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating". |
publisherTenantId | string | The publisher tenant id. |
tags | object | Resource tags. |
type | string | Resource type. |
updatedBy | object | The client entity that last updated the JIT request. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
applicationResourceId | string | The parent application id. |
createdBy | object | The client entity that created the JIT request. |
jitAuthorizationPolicies | array | The JIT authorization policies. |
jitRequestState | string | The JIT request state. Known values are: "NotSpecified", "Pending", "Approved", "Denied", "Failed", "Canceled", "Expired", and "Timeout". |
jitSchedulingPolicy | object | The JIT request properties. |
location | string | Resource location. |
provisioningState | string | The JIT request provisioning state. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating". |
publisherTenantId | string | The publisher tenant id. |
tags | object | Resource tags. |
type | string | Resource type. |
updatedBy | object | The client entity that last updated the JIT request. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
applicationResourceId | string | The parent application id. |
createdBy | object | The client entity that created the JIT request. |
jitAuthorizationPolicies | array | The JIT authorization policies. |
jitRequestState | string | The JIT request state. Known values are: "NotSpecified", "Pending", "Approved", "Denied", "Failed", "Canceled", "Expired", and "Timeout". |
jitSchedulingPolicy | object | The JIT request properties. |
location | string | Resource location. |
provisioningState | string | The JIT request provisioning state. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating". |
publisherTenantId | string | The publisher tenant id. |
tags | object | Resource tags. |
type | string | Resource type. |
updatedBy | object | The client entity that last updated the JIT request. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, jit_request_name, subscription_id | Gets the JIT request. | |
list_by_resource_group | select | resource_group_name, subscription_id | Retrieves all JIT requests within the resource group. | |
list_by_subscription | select | subscription_id | Retrieves all JIT requests within the subscription. | |
create_or_update | insert | resource_group_name, jit_request_name, subscription_id | Creates or updates the JIT request. | |
update | update | resource_group_name, jit_request_name, subscription_id | Updates the JIT request. | |
create_or_update | replace | resource_group_name, jit_request_name, subscription_id | Creates or updates the JIT request. | |
delete | delete | resource_group_name, jit_request_name, subscription_id | Deletes the JIT request. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
jit_request_name | string | The name of the JIT request. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_resource_group
- list_by_subscription
Gets the JIT request.
SELECT
id,
name,
applicationResourceId,
createdBy,
jitAuthorizationPolicies,
jitRequestState,
jitSchedulingPolicy,
location,
provisioningState,
publisherTenantId,
tags,
type,
updatedBy
FROM azure.resource.jit_requests
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND jit_request_name = '{{ jit_request_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Retrieves all JIT requests within the resource group.
SELECT
id,
name,
applicationResourceId,
createdBy,
jitAuthorizationPolicies,
jitRequestState,
jitSchedulingPolicy,
location,
provisioningState,
publisherTenantId,
tags,
type,
updatedBy
FROM azure.resource.jit_requests
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Retrieves all JIT requests within the subscription.
SELECT
id,
name,
applicationResourceId,
createdBy,
jitAuthorizationPolicies,
jitRequestState,
jitSchedulingPolicy,
location,
provisioningState,
publisherTenantId,
tags,
type,
updatedBy
FROM azure.resource.jit_requests
WHERE subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates the JIT request.
INSERT INTO azure.resource.jit_requests (
location,
tags,
properties,
resource_group_name,
jit_request_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ jit_request_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;
# Description fields are for documentation purposes
- name: jit_requests
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the jit_requests resource.
- name: jit_request_name
value: "{{ jit_request_name }}"
description: Required parameter for the jit_requests resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the jit_requests resource.
- name: location
value: "{{ location }}"
description: |
Resource location.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: properties
value:
applicationResourceId: "{{ applicationResourceId }}"
jitAuthorizationPolicies:
- principalId: "{{ principalId }}"
roleDefinitionId: "{{ roleDefinitionId }}"
jitSchedulingPolicy:
type: "{{ type }}"
duration: "{{ duration }}"
startTime: "{{ startTime }}"
UPDATE examples
- update
Updates the JIT request.
UPDATE azure.resource.jit_requests
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND jit_request_name = '{{ jit_request_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;
REPLACE examples
- create_or_update
Creates or updates the JIT request.
REPLACE azure.resource.jit_requests
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND jit_request_name = '{{ jit_request_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;
DELETE examples
- delete
Deletes the JIT request.
DELETE FROM azure.resource.jit_requests
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND jit_request_name = '{{ jit_request_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;