-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathapimmonetization-apis-billing.bicep
48 lines (42 loc) · 1.22 KB
/
apimmonetization-apis-billing.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
param apimServiceName string
param serviceUrl object
param artifactsBaseUrl string
resource apiManagementService 'Microsoft.ApiManagement/service@2020-12-01' existing = {
name: apimServiceName
}
resource billingApi 'Microsoft.ApiManagement/service/apis@2019-01-01' = {
parent: apiManagementService
name: 'billing'
properties: {
isCurrent: false
subscriptionRequired: true
displayName: 'billing'
serviceUrl: serviceUrl.billing
path: 'billing'
protocols: [
'https'
]
value: '${artifactsBaseUrl}/apiConfiguration/openApi/billing.yaml'
format: 'openapi-link'
}
resource getMonetizationModelsOperation 'operations' existing = {
name: 'get_monetization_models'
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/apis/billing-get_monetization_models.xml'
format: 'rawxml-link'
}
}
}
resource getProductsOperation 'operations' existing = {
name: 'get_products'
resource policy 'policies' = {
name: 'policy'
properties: {
value: '${artifactsBaseUrl}/apiConfiguration/policies/apis/billing-get_products.xml'
format: 'xml-link'
}
}
}
}