Skip to main content

topology

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

Overview

Nametopology
TypeResource
Idazure.security.topology

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
calculatedDateTimestring (date-time)The UTC time on which the topology was calculated.
locationstringLocation where the resource is stored. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
topologyResourcesarrayAzure resources which are part of this topology resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, asc_location, topology_resource_name, subscription_idGets a specific topology component.
list_by_home_regionselectasc_location, subscription_idGets a list that allows to build a topology view of a subscription and location.
listselectsubscription_idGets a list that allows to build a topology view of a subscription.

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
asc_locationstringThe location where ASC stores the data of the subscription. can be retrieved from Get locations. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
topology_resource_namestringName of a topology resources collection. Required.

SELECT examples

Gets a specific topology component.

SELECT
id,
name,
calculatedDateTime,
location,
systemData,
topologyResources,
type
FROM azure.security.topology
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND asc_location = '{{ asc_location }}' -- required
AND topology_resource_name = '{{ topology_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;