Skip to main content

service_endpoint_policies

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

Overview

Nameservice_endpoint_policies
TypeResource
Idazure.network.service_endpoint_policies

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
contextual_service_endpoint_policiestextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
kindtextKind of service endpoint policy. This is metadata used for the Azure portal experience.
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
serviceEndpointPolicyNametextfield from the properties object
service_aliastextfield from the properties object
service_endpoint_policy_definitionstextfield from the properties object
subnetstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceEndpointPolicyName, subscriptionIdGets the specified service Endpoint Policies in a specified resource group.
listSELECTsubscriptionIdGets all the service endpoint policies in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all service endpoint Policies in a resource group.
create_or_updateINSERTresourceGroupName, serviceEndpointPolicyName, subscriptionIdCreates or updates a service Endpoint Policies.
deleteDELETEresourceGroupName, serviceEndpointPolicyName, subscriptionIdDeletes the specified service endpoint policy.
update_tagsEXECresourceGroupName, serviceEndpointPolicyName, subscriptionIdUpdates tags of a service endpoint policy.

SELECT examples

Gets all the service endpoint policies in a subscription.

SELECT
id,
name,
contextual_service_endpoint_policies,
etag,
kind,
location,
provisioning_state,
resourceGroupName,
resource_guid,
serviceEndpointPolicyName,
service_alias,
service_endpoint_policy_definitions,
subnets,
subscriptionId,
tags,
type
FROM azure.network.vw_service_endpoint_policies
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.service_endpoint_policies (
resourceGroupName,
serviceEndpointPolicyName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceEndpointPolicyName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified service_endpoint_policies resource.

/*+ delete */
DELETE FROM azure.network.service_endpoint_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceEndpointPolicyName = '{{ serviceEndpointPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';