Skip to main content

service_endpoints

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

Overview

Nameservice_endpoints
TypeResource
Idazure_extras.intelligent_recommendations.service_endpoints

Fields

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectServiceEndpoint resource properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, serviceEndpointName, subscriptionIdReturns ServiceEndpoint resources for a given name.
list_by_account_resourceSELECTaccountName, resourceGroupName, subscriptionIdReturns list of ServiceEndpoint resources for a given Account name.
create_or_updateINSERTaccountName, resourceGroupName, serviceEndpointName, subscriptionIdCreates or updates ServiceEndpoint resource.
deleteDELETEaccountName, resourceGroupName, serviceEndpointName, subscriptionIdDeletes ServiceEndpoint resources of a given name.
updateUPDATEaccountName, resourceGroupName, serviceEndpointName, subscriptionIdUpdates ServiceEndpoint resource details.

SELECT examples

Returns list of ServiceEndpoint resources for a given Account name.

SELECT
location,
properties,
systemData,
tags
FROM azure_extras.intelligent_recommendations.service_endpoints
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.intelligent_recommendations.service_endpoints (
accountName,
resourceGroupName,
serviceEndpointName,
subscriptionId,
tags,
location,
properties,
systemData
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ serviceEndpointName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a service_endpoints resource.

/*+ update */
UPDATE azure_extras.intelligent_recommendations.service_endpoints
SET
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceEndpointName = '{{ serviceEndpointName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified service_endpoints resource.

/*+ delete */
DELETE FROM azure_extras.intelligent_recommendations.service_endpoints
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceEndpointName = '{{ serviceEndpointName }}'
AND subscriptionId = '{{ subscriptionId }}';