Skip to main content

service_configurations

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

Overview

Nameservice_configurations
TypeResource
Idazure.hybrid_connectivity.service_configurations

Fields

NameDatatypeDescription
endpointNametextfield from the properties object
porttextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
resource_idtextfield from the properties object
serviceConfigurationNametextfield from the properties object
service_nametextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTendpointName, resourceUri, serviceConfigurationNameGets the details about the service to the resource.
list_by_endpoint_resourceSELECTendpointName, resourceUriAPI to enumerate registered services in service configurations under a Endpoint Resource
create_orupdateINSERTendpointName, resourceUri, serviceConfigurationNameCreate or update a service in serviceConfiguration for the endpoint resource.
deleteDELETEendpointName, resourceUri, serviceConfigurationNameDeletes the service details to the target resource.
updateUPDATEendpointName, resourceUri, serviceConfigurationNameUpdate the service details in the service configurations of the target resource.

SELECT examples

API to enumerate registered services in service configurations under a Endpoint Resource

SELECT
endpointName,
port,
provisioning_state,
resourceUri,
resource_id,
serviceConfigurationName,
service_name,
system_data
FROM azure.hybrid_connectivity.vw_service_configurations
WHERE endpointName = '{{ endpointName }}'
AND resourceUri = '{{ resourceUri }}';

INSERT example

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

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

UPDATE example

Updates a service_configurations resource.

/*+ update */
UPDATE azure.hybrid_connectivity.service_configurations
SET
properties = '{{ properties }}'
WHERE
endpointName = '{{ endpointName }}'
AND resourceUri = '{{ resourceUri }}'
AND serviceConfigurationName = '{{ serviceConfigurationName }}';

DELETE example

Deletes the specified service_configurations resource.

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