ip_communities
Creates, updates, deletes, gets or lists a ip_communities
resource.
Overview
Name | ip_communities |
Type | Resource |
Id | azure.managed_network_fabric.ip_communities |
Fields
- vw_ip_communities
- ip_communities
Name | Datatype | Description |
---|---|---|
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
configuration_state | text | field from the properties object |
ipCommunityName | text | field from the properties object |
ip_community_rules | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | IP Community Properties defines the resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | ipCommunityName, resourceGroupName, subscriptionId | Implements an IP Community GET method. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Implements IP Communities list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Implements IP Communities list by subscription GET method. |
create | INSERT | ipCommunityName, resourceGroupName, subscriptionId, data__properties | Implements an IP Community PUT method. |
delete | DELETE | ipCommunityName, resourceGroupName, subscriptionId | Implements IP Community DELETE method. |
update | UPDATE | ipCommunityName, resourceGroupName, subscriptionId | API to update certain properties of the IP Community resource. |
SELECT
examples
Implements IP Communities list by subscription GET method.
- vw_ip_communities
- ip_communities
SELECT
administrative_state,
annotation,
configuration_state,
ipCommunityName,
ip_community_rules,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_ip_communities
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.ip_communities
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new ip_communities
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.ip_communities (
ipCommunityName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ ipCommunityName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: annotation
value: string
- name: ipCommunityRules
value:
- - name: action
value: []
- name: sequenceNumber
value: integer
- name: wellKnownCommunities
value:
- string
- name: communityMembers
value:
- string
- name: configurationState
value: []
- name: provisioningState
value: []
- name: administrativeState
value: []
UPDATE
example
Updates a ip_communities
resource.
/*+ update */
UPDATE azure.managed_network_fabric.ip_communities
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
ipCommunityName = '{{ ipCommunityName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified ip_communities
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.ip_communities
WHERE ipCommunityName = '{{ ipCommunityName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';