Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"api-version": "2015-11-01",
"template": {
"$schema": "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview",
"contentVersion": "1.0.0.0",
"parameters": {
"string": {
"type": "string"
}
},
"variables": {
"string": "string",
"int": 42,
"bool": true,
"array": [
1,
2,
3,
4
],
"object": {
"object": {
"vmSize": "Large",
"location": "West US"
}
}
},
"resources": [],
"outputs": {
"string": {
"type": "string",
"value": "myvalue"
}
}
}
},
"responses": {
"200": {
"body": {
"minifiedTemplate": "{\"$SCHEMA\":\"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW\",\"CONTENTVERSION\":\"1.0.0.0\",\"PARAMETERS\":{\"STRING\":{\"TYPE\":\"STRING\"}},\"VARIABLES\":{\"STRING\":\"STRING\",\"INT\":42,\"BOOL\":TRUE,\"ARRAY\":[1,2,3,4],\"OBJECT\":{\"OBJECT\":{\"VMSIZE\":\"LARGE\",\"LOCATION\":\"WEST US\"}}},\"RESOURCES\":[],\"OUTPUTS\":{\"STRING\":{\"TYPE\":\"STRING\",\"VALUE\":\"MYVALUE\"}}}",
"templateHash": "695440707931307747"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,48 @@
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.Resources/calculateTemplateHash": {
"post": {
"tags": [
"Deployments"
],
"operationId": "Deployments_CalculateTemplateHash",
"description": "Calculate the hash of the given template.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "template",
"in": "body",
"required": true,
"schema": {
"type": "object"
},
"description": "The template provided to calculate hash."
}
],
"x-ms-examples": {
"Calculate template hash": {
"$ref": "./examples/CalculateTemplateHash.json"
}
},
"responses": {
"200": {
"description": "OK - Returns the hash.",
"schema": {
"$ref": "#/definitions/TemplateHashResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -2259,6 +2301,15 @@
},
"description": "Deployment operation parameters."
},
"CloudError": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response for a resource management request."
},
"ResourceManagementError": {
"properties": {
"code": {
Expand Down Expand Up @@ -2907,6 +2958,19 @@
}
},
"x-ms-azure-resource": true
},
"TemplateHashResult": {
"description": "Result of the request to calculate template hash. It contains a string of minified template and its hash.",
"properties": {
"minifiedTemplate": {
"type": "string",
"description": "The minified template string."
},
"templateHash": {
"type": "string",
"description": "The template hash."
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"api-version": "2016-02-01",
"template": {
"$schema": "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview",
"contentVersion": "1.0.0.0",
"parameters": {
"string": {
"type": "string"
}
},
"variables": {
"string": "string",
"int": 42,
"bool": true,
"array": [
1,
2,
3,
4
],
"object": {
"object": {
"vmSize": "Large",
"location": "West US"
}
}
},
"resources": [],
"outputs": {
"string": {
"type": "string",
"value": "myvalue"
}
}
}
},
"responses": {
"200": {
"body": {
"minifiedTemplate": "{\"$SCHEMA\":\"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW\",\"CONTENTVERSION\":\"1.0.0.0\",\"PARAMETERS\":{\"STRING\":{\"TYPE\":\"STRING\"}},\"VARIABLES\":{\"STRING\":\"STRING\",\"INT\":42,\"BOOL\":TRUE,\"ARRAY\":[1,2,3,4],\"OBJECT\":{\"OBJECT\":{\"VMSIZE\":\"LARGE\",\"LOCATION\":\"WEST US\"}}},\"RESOURCES\":[],\"OUTPUTS\":{\"STRING\":{\"TYPE\":\"STRING\",\"VALUE\":\"MYVALUE\"}}}",
"templateHash": "695440707931307747"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,48 @@
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.Resources/calculateTemplateHash": {
"post": {
"tags": [
"Deployments"
],
"operationId": "Deployments_CalculateTemplateHash",
"description": "Calculate the hash of the given template.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "template",
"in": "body",
"required": true,
"schema": {
"type": "object"
},
"description": "The template provided to calculate hash."
}
],
"x-ms-examples": {
"Calculate template hash": {
"$ref": "./examples/CalculateTemplateHash.json"
}
},
"responses": {
"200": {
"description": "OK - Returns the hash.",
"schema": {
"$ref": "#/definitions/TemplateHashResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1770,6 +1812,15 @@
}
}
},
"CloudError": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response for a resource management request."
},
"ResourceManagementErrorWithDetails": {
"properties": {
"code": {
Expand Down Expand Up @@ -2534,6 +2585,19 @@
"description": "The error."
}
}
},
"TemplateHashResult": {
"description": "Result of the request to calculate template hash. It contains a string of minified template and its hash.",
"properties": {
"minifiedTemplate": {
"type": "string",
"description": "The minified template string."
},
"templateHash": {
"type": "string",
"description": "The template hash."
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"api-version": "2016-07-01",
"template": {
"$schema": "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview",
"contentVersion": "1.0.0.0",
"parameters": {
"string": {
"type": "string"
}
},
"variables": {
"string": "string",
"int": 42,
"bool": true,
"array": [
1,
2,
3,
4
],
"object": {
"object": {
"vmSize": "Large",
"location": "West US"
}
}
},
"resources": [],
"outputs": {
"string": {
"type": "string",
"value": "myvalue"
}
}
}
},
"responses": {
"200": {
"body": {
"minifiedTemplate": "{\"$SCHEMA\":\"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW\",\"CONTENTVERSION\":\"1.0.0.0\",\"PARAMETERS\":{\"STRING\":{\"TYPE\":\"STRING\"}},\"VARIABLES\":{\"STRING\":\"STRING\",\"INT\":42,\"BOOL\":TRUE,\"ARRAY\":[1,2,3,4],\"OBJECT\":{\"OBJECT\":{\"VMSIZE\":\"LARGE\",\"LOCATION\":\"WEST US\"}}},\"RESOURCES\":[],\"OUTPUTS\":{\"STRING\":{\"TYPE\":\"STRING\",\"VALUE\":\"MYVALUE\"}}}",
"templateHash": "695440707931307747"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,48 @@
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.Resources/calculateTemplateHash": {
"post": {
"tags": [
"Deployments"
],
"operationId": "Deployments_CalculateTemplateHash",
"description": "Calculate the hash of the given template.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "template",
"in": "body",
"required": true,
"schema": {
"type": "object"
},
"description": "The template provided to calculate hash."
}
],
"x-ms-examples": {
"Calculate template hash": {
"$ref": "./examples/CalculateTemplateHash.json"
}
},
"responses": {
"200": {
"description": "OK - Returns the hash.",
"schema": {
"$ref": "#/definitions/TemplateHashResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1775,6 +1817,15 @@
},
"description": "The deployment export result. "
},
"CloudError": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response for a resource management request."
},
"ResourceManagementErrorWithDetails": {
"properties": {
"code": {
Expand Down Expand Up @@ -2543,6 +2594,19 @@
"description": "The error."
}
}
},
"TemplateHashResult": {
"description": "Result of the request to calculate template hash. It contains a string of minified template and its hash.",
"properties": {
"minifiedTemplate": {
"type": "string",
"description": "The minified template string."
},
"templateHash": {
"type": "string",
"description": "The template hash."
}
}
}
},
"parameters": {
Expand Down
Loading