-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
PublicEndpoint_AINE.json
71 lines (71 loc) · 2.26 KB
/
PublicEndpoint_AINE.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"properties": {
"displayName": "API Management should disable public network access to the service configuration endpoints",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "To improve the security of API Management services, restrict connectivity to service configuration endpoints, like direct access management API, Git configuration management endpoint, or self-hosted gateways configuration endpoint.",
"metadata": {
"version": "1.0.1",
"category": "API Management"
},
"version": "1.0.1",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
},
"endpointType": {
"type": "String",
"metadata": {
"displayName": "Public Endpoint Type",
"description": "Public Endpoint Type for which to enforce the access check"
},
"allowedValues": [
"Management",
"Git",
"Gateway Configuration"
],
"defaultValue": "Management"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.ApiManagement/service"
},
{
"field": "Microsoft.ApiManagement/service/sku.name",
"notEquals": "Consumption"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.ApiManagement/service/tenant",
"name": "[if(equals(parameters('endpointType'), 'Management'), 'access', if(equals(parameters('endpointType'), 'Git'), 'gitaccess', 'gatewayaccess'))]",
"evaluationDelay": "AfterProvisioningSuccess",
"existenceCondition": {
"field": "Microsoft.ApiManagement/service/tenant/enabled",
"equals": false
}
}
}
},
"versions": [
"1.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/df73bd95-24da-4a4f-96b9-4e8b94b402bd",
"name": "df73bd95-24da-4a4f-96b9-4e8b94b402bd"
}