578 строки
16 KiB
JSON
578 строки
16 KiB
JSON
{
|
|
"id": "https://schema.management.azure.com/schemas/2016-04-02/Microsoft.Cdn.json#",
|
|
"title": "Microsoft.Cdn",
|
|
"description": "Microsoft Cdn Resource Types",
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"resourceDefinitions": {
|
|
"profiles": {
|
|
"description": "Microsoft.Cdn/profiles",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"description": "Profile location",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the CDN profile within the resource group.",
|
|
"type": "string"
|
|
},
|
|
"resources": {
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/profiles_endpoints_childResource"
|
|
}
|
|
]
|
|
},
|
|
"type": "array"
|
|
},
|
|
"sku": {
|
|
"description": "The SKU (pricing tier) of the CDN profile.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/Sku"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"tags": {
|
|
"description": "Profile tags",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.Cdn/profiles"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"profiles_endpoints": {
|
|
"description": "Microsoft.Cdn/profiles/endpoints",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"description": "Endpoint location",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the endpoint within the CDN profile.",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/EndpointPropertiesCreateParameters"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"resources": {
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/profiles_endpoints_origins_childResource"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/profiles_endpoints_customDomains_childResource"
|
|
}
|
|
]
|
|
},
|
|
"type": "array"
|
|
},
|
|
"tags": {
|
|
"description": "Endpoint tags",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.Cdn/profiles/endpoints"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"profiles_endpoints_customDomains": {
|
|
"description": "Microsoft.Cdn/profiles/endpoints/customDomains",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the custom domain within an endpoint.",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomDomainPropertiesParameters"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.Cdn/profiles/endpoints/customDomains"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"profiles_endpoints_origins": {
|
|
"description": "Microsoft.Cdn/profiles/endpoints/origins",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the origin, an arbitrary value but it needs to be unique under endpoint",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/OriginPropertiesParameters"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.Cdn/profiles/endpoints/origins"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"definitions": {
|
|
"CustomDomainPropertiesParameters": {
|
|
"properties": {
|
|
"hostName": {
|
|
"description": "The host name of the custom domain. Must be a domain name.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"hostName"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"DeepCreatedOrigin": {
|
|
"description": "Deep created origins within a CDN endpoint.",
|
|
"properties": {
|
|
"name": {
|
|
"description": "Origin name",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"description": "Properties of deep created origin on a CDN endpoint.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/DeepCreatedOriginProperties"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"DeepCreatedOriginProperties": {
|
|
"description": "Properties of deep created origin on a CDN endpoint.",
|
|
"properties": {
|
|
"hostName": {
|
|
"description": "The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.",
|
|
"type": "string"
|
|
},
|
|
"httpPort": {
|
|
"description": "The value of the HTTP port. Must be between 1 and 65535",
|
|
"oneOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"httpsPort": {
|
|
"description": "The value of the HTTPS port. Must be between 1 and 65535",
|
|
"oneOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"hostName"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"EndpointPropertiesCreateParameters": {
|
|
"properties": {
|
|
"contentTypesToCompress": {
|
|
"description": "List of content types on which compression will be applied. The value for the elements should be a valid MIME type.",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"isCompressionEnabled": {
|
|
"description": "Indicates whether content compression is enabled. Default value is false. If compression is enabled, the content transferred from the CDN endpoint to the end user will be compressed. The requested content must be larger than 1 byte and smaller than 1 MB.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"isHttpAllowed": {
|
|
"description": "Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"isHttpsAllowed": {
|
|
"description": "Indicates whether https traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"originHostHeader": {
|
|
"description": "The host header CDN provider will send along with content requests to origins. The default value is the host name of the origin.",
|
|
"type": "string"
|
|
},
|
|
"originPath": {
|
|
"description": "The path used for origin requests.",
|
|
"type": "string"
|
|
},
|
|
"origins": {
|
|
"description": "The set of origins for the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options.",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/DeepCreatedOrigin"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"queryStringCachingBehavior": {
|
|
"description": "Defines the query string caching behavior.",
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"IgnoreQueryString",
|
|
"BypassCaching",
|
|
"UseQueryString",
|
|
"NotSet"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"origins"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"OriginPropertiesParameters": {
|
|
"properties": {
|
|
"hostName": {
|
|
"description": "The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.",
|
|
"type": "string"
|
|
},
|
|
"httpPort": {
|
|
"description": "The value of the HTTP port. Must be between 1 and 65535.",
|
|
"oneOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"httpsPort": {
|
|
"description": "The value of the HTTPS port. Must be between 1 and 65535.",
|
|
"oneOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"hostName"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"Sku": {
|
|
"description": "The SKU (pricing tier) of the CDN profile.",
|
|
"properties": {
|
|
"name": {
|
|
"description": "Name of the pricing tier",
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"Standard_Verizon",
|
|
"Premium_Verizon",
|
|
"Custom_Verizon",
|
|
"Standard_Akamai"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"profiles_endpoints_childResource": {
|
|
"description": "Microsoft.Cdn/profiles/endpoints",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"description": "Endpoint location",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the endpoint within the CDN profile.",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/EndpointPropertiesCreateParameters"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"tags": {
|
|
"description": "Endpoint tags",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"endpoints"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"profiles_endpoints_customDomains_childResource": {
|
|
"description": "Microsoft.Cdn/profiles/endpoints/customDomains",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the custom domain within an endpoint.",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomDomainPropertiesParameters"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"customDomains"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"profiles_endpoints_origins_childResource": {
|
|
"description": "Microsoft.Cdn/profiles/endpoints/origins",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-04-02"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the origin, an arbitrary value but it needs to be unique under endpoint",
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/OriginPropertiesParameters"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"origins"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
} |