Skip to main content

managed_gateways

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

Overview

Namemanaged_gateways
TypeResource
Idazure.scom.managed_gateways

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
computer_nametextfield from the properties object
connection_statustextfield from the properties object
domain_nametextfield from the properties object
health_statustextfield from the properties object
install_typetextfield from the properties object
instanceNametextfield from the properties object
managedGatewayNametextfield from the properties object
management_server_endpointtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
resource_locationtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstanceName, managedGatewayName, resourceGroupName, subscriptionIdRetrieve the details of the gateway resource.
create_or_updateINSERTinstanceName, managedGatewayName, resourceGroupName, subscriptionIdCreate or update a gateway resource.
deleteDELETEinstanceName, managedGatewayName, resourceGroupName, subscriptionIdRemove a gateway resource.

SELECT examples

Retrieve the details of the gateway resource.

SELECT
id,
name,
computer_name,
connection_status,
domain_name,
health_status,
install_type,
instanceName,
managedGatewayName,
management_server_endpoint,
provisioning_state,
resourceGroupName,
resource_id,
resource_location,
subscriptionId,
type,
version
FROM azure.scom.vw_managed_gateways
WHERE instanceName = '{{ instanceName }}'
AND managedGatewayName = '{{ managedGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.scom.managed_gateways (
instanceName,
managedGatewayName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ instanceName }}',
'{{ managedGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified managed_gateways resource.

/*+ delete */
DELETE FROM azure.scom.managed_gateways
WHERE instanceName = '{{ instanceName }}'
AND managedGatewayName = '{{ managedGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';