forked from microsoft/azure-api-management-monetization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapimmonetization-products.bicep
168 lines (152 loc) · 4.31 KB
/
apimmonetization-products.bicep
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
param apimServiceName string
param artifactsBaseUrl string
resource apiManagementService 'Microsoft.ApiManagement/service@2020-12-01' existing = {
name: apimServiceName
}
resource adminProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'admin'
properties: {
description: 'Admin'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
subscriptionsLimit: 1
state: 'published'
displayName: 'Admin'
}
}
resource freeProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'free'
properties: {
description: 'Free tier with a monthly quota of 100 calls.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: false
subscriptionsLimit: 1
state: 'published'
displayName: 'Free'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/free.xml'
format: 'xml-link'
}
}
}
resource developerProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'developer'
properties: {
description: 'Developer tier with a free monthly quota of 100 calls and charges for overage.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
state: 'published'
displayName: 'Developer'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/developer.xml'
format: 'xml-link'
}
}
}
resource paygProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'payg'
properties: {
description: 'Pay-as-you-go tier.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
state: 'published'
displayName: 'PAYG'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/payg.xml'
format: 'xml-link'
}
}
}
resource basicProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'basic'
properties: {
description: 'Basic tier with a monthly quota of 50,000 calls.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
state: 'published'
displayName: 'Basic'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/basic.xml'
format: 'xml-link'
}
}
}
resource standardProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'standard'
properties: {
description: 'Standard tier with a monthly quota of 100,000 calls and charges for overage.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
state: 'published'
displayName: 'Standard'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/standard.xml'
format: 'xml-link'
}
}
}
resource proProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'pro'
properties: {
description: 'Pro tier with a monthly quota of 500,000 calls and charges for overage.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
state: 'published'
displayName: 'Pro'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/pro.xml'
format: 'xml-link'
}
}
}
resource enterpriseProduct 'Microsoft.ApiManagement/service/products@2019-01-01' = {
parent: apiManagementService
name: 'enterprise'
properties: {
description: 'Enterprise tier with a monthly quota of 1,500,000 calls. Overage is charged in units of 1,500,000 calls.'
terms: 'Terms here'
subscriptionRequired: true
approvalRequired: true
state: 'published'
displayName: 'Enterprise'
}
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/products/enterprise.xml'
format: 'xml-link'
}
}
}