Skip to main content

service_registries

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

Overview

Nameservice_registries
TypeResource
Idazure.spring_apps.service_registries

Fields

NameDatatypeDescription
instancestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_requeststextfield from the properties object
serviceNametextfield from the properties object
serviceRegistryNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceName, serviceRegistryName, subscriptionIdGet the Service Registry and its properties.
listSELECTresourceGroupName, serviceName, subscriptionIdHandles requests to list all resources in a Service.
create_or_updateINSERTresourceGroupName, serviceName, serviceRegistryName, subscriptionIdCreate the default Service Registry or update the existing Service Registry.
deleteDELETEresourceGroupName, serviceName, serviceRegistryName, subscriptionIdDisable the default Service Registry.

SELECT examples

Handles requests to list all resources in a Service.

SELECT
instances,
provisioning_state,
resourceGroupName,
resource_requests,
serviceName,
serviceRegistryName,
subscriptionId
FROM azure.spring_apps.vw_service_registries
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.service_registries (
resourceGroupName,
serviceName,
serviceRegistryName,
subscriptionId
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ serviceRegistryName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified service_registries resource.

/*+ delete */
DELETE FROM azure.spring_apps.service_registries
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND serviceRegistryName = '{{ serviceRegistryName }}'
AND subscriptionId = '{{ subscriptionId }}';