Topology - List By Home Region
Gets a list that allows to build a topology view of a subscription and location.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies?api-version=2020-01-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
asc
|
path | True |
string |
The location where ASC stores the data of the subscription. can be retrieved from Get locations |
|
subscription
|
path | True |
string pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$ |
Azure subscription ID |
|
api-version
|
query | True |
string |
API version for the operation |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Get topology on a subscription from security data location
Sample request
Sample response
{
"value": [
{
"properties": {
"calculatedDateTime": "2018-07-10T13:56:10.5755270Z",
"topologyResources": [
{
"resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet",
"severity": "Healthy",
"networkZones": "Internal",
"recommendationsExist": false,
"topologyScore": 0,
"location": "westus",
"children": [
{
"resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet"
}
]
}
]
},
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets",
"name": "vnets",
"type": "Microsoft.Security/locations/topologies",
"location": "westus"
},
{
"properties": {
"calculatedDateTime": "2018-07-10T13:56:10.5755270Z",
"topologyResources": [
{
"resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet",
"severity": "Healthy",
"networkZones": "Internal",
"recommendationsExist": false,
"topologyScore": 5,
"location": "westus",
"parents": [
{
"resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet"
}
]
}
]
},
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/subnets",
"name": "subnets",
"type": "Microsoft.Security/locations/topologies",
"location": "westus"
}
]
}
Definitions
| Name | Description |
|---|---|
|
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
|
Cloud |
The error detail. |
|
Error |
The resource management error additional info. |
|
Topology |
|
|
Topology |
|
|
Topology |
|
|
Topology |
|
|
Topology |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
| Name | Type | Description |
|---|---|---|
| error.additionalInfo |
The error additional info. |
|
| error.code |
string |
The error code. |
| error.details |
The error details. |
|
| error.message |
string |
The error message. |
| error.target |
string |
The error target. |
CloudErrorBody
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
TopologyList
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
The URI to fetch the next page. |
| value |
TopologyResource
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource Id |
| location |
string |
Location where the resource is stored |
| name |
string |
Resource name |
| properties.calculatedDateTime |
string (date-time) |
The UTC time on which the topology was calculated |
| properties.topologyResources |
Azure resources which are part of this topology resource |
|
| type |
string |
Resource type |
TopologySingleResource
| Name | Type | Description |
|---|---|---|
| children |
Azure resources connected to this resource which are in lower level in the topology view |
|
| location |
string |
The location of this resource |
| networkZones |
string |
Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) |
| parents |
Azure resources connected to this resource which are in higher level in the topology view |
|
| recommendationsExist |
boolean |
Indicates if the resource has security recommendations |
| resourceId |
string |
Azure resource id |
| severity |
string |
The security severity of the resource |
| topologyScore |
integer |
Score of the resource based on its security severity |
TopologySingleResourceChild
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
Azure resource id which serves as child resource in topology view |
TopologySingleResourceParent
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
Azure resource id which serves as parent resource in topology view |