Microsoft.ApiManagement service/apis/schemas 2017-03-01

The service/apis/schemas resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.ApiManagement/service/apis/schemas resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.ApiManagement/service/apis/schemas@2017-03-01' = {
  name: 'string'
  parent: parentSymbolicName
  properties: {
    contentType: 'string'
    document: {
      value: 'string'
    }
  }
}

Property values

service/apis/schemas

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.ApiManagement/service/apis/schemas'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2017-03-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
parentSymbolicName
properties Schema contract Properties. SchemaContractProperties

SchemaContractProperties

Name Description Value
contentType Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). string (required)
document Schema Document Properties. SchemaDocumentProperties

SchemaDocumentProperties

Name Description Value
value Json escaped string defining the document representing the Schema. string