Adaptive Network Hardenings - List By Extended Resource
取得擴充資源範圍內的自適性網路強化資源清單。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings?api-version=2020-01-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
用戶訂用帳戶內的資源組名。 名稱不區分大小寫。 Regex pattern: |
resource
|
path | True |
string |
資源名稱。 |
resource
|
path | True |
string |
資源的命名空間。 |
resource
|
path | True |
string |
資源類型。 |
subscription
|
path | True |
string |
Azure 訂用帳戶識別碼 Regex pattern: |
api-version
|
query | True |
string |
作業的 API 版本 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
List Adaptive Network Hardenings resources of an extended resource
Sample Request
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/adaptiveNetworkHardenings?api-version=2020-01-01
Sample Response
{
"value": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/adaptiveNetworkHardenings/default",
"name": "default",
"type": "Microsoft.Security/adaptiveNetworkHardenings",
"properties": {
"rulesCalculationTime": "2018-08-15T00:00:00.0000000Z",
"rules": [
{
"name": "rule1",
"direction": "Inbound",
"destinationPort": 3389,
"protocols": [
"TCP"
],
"ipAddresses": [
"100.10.1.1",
"200.20.2.2",
"81.199.3.0/24"
]
},
{
"name": "rule2",
"direction": "Inbound",
"destinationPort": 22,
"protocols": [
"TCP"
],
"ipAddresses": []
}
],
"effectiveNetworkSecurityGroups": [
{
"networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1",
"networkSecurityGroups": [
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg",
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/subnetNsg"
]
},
{
"networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic2",
"networkSecurityGroups": [
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg2"
]
}
]
}
}
]
}
定義
名稱 | Description |
---|---|
Adaptive |
其屬性描述某些 Azure 資源的自適性網路強化設定的資源 |
Adaptive |
ListAdaptiveNetworkHardenings API 服務呼叫的回應 |
Cloud |
所有 Azure Resource Manager API 的常見錯誤回應,以傳回失敗作業的錯誤詳細數據。 (這也會遵循 OData 錯誤回應格式。) 。 |
Cloud |
錯誤詳細數據。 |
direction |
規則的方向 |
Effective |
描述網路介面上有效的網路安全組 |
Error |
資源管理錯誤其他資訊。 |
Rule |
描述建議在某些 (通訊協定、埠、方向) 上與 Azure 資源通訊的遠端位址。 建議封鎖所有其他遠端位址 |
transport |
規則的傳輸通訊協定 |
AdaptiveNetworkHardening
其屬性描述某些 Azure 資源的自適性網路強化設定的資源
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼 |
name |
string |
資源名稱 |
properties.effectiveNetworkSecurityGroups |
受保護資源網路介面的有效網路安全組 |
|
properties.rules |
Rule[] |
建議在 VM 上生效的安全性規則 |
properties.rulesCalculationTime |
string |
計算規則的 UTC 時間 |
type |
string |
資源類型 |
AdaptiveNetworkHardeningsList
ListAdaptiveNetworkHardenings API 服務呼叫的回應
名稱 | 類型 | Description |
---|---|---|
nextLink |
string |
要取得下一組結果的URL |
value |
自適性網路強化資源的清單 |
CloudError
所有 Azure Resource Manager API 的常見錯誤回應,以傳回失敗作業的錯誤詳細數據。 (這也會遵循 OData 錯誤回應格式。) 。
名稱 | 類型 | Description |
---|---|---|
error.additionalInfo |
錯誤其他資訊。 |
|
error.code |
string |
錯誤碼。 |
error.details |
錯誤詳細資料。 |
|
error.message |
string |
錯誤訊息。 |
error.target |
string |
錯誤目標。 |
CloudErrorBody
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細資料。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
direction
規則的方向
名稱 | 類型 | Description |
---|---|---|
Inbound |
string |
|
Outbound |
string |
EffectiveNetworkSecurityGroups
描述網路介面上有效的網路安全組
名稱 | 類型 | Description |
---|---|---|
networkInterface |
string |
網路介面的 Azure 資源識別碼 |
networkSecurityGroups |
string[] |
網路介面上有效的網路安全組 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
Rule
描述建議在某些 (通訊協定、埠、方向) 上與 Azure 資源通訊的遠端位址。 建議封鎖所有其他遠端位址
名稱 | 類型 | Description |
---|---|---|
destinationPort |
integer |
規則的目的地埠 |
direction |
規則的方向 |
|
ipAddresses |
string[] |
應該能夠與規則目的地埠和通訊協定上的 Azure 資源通訊的遠端 IP 位址 |
name |
string |
規則的名稱 |
protocols |
規則的傳輸通訊協定 |
transportProtocol
規則的傳輸通訊協定
名稱 | 類型 | Description |
---|---|---|
TCP |
string |
|
UDP |
string |