Skip to main content

registered_servers

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

Overview

Nameregistered_servers
TypeResource
Idazure.storage_sync.registered_servers

Fields

NameDatatypeDescription
active_auth_typetextfield from the properties object
agent_versiontextfield from the properties object
agent_version_expiration_datetextfield from the properties object
agent_version_statustextfield from the properties object
application_idtextfield from the properties object
cluster_idtextfield from the properties object
cluster_nametextfield from the properties object
discovery_endpoint_uritextfield from the properties object
friendly_nametextfield from the properties object
identitytextfield from the properties object
last_heart_beattextfield from the properties object
last_operation_nametextfield from the properties object
last_workflow_idtextfield from the properties object
latest_application_idtextfield from the properties object
management_endpoint_uritextfield from the properties object
monitoring_configurationtextfield from the properties object
monitoring_endpoint_uritextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_locationtextfield from the properties object
serverIdtextfield from the properties object
server_certificatetextfield from the properties object
server_idtextfield from the properties object
server_management_error_codetextfield from the properties object
server_nametextfield from the properties object
server_os_versiontextfield from the properties object
server_roletextfield from the properties object
service_locationtextfield from the properties object
storageSyncServiceNametextfield from the properties object
storage_sync_service_uidtextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serverId, storageSyncServiceName, subscriptionIdGet a given registered server.
list_by_storage_sync_serviceSELECTresourceGroupName, storageSyncServiceName, subscriptionIdGet a given registered server list.
createINSERTresourceGroupName, serverId, storageSyncServiceName, subscriptionIdAdd a new registered server.
deleteDELETEresourceGroupName, serverId, storageSyncServiceName, subscriptionIdDelete the given registered server.
updateUPDATEresourceGroupName, serverId, storageSyncServiceName, subscriptionIdUpdate registered server.
trigger_rolloverEXECresourceGroupName, serverId, storageSyncServiceName, subscriptionIdTriggers Server certificate rollover.

SELECT examples

Get a given registered server list.

SELECT
active_auth_type,
agent_version,
agent_version_expiration_date,
agent_version_status,
application_id,
cluster_id,
cluster_name,
discovery_endpoint_uri,
friendly_name,
identity,
last_heart_beat,
last_operation_name,
last_workflow_id,
latest_application_id,
management_endpoint_uri,
monitoring_configuration,
monitoring_endpoint_uri,
provisioning_state,
resourceGroupName,
resource_location,
serverId,
server_certificate,
server_id,
server_management_error_code,
server_name,
server_os_version,
server_role,
service_location,
storageSyncServiceName,
storage_sync_service_uid,
subscriptionId
FROM azure.storage_sync.vw_registered_servers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_sync.registered_servers (
resourceGroupName,
serverId,
storageSyncServiceName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serverId }}',
'{{ storageSyncServiceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a registered_servers resource.

/*+ update */
UPDATE azure.storage_sync.registered_servers
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND serverId = '{{ serverId }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified registered_servers resource.

/*+ delete */
DELETE FROM azure.storage_sync.registered_servers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverId = '{{ serverId }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';