Skip to main content

job_private_endpoints

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

Overview

Namejob_private_endpoints
TypeResource
Idazure.sql.job_private_endpoints

Fields

NameDatatypeDescription
jobAgentNametextfield from the properties object
privateEndpointNametextfield from the properties object
private_endpoint_idtextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object
target_server_azure_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobAgentName, privateEndpointName, resourceGroupName, serverName, subscriptionIdGets a private endpoint.
list_by_agentSELECTjobAgentName, resourceGroupName, serverName, subscriptionIdGets a list of job agent private endpoints.
create_or_updateINSERTjobAgentName, privateEndpointName, resourceGroupName, serverName, subscriptionIdCreates or updates a private endpoint.
deleteDELETEjobAgentName, privateEndpointName, resourceGroupName, serverName, subscriptionIdDeletes a private endpoint.

SELECT examples

Gets a list of job agent private endpoints.

SELECT
jobAgentName,
privateEndpointName,
private_endpoint_id,
resourceGroupName,
serverName,
subscriptionId,
target_server_azure_resource_id
FROM azure.sql.vw_job_private_endpoints
WHERE jobAgentName = '{{ jobAgentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.job_private_endpoints (
jobAgentName,
privateEndpointName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ jobAgentName }}',
'{{ privateEndpointName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified job_private_endpoints resource.

/*+ delete */
DELETE FROM azure.sql.job_private_endpoints
WHERE jobAgentName = '{{ jobAgentName }}'
AND privateEndpointName = '{{ privateEndpointName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';