service_configurations
Creates, updates, deletes, gets or lists a service_configurations
resource.
Overview
Name | service_configurations |
Type | Resource |
Id | azure.hybrid_connectivity.service_configurations |
Fields
- vw_service_configurations
- service_configurations
Name | Datatype | Description |
---|---|---|
endpointName | text | field from the properties object |
port | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
resource_id | text | field from the properties object |
serviceConfigurationName | text | field from the properties object |
service_name | text | field from the properties object |
system_data | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Service configuration details |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | endpointName, resourceUri, serviceConfigurationName | Gets the details about the service to the resource. |
list_by_endpoint_resource | SELECT | endpointName, resourceUri | API to enumerate registered services in service configurations under a Endpoint Resource |
create_orupdate | INSERT | endpointName, resourceUri, serviceConfigurationName | Create or update a service in serviceConfiguration for the endpoint resource. |
delete | DELETE | endpointName, resourceUri, serviceConfigurationName | Deletes the service details to the target resource. |
update | UPDATE | endpointName, resourceUri, serviceConfigurationName | Update 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
- vw_service_configurations
- service_configurations
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 }}';
SELECT
properties,
systemData
FROM azure.hybrid_connectivity.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.hybrid_connectivity.service_configurations (
endpointName,
resourceUri,
serviceConfigurationName,
systemData,
properties
)
SELECT
'{{ endpointName }}',
'{{ resourceUri }}',
'{{ serviceConfigurationName }}',
'{{ systemData }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: serviceName
value: string
- name: resourceId
value: string
- name: port
value: integer
- name: provisioningState
value: string
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 }}';