Skip to main content

service_registries

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

Overview​

Nameservice_registries
TypeResource
Idazure_extras.app_platform.service_registries

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringThe name of the resource.
instancesarrayCollection of instances belong to Service Registry.
provisioningStatestringState of the Service Registry. Known values are: "Creating", "Updating", "Succeeded", "Failed", and "Deleting".
resourceRequestsobjectThe requested resource quantity for required CPU and Memory.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, service_registry_name, subscription_idGet the Service Registry and its properties.
listselectresource_group_name, service_name, subscription_idHandles requests to list all resources in a Service.
create_or_updateinsertresource_group_name, service_name, service_registry_name, subscription_idCreate the default Service Registry or update the existing Service Registry.
create_or_updatereplaceresource_group_name, service_name, service_registry_name, subscription_idCreate the default Service Registry or update the existing Service Registry.
deletedeleteresource_group_name, service_name, service_registry_name, subscription_idDisable the default Service Registry.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.
service_namestringThe name of the Service resource. Required.
service_registry_namestringThe name of Service Registry. Required.
subscription_idstring

SELECT examples​

Get the Service Registry and its properties.

SELECT
id,
name,
instances,
provisioningState,
resourceRequests,
systemData,
type
FROM azure_extras.app_platform.service_registries
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND service_registry_name = '{{ service_registry_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Create the default Service Registry or update the existing Service Registry.

INSERT INTO azure_extras.app_platform.service_registries (
resource_group_name,
service_name,
service_registry_name,
subscription_id
)
SELECT
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ service_registry_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples​

Create the default Service Registry or update the existing Service Registry.

REPLACE azure_extras.app_platform.service_registries
SET
-- No updatable properties
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND service_registry_name = '{{ service_registry_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples​

Disable the default Service Registry.

DELETE FROM azure_extras.app_platform.service_registries
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND service_registry_name = '{{ service_registry_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;