application_security_groups
Creates, updates, deletes, gets or lists an application_security_groups resource.
Overview
| Name | application_security_groups |
| Type | Resource |
| Id | azure.network.application_security_groups |
Fields
The following fields are returned by SELECT queries:
- get
- list
- list_all
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
provisioningState | string | The provisioning state of the application security group resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
resourceGuid | string | The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. |
tags | object | Resource tags. |
type | string | Resource type. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
provisioningState | string | The provisioning state of the application security group resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
resourceGuid | string | The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. |
tags | object | Resource tags. |
type | string | Resource type. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
provisioningState | string | The provisioning state of the application security group resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
resourceGuid | string | The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, application_security_group_name, subscription_id | Gets information about the specified application security group. | |
list | select | resource_group_name, subscription_id | Gets all the application security groups in a resource group. | |
list_all | select | subscription_id | Gets all application security groups in a subscription. | |
create_or_update | insert | resource_group_name, application_security_group_name, subscription_id | Creates or updates an application security group. | |
update_tags | update | resource_group_name, application_security_group_name, subscription_id | Updates an application security group's tags. | |
create_or_update | replace | resource_group_name, application_security_group_name, subscription_id | Creates or updates an application security group. | |
delete | delete | resource_group_name, application_security_group_name, subscription_id | Deletes the specified application security group. |
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 |
|---|---|---|
application_security_group_name | string | The name of the application security group. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
- list_all
Gets information about the specified application security group.
SELECT
id,
name,
etag,
location,
provisioningState,
resourceGuid,
tags,
type
FROM azure.network.application_security_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND application_security_group_name = '{{ application_security_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all the application security groups in a resource group.
SELECT
id,
name,
etag,
location,
provisioningState,
resourceGuid,
tags,
type
FROM azure.network.application_security_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all application security groups in a subscription.
SELECT
id,
name,
etag,
location,
provisioningState,
resourceGuid,
tags,
type
FROM azure.network.application_security_groups
WHERE subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates an application security group.
INSERT INTO azure.network.application_security_groups (
id,
location,
tags,
properties,
resource_group_name,
application_security_group_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ application_security_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;
# Description fields are for documentation purposes
- name: application_security_groups
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the application_security_groups resource.
- name: application_security_group_name
value: "{{ application_security_group_name }}"
description: Required parameter for the application_security_groups resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the application_security_groups resource.
- name: id
value: "{{ id }}"
description: |
Resource ID.
- name: location
value: "{{ location }}"
description: |
Resource location.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: properties
description: |
Properties of the application security group.
value:
resourceGuid: "{{ resourceGuid }}"
provisioningState: "{{ provisioningState }}"
UPDATE examples
- update_tags
Updates an application security group's tags.
UPDATE azure.network.application_security_groups
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_security_group_name = '{{ application_security_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;
REPLACE examples
- create_or_update
Creates or updates an application security group.
REPLACE azure.network.application_security_groups
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND application_security_group_name = '{{ application_security_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;
DELETE examples
- delete
Deletes the specified application security group.
DELETE FROM azure.network.application_security_groups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND application_security_group_name = '{{ application_security_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;