Skip to main content

service_endpoint_policy_definitions

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

Overview

Nameservice_endpoint_policy_definitions
TypeResource
Idazure.network.service_endpoint_policy_definitions

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
descriptiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
servicetextfield from the properties object
serviceEndpointPolicyDefinitionNametextfield from the properties object
serviceEndpointPolicyNametextfield from the properties object
service_resourcestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyName, subscriptionIdGet the specified service endpoint policy definitions from service endpoint policy.
list_by_resource_groupSELECTresourceGroupName, serviceEndpointPolicyName, subscriptionIdGets all service endpoint policy definitions in a service end point policy.
create_or_updateINSERTresourceGroupName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyName, subscriptionIdCreates or updates a service endpoint policy definition in the specified service endpoint policy.
deleteDELETEresourceGroupName, serviceEndpointPolicyDefinitionName, serviceEndpointPolicyName, subscriptionIdDeletes the specified ServiceEndpoint policy definitions.

SELECT examples

Gets all service endpoint policy definitions in a service end point policy.

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 }}';

INSERT example

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

/*+ 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 }}'
;

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 }}';