service_endpoint_policy_definitions
Creates, updates, deletes, gets or lists a service_endpoint_policy_definitions
resource.
Overview
Name | service_endpoint_policy_definitions |
Type | Resource |
Id | azure.network.service_endpoint_policy_definitions |
Fields
- vw_service_endpoint_policy_definitions
- service_endpoint_policy_definitions
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
description | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
service | text | field from the properties object |
serviceEndpointPolicyDefinitionName | text | field from the properties object |
serviceEndpointPolicyName | text | field from the properties object |
service_resources | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Service Endpoint policy definition resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyName, subscriptionId | Get the specified service endpoint policy definitions from service endpoint policy. |
list_by_resource_group | SELECT | resourceGroupName, serviceEndpointPolicyName, subscriptionId | Gets all service endpoint policy definitions in a service end point policy. |
create_or_update | INSERT | resourceGroupName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyName, subscriptionId | Creates or updates a service endpoint policy definition in the specified service endpoint policy. |
delete | DELETE | resourceGroupName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyName, subscriptionId | Deletes the specified ServiceEndpoint policy definitions. |
SELECT
examples
Gets all service endpoint policy definitions in a service end point policy.
- vw_service_endpoint_policy_definitions
- service_endpoint_policy_definitions
SELECT
id,
name,
description,
etag,
provisioning_state,
resourceGroupName,
service,
serviceEndpointPolicyDefinitionName,
serviceEndpointPolicyName,
service_resources,
subscriptionId,
type
FROM azure.network.vw_service_endpoint_policy_definitions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceEndpointPolicyName = '{{ serviceEndpointPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.service_endpoint_policy_definitions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceEndpointPolicyName = '{{ serviceEndpointPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new service_endpoint_policy_definitions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.service_endpoint_policy_definitions (
resourceGroupName,
serviceEndpointPolicyDefinitionName,
serviceEndpointPolicyName,
subscriptionId,
properties,
name,
type,
id
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceEndpointPolicyDefinitionName }}',
'{{ serviceEndpointPolicyName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ type }}',
'{{ id }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: service
value: string
- name: serviceResources
value:
- string
- name: provisioningState
value: []
- name: name
value: string
- name: etag
value: string
- name: type
value: string
- name: id
value: string
DELETE
example
Deletes the specified service_endpoint_policy_definitions
resource.
/*+ delete */
DELETE FROM azure.network.service_endpoint_policy_definitions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceEndpointPolicyDefinitionName = '{{ serviceEndpointPolicyDefinitionName }}'
AND serviceEndpointPolicyName = '{{ serviceEndpointPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';