Allowed Connections - Get
Hiermee haalt u de lijst op van alle mogelijke verkeer tussen resources voor het abonnement en de locatie, op basis van het verbindingstype.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections/{connectionType}?api-version=2020-01-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
asc
|
path | True |
string |
De locatie waar ASC de gegevens van het abonnement opslaat. kan worden opgehaald uit Get-locaties |
connection
|
path | True |
Het type toegestane verbindingen (intern, extern) |
|
resource
|
path | True |
string |
De naam van de resourcegroep binnen het abonnement van de gebruiker. De naam is niet hoofdlettergevoelig. Regex-patroon: |
subscription
|
path | True |
string |
Azure-abonnements-id Regex-patroon: |
api-version
|
query | True |
string |
API-versie voor de bewerking |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Get allowed connections
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal?api-version=2020-01-01
Voorbeeldrespons
{
"type": "Microsoft.Security/locations/allowedConnections",
"properties": {
"calculatedDateTime": "2018-08-06T14:55:32.3518545Z",
"connectableResources": [
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3",
"inboundConnectedResources": [],
"outboundConnectedResources": []
}
]
},
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal",
"name": "Internal",
"location": "centralus"
}
Definities
Name | Description |
---|---|
Allowed |
De resource waarvan de eigenschappen het toegestane verkeer tussen Azure-resources beschrijven |
Cloud |
Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.) |
Cloud |
De foutdetails. |
Connectable |
Beschrijft het toegestane inkomende en uitgaande verkeer van een Azure-resource |
Connected |
Beschrijft eigenschappen van een verbonden resource |
connection |
Het type toegestane verbindingen (intern, extern) |
Error |
Aanvullende informatie over de resourcebeheerfout. |
AllowedConnectionsResource
De resource waarvan de eigenschappen het toegestane verkeer tussen Azure-resources beschrijven
Name | Type | Description |
---|---|---|
id |
string |
Resource-id |
location |
string |
Locatie waar de resource is opgeslagen |
name |
string |
Resourcenaam |
properties.calculatedDateTime |
string |
De UTC-tijd waarop de toegestane verbindingsresource is berekend |
properties.connectableResources |
Lijst met koppelbare resources |
|
type |
string |
Resourcetype |
CloudError
Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.)
Name | Type | Description |
---|---|---|
error.additionalInfo |
De fout bevat aanvullende informatie. |
|
error.code |
string |
De foutcode. |
error.details |
De foutdetails. |
|
error.message |
string |
Het foutbericht. |
error.target |
string |
Het foutdoel. |
CloudErrorBody
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ConnectableResource
Beschrijft het toegestane inkomende en uitgaande verkeer van een Azure-resource
Name | Type | Description |
---|---|---|
id |
string |
De Azure-resource-id |
inboundConnectedResources |
De lijst met Azure-resources waarvan de resource een binnenkomende verbinding heeft toegestaan |
|
outboundConnectedResources |
De lijst met Azure-resources waarmee de resource een uitgaande verbinding heeft toegestaan |
ConnectedResource
Beschrijft eigenschappen van een verbonden resource
Name | Type | Description |
---|---|---|
connectedResourceId |
string |
De Azure-resource-id van de verbonden resource |
tcpPorts |
string |
De toegestane TCP-poorten |
udpPorts |
string |
De toegestane udp-poorten |
connectionType
Het type toegestane verbindingen (intern, extern)
Name | Type | Description |
---|---|---|
External |
string |
|
Internal |
string |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |