Open vivuu1989 opened 5 months ago
@vivuu1989, could you explain:
We don't provide any tooling to programmatically parse, serialize, deserialize, or manipulate policy files.
Also, have you considered applying this policy on the all-APIs scope using conditional choose-when policy statement?
Looking for a way to automate the custom policy creation across the scope of api and operations idempoently in Azure API manager.
The pipeline input is as below
policy.xml template
As a first task, we have to create the custom initial_policy.xml file in different scenarios as per the policy list provided by the app team and need to generate it in accordance with the scope of the policy (might be specific to api or might be specifically to a single operation in it or multiple operation in it)
We may have the different combination as below and, when the scope is only to operations, it should first check whether the same policy is applied in its parent api or APIM instance level itself.
Combinations
Once the above step is completed, in the above created custom initial_policy.xml , the users inputs parameters are replaced (threshold, time etc..) and final_policy.xml will be created.
Then , finally it can be applied to the scope given, (might be to api/apis or operation/operations)
The pipeline template drafyed as below.