Microsoft.ApiManagement service/apis/policies 2018-01-01

Template format

To create a Microsoft.ApiManagement/service/apis/policies resource, add the following JSON to the resources section of your template.

  "name": "policy",
  "type": "Microsoft.ApiManagement/service/apis/policies",
  "apiVersion": "2018-01-01",
  "properties": {
    "policyContent": "string",
    "contentFormat": "string"

Property values

The following tables describe the values you need to set in the schema.

Microsoft.ApiManagement/service/apis/policies object

Name Type Required Value
name enum Yes The identifier of the Policy. - policy
type enum Yes policies

See Set name and type for child resources.
apiVersion enum Yes 2018-01-01
properties object Yes Properties of the Policy. - PolicyContractProperties object

PolicyContractProperties object

Name Type Required Value
policyContent string Yes Json escaped Xml Encoded contents of the Policy.
contentFormat enum No Format of the policyContent. - xml, xml-link, rawxml, rawxml-link