-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapi-management-openapi-api.bicep
40 lines (37 loc) · 1.24 KB
/
api-management-openapi-api.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
@description('Name of the API.')
param name string
@description('Name of the API Management associated with the API.')
param apiManagementName string
@description('Display name of the API.')
param displayName string
@description('Relative URL for the API and all of its resource paths associated with the API Management resource.')
param path string
@description('Format for the OpenAPI specification.')
@allowed([
'openapi'
'openapi+json'
'openapi+json-link'
'openapi-link'
])
param format string
@description('Value for the OpenAPI specification.')
param value string
resource apiManagement 'Microsoft.ApiManagement/service@2023-09-01-preview' existing = {
name: apiManagementName
resource api 'apis@2023-09-01-preview' = {
name: name
properties: {
displayName: displayName
path: path
format: format
value: value
subscriptionRequired: true
}
}
}
@description('The deployed API Management API resource.')
output resource resource = apiManagement::api
@description('ID for the deployed API Management API resource.')
output id string = apiManagement::api.id
@description('Name for the deployed API Management API resource.')
output name string = apiManagement::api.name