Skip to main content

jit_requests

Creates, updates, deletes, gets or lists a jit_requests resource.

Overview

Namejit_requests
TypeResource
Idazure.managed_applications.jit_requests

Fields

NameDatatypeDescription
idtextResource ID
nametextResource name
application_resource_idtextfield from the properties object
created_bytextfield from the properties object
jitRequestNametextfield from the properties object
jit_authorization_policiestextfield from the properties object
jit_request_statetextfield from the properties object
jit_scheduling_policytextfield from the properties object
locationtextResource location
provisioning_statetextfield from the properties object
publisher_tenant_idtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags
typetextResource type
updated_bytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjitRequestName, resourceGroupName, subscriptionIdGets the JIT request.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all JIT requests within the resource group.
list_by_subscriptionSELECTsubscriptionIdLists all JIT requests within the subscription.
create_or_updateINSERTjitRequestName, resourceGroupName, subscriptionIdCreates or updates the JIT request.
deleteDELETEjitRequestName, resourceGroupName, subscriptionIdDeletes the JIT request.
updateUPDATEjitRequestName, resourceGroupName, subscriptionIdUpdates the JIT request.

SELECT examples

Lists all JIT requests within the subscription.

SELECT
id,
name,
application_resource_id,
created_by,
jitRequestName,
jit_authorization_policies,
jit_request_state,
jit_scheduling_policy,
location,
provisioning_state,
publisher_tenant_id,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
updated_by
FROM azure.managed_applications.vw_jit_requests
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new jit_requests resource.

/*+ create */
INSERT INTO azure.managed_applications.jit_requests (
jitRequestName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ jitRequestName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a jit_requests resource.

/*+ update */
UPDATE azure.managed_applications.jit_requests
SET
tags = '{{ tags }}'
WHERE
jitRequestName = '{{ jitRequestName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified jit_requests resource.

/*+ delete */
DELETE FROM azure.managed_applications.jit_requests
WHERE jitRequestName = '{{ jitRequestName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';