You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
@@ -14,50 +14,46 @@ This utility creates [Resource Manager templates](https://docs.microsoft.com/en-
14
14
15
15
## Create the Config File
16
16
17
-
The utility requires one argument, --configFile, which points to a yaml file that links to policy and Open API Spec files and on which the entire process is dependent. The file contains a Creator Configuration object whose schema and related schemas are listed below:
18
-
19
-
### Schemas
17
+
The utility requires one argument, --configFile, which points to a yaml file that controls the ARM templates generated by the Creator tool. The file contains a Creator Configuration object whose schema and related schemas are listed below:
| version | string | Yes | Configuration version. |
26
-
| apimServiceName | string | Yes | Name of APIM service to deploy resources into. |
27
-
| apiVersionSet |[APIVersionSetConfiguration](#APIVersionSetConfiguration)| No | VersionSet configuration. |
28
-
| api |[APIConfiguration](#APIConfiguration)| Yes | API configuration. |
24
+
| apimServiceName | string | Yes | Name of the APIM service to deploy resources into. |
25
+
| apiVersionSets | Array<[APIVersionSetConfiguration](#APIVersionSetConfiguration)> | No | List of API Version Set configurations. |
26
+
| apis | Array<[APIConfiguration](#APIConfiguration)> | Yes | List of API configurations. |
27
+
| products | Array<[ProductConfiguration](#ProductConfiguration)> | No | List of Product configurations. |
28
+
| loggers | Array<[LoggerConfiguration](#LoggerConfiguration)> | No | List of Logger configurations. |
29
+
| authorizationServers | Array<[AuthorizationServerContractProperties](#https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/authorizationservers#AuthorizationServerContractProperties)> | No | List of Authorization Server configurations. |
30
+
| backends | Array<[BackendContractProperties](#https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/backends#BackendContractProperties)> | No | List of Backend configurations. |
29
31
| outputLocation | string | Yes | Local folder the utility will write templates to. |
30
32
| linked | boolean | No | Determines whether the utility should create a master template that links to all generated templates. |
31
33
| linkedTemplatesBaseUrl| string | No | Location that stores linked templates. Required if 'linked' is set to true. |
| displayName | string | Yes | Name of API Version Set. |
39
-
| description | string | No | Description of API Version Set. |
40
-
| versioningScheme | enum | Yes | A value that determines where the API Version identifer will be located in a HTTP request. - Segment, Query, Header |
41
-
| versionQueryName | string | No | Name of query parameter that indicates the API Version if versioningScheme is set to query. |
42
-
| versionHeaderName | string | No | Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header. |
| name | string | Yes | API identifier. Must be unique in the current API Management service instance. |
40
+
| description | string | No | Description of the API. |
41
+
| serviceUrl | string | No | Absolute URL of the backend service implementing this API. |
42
+
| type | enum | No | Type of API. - http or soap |
49
43
| openApiSpec | string | Yes | Location of the Open API Spec file. Can be url or local file. |
50
44
| policy | string | No | Location of the API policy XML file. Can be url or local file. |
51
45
| suffix | string | Yes | Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. |
52
46
| subscriptionRequired | boolean | No | Specifies whether an API or Product subscription is required for accessing the API. |
47
+
| isCurrent | boolean | No | Indicates if API revision is current api revision. |
53
48
| apiVersion | string | No | Indicates the Version identifier of the API if the API is versioned. |
54
-
| apiVersionDescription | string | No | Description of the Api Version. |
55
-
|revision| string | No | Describes the Revision of the Api. If no value is provided, default revision 1 is created. |
56
-
|revisionDescription | string | No | Description of the Api Revision. |
49
+
| apiVersionDescription | string | No | Description of the API Version. |
50
+
|apiRevision| string | No | Describes the Revision of the API. If no value is provided, default revision 1 is created. |
51
+
|apiRevisionDescription| string | No | Description of the Api Revision. |
57
52
| apiVersionSetId | string | No | A resource identifier for the related ApiVersionSet. Value must match the resource id on an existing version set and is irrelevant if the apiVersionSet property is supplied. |
58
53
| operations | Dictionary<string, [APIOperationPolicyConfiguration](#APIOperationPolicyConfiguration)> | No | XML policies that will be applied to operations within the API. Keys must match the operationId property of one of the API's operations. |
59
54
| authenticationSettings|[AuthenticationSettingsContract](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-06-01-preview/service/apis#AuthenticationSettingsContract)| No | Collection of authentication settings included into this API. |
60
55
| products | string | No | Comma separated list of existing products to associate the API with. |
56
+
| protocols | string | No | Comma separated list of protocols used between client and APIM service. |
61
57
| diagnostic |[APIDiagnosticConfiguration](#APIDiagnosticConfiguration)| No | Diagnostic configuration. |
62
58
63
59
#### APIOperationPolicyConfiguration
@@ -71,77 +67,165 @@ The utility requires one argument, --configFile, which points to a yaml file tha
| name | enum | No | Name of API Diagnostic - azureEventHub or applicationInsights |
74
-
| alwaysLog | enum | No | Specifies for what type of messages sampling settings should not apply. - allErrors |
75
-
| loggerId | string | Yes | Resource Id of an existing target logger. |
76
-
| sampling | object | No | Sampling settings for Diagnostic. - [SamplingSettings object](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-06-01-preview/service/apis/diagnostics#SamplingSettings)|
77
-
| frontend | object | No | Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. - [PipelineDiagnosticSettings object](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-06-01-preview/service/apis/diagnostics#PipelineDiagnosticSettings)|
78
-
| backend | object | No | Diagnostic settings for incoming/outgoing HTTP messages to the Backend - [PipelineDiagnosticSettings object](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-06-01-preview/service/apis/diagnostics#PipelineDiagnosticSettings)|
79
-
| enableHttpCorrelationHeaders | boolean | No | Whether to process Correlation Headers coming to Api Management Service. Only applicable to Application Insights diagnostics. Default is true. |
70
+
71
+
_Additional properties found in [DiagnosticContractProperties](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/apis/diagnostics#DiagnosticContractProperties)_
_Additional properties found in [ApiVersionSetContractProperties](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/apiversionsets#ApiVersionSetContractProperties)_
| policy | string | No | Location of the Product policy XML file. Can be url or local file. |
86
+
87
+
_Additional properties found in [ProductContractProperties](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/products#ProductContractProperties)_
_Additional properties found in [LoggerContractProperties](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/loggers#LoggerContractProperties)_
80
96
81
97
### Sample Config File
82
98
83
99
The following is a full config.yml file with each property listed:
Copy file name to clipboardExpand all lines: src/APIM_ARMTemplate/apimtemplate/Creator/ExampleFiles/YAMLConfigs/valid.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ apis:
41
41
diagnostic:
42
42
name: applicationinsights
43
43
alwaysLog: allErrors
44
-
loggerId: lucastestai
44
+
loggerId: myAppInsights
45
45
sampling:
46
46
samplingType: fixed
47
47
percentage: 50
@@ -72,7 +72,7 @@ products:
72
72
approvalRequired: true
73
73
subscriptionsLimit: 1
74
74
state: notPublished
75
-
policy: C:\Users\myUsername\Projects\azure-api-management-devops-example\src\APIM_ARMTemplate\apimtemplate\Creator\ExampleFile\XMLPolicies\productSetBodyBasic.xml# Optional, can be url or local file
0 commit comments