Skip to main content

config_servers

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

Overview

Nameconfig_servers
TypeResource
Idazure.spring_apps.config_servers

Fields

The following fields are returned by SELECT queries:

Success. The response describes the corresponding Config Server.

NameDatatypeDescription
propertiesobjectProperties of the Config Server resource

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceNameGet the config server and its properties.
listselectsubscriptionId, resourceGroupName, serviceNameHandles requests to list all config server resources in a Service.
deletedeletesubscriptionId, resourceGroupName, serviceNameDisable the default Config Server, only available in Enterprise Plan.
update_putexecsubscriptionId, resourceGroupName, serviceNameUpdate the config server.
update_patchexecsubscriptionId, resourceGroupName, serviceNameUpdate the config server.
validateexecsubscriptionId, resourceGroupName, serviceNameCheck if the config server settings are valid.

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
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serviceNamestringThe name of the Service resource.
subscriptionIdstringGets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get the config server and its properties.

SELECT
properties
FROM azure.spring_apps.config_servers
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
;

DELETE examples

Disable the default Config Server, only available in Enterprise Plan.

DELETE FROM azure.spring_apps.config_servers
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
;

Lifecycle Methods

Update the config server.

EXEC azure.spring_apps.config_servers.update_put 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;