Skip to main content

endpoints

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

Overview

Nameendpoints
TypeResource
Idazure.hybrid_connectivity.endpoints

Fields

NameDatatypeDescription
endpointNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
resource_idtextfield from the properties object
system_datatextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTendpointName, resourceUriGets the endpoint to the resource.
listSELECTresourceUriList of endpoints to the target resource.
list_ingress_gateway_credentialsSELECTendpointName, resourceUriGets the ingress gateway endpoint credentials
create_or_updateINSERTendpointName, resourceUriCreate or update the endpoint to the target resource.
deleteDELETEendpointName, resourceUriDeletes the endpoint access to the target resource.
updateUPDATEendpointName, resourceUriUpdate the endpoint to the target resource.

SELECT examples

List of endpoints to the target resource.

SELECT
endpointName,
provisioning_state,
resourceUri,
resource_id,
system_data,
type
FROM azure.hybrid_connectivity.vw_endpoints
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_connectivity.endpoints (
endpointName,
resourceUri,
systemData,
properties
)
SELECT
'{{ endpointName }}',
'{{ resourceUri }}',
'{{ systemData }}',
'{{ properties }}'
;

UPDATE example

Updates a endpoints resource.

/*+ update */
UPDATE azure.hybrid_connectivity.endpoints
SET
systemData = '{{ systemData }}',
properties = '{{ properties }}'
WHERE
endpointName = '{{ endpointName }}'
AND resourceUri = '{{ resourceUri }}';

DELETE example

Deletes the specified endpoints resource.

/*+ delete */
DELETE FROM azure.hybrid_connectivity.endpoints
WHERE endpointName = '{{ endpointName }}'
AND resourceUri = '{{ resourceUri }}';