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

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting ServiceEndpointPolicy resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
kindstringKind of service endpoint policy. This is metadata used for the Azure portal experience.
propertiesobjectProperties of the service end point policy.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceEndpointPolicyName, subscriptionId$expandGets the specified service Endpoint Policies in a specified resource group.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all service endpoint Policies in a resource group.
listselectsubscriptionIdGets all the service endpoint policies in a subscription.
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.

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.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group.
serviceEndpointPolicyNamestringThe name of the service endpoint policy.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

Gets the specified service Endpoint Policies in a specified resource group.

SELECT
id,
name,
etag,
kind,
properties,
systemData,
type
FROM azure.network.service_endpoint_policies
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceEndpointPolicyName = '{{ serviceEndpointPolicyName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a service Endpoint Policies.

INSERT INTO azure.network.service_endpoint_policies (
data__properties,
resourceGroupName,
serviceEndpointPolicyName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceEndpointPolicyName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
kind,
properties,
systemData,
type
;

DELETE examples

Deletes the specified service endpoint policy.

DELETE FROM azure.network.service_endpoint_policies
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceEndpointPolicyName = '{{ serviceEndpointPolicyName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates tags of a service endpoint policy.

EXEC azure.network.service_endpoint_policies.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@serviceEndpointPolicyName='{{ serviceEndpointPolicyName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;