applications
Creates, updates, deletes, gets or lists a applications
resource.
Overview
Name | applications |
Type | Resource |
Id | azure.security.applications |
Fields
- vw_applications
- applications
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
description | text | field from the properties object |
applicationId | text | field from the properties object |
condition_sets | text | field from the properties object |
display_name | text | field from the properties object |
source_resource_type | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | Describes properties of an application |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | applicationId, subscriptionId | Get a specific application for the requested scope by applicationId |
list | SELECT | subscriptionId | Get a list of all relevant applications over a subscription level scope |
create_or_update | INSERT | applicationId, subscriptionId | Creates or update a security application on the given subscription. |
delete | DELETE | applicationId, subscriptionId | Delete an Application over a given scope |
SELECT
examples
Get a list of all relevant applications over a subscription level scope
- vw_applications
- applications
SELECT
id,
name,
description,
applicationId,
condition_sets,
display_name,
source_resource_type,
subscriptionId,
type
FROM azure.security.vw_applications
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure.security.applications
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new applications
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.security.applications (
applicationId,
subscriptionId,
properties
)
SELECT
'{{ applicationId }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: displayName
value: string
- name: description
value: string
- name: sourceResourceType
value: string
- name: conditionSets
value:
- []
- name: id
value: string
- name: name
value: string
- name: type
value: string
DELETE
example
Deletes the specified applications
resource.
/*+ delete */
DELETE FROM azure.security.applications
WHERE applicationId = '{{ applicationId }}'
AND subscriptionId = '{{ subscriptionId }}';