Skip to content

Instantly share code, notes, and snippets.

@takekazuomi
Created September 8, 2018 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takekazuomi/67ac2982c1bbbf178e395507dabaf759 to your computer and use it in GitHub Desktop.
Save takekazuomi/67ac2982c1bbbf178e395507dabaf759 to your computer and use it in GitHub Desktop.
--- ./2016-03-01/CommonDefinitions.json.1 2018-09-09 07:07:44.365565300 +0900
+++ ./2018-02-1/CommonDefinitions.json.1 2018-09-09 07:07:52.212100600 +0900
@@ -1,13 +1,19 @@
{
"swagger": "2.0",
"info": {
- "version": "2016-03-01",
+ "version": "2018-02-01",
"title": "Common Definitions"
},
"host": "management.azure.com",
"schemes": [
"https"
],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
"paths": {},
"definitions": {
"ApiDefinitionInfo": {
@@ -244,6 +250,18 @@
"items": {
"type": "string"
}
+ },
+ "hasLinuxWorkers": {
+ "description": "Flag that displays whether an ASE has linux workers or not",
+ "type": "boolean"
+ },
+ "sslCertKeyVaultId": {
+ "description": "Key Vault ID for ILB App Service Environment default SSL certificate",
+ "type": "string"
+ },
+ "sslCertKeyVaultSecretName": {
+ "description": "Key Vault Secret Name for ILB App Service Environment default SSL certificate",
+ "type": "string"
}
}
},
@@ -258,14 +276,7 @@
"properties": {
"properties": {
"description": "AppServicePlan resource specific properties",
- "required": [
- "name"
- ],
"properties": {
- "name": {
- "description": "Name for the App Service plan.",
- "type": "string"
- },
"workerTierName": {
"description": "Target worker tier assigned to the App Service plan.",
"type": "string"
@@ -332,6 +343,11 @@
"description": "The time when the server farm expires. Valid only if it is a spot server farm.",
"type": "string"
},
+ "freeOfferExpirationTime": {
+ "format": "date-time",
+ "description": "The time when the server farm free offer expires.",
+ "type": "string"
+ },
"resourceGroup": {
"description": "Resource group of the App Service plan.",
"type": "string",
@@ -346,6 +362,24 @@
"read"
]
},
+ "isXenon": {
+ "description": "Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.",
+ "default": false,
+ "type": "boolean",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "hyperV": {
+ "description": "If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.",
+ "default": false,
+ "type": "boolean",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
"targetWorkerCount": {
"format": "int32",
"description": "Scaling worker count.",
@@ -396,7 +430,8 @@
},
"nextLink": {
"description": "Link to next page of resources.",
- "type": "string"
+ "type": "string",
+ "readOnly": true
}
}
},
@@ -481,6 +516,54 @@
}
}
},
+ "AzureStorageInfoValue": {
+ "description": "Azure Files or Blob Storage access information value for dictionary storage.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "Type of storage.",
+ "enum": [
+ "AzureFiles",
+ "AzureBlob"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AzureStorageType",
+ "modelAsString": false
+ }
+ },
+ "accountName": {
+ "description": "Name of the storage account.",
+ "type": "string"
+ },
+ "shareName": {
+ "description": "Name of the file share (container name, for Blob storage).",
+ "type": "string"
+ },
+ "accessKey": {
+ "description": "Access key for the storage account.",
+ "type": "string"
+ },
+ "mountPath": {
+ "description": "Path to mount the storage within the site's runtime environment.",
+ "type": "string"
+ },
+ "state": {
+ "description": "State of the storage account.",
+ "enum": [
+ "Ok",
+ "InvalidCredentials",
+ "InvalidShare"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "AzureStorageState",
+ "modelAsString": false
+ }
+ }
+ }
+ },
"Capability": {
"description": "Describes the capabilities/features allowed for a specific SKU.",
"type": "object",
@@ -550,10 +633,6 @@
"trafficManagerProfileName": {
"description": "Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist.",
"type": "string"
- },
- "ignoreQuotas": {
- "description": "<code>true</code> if quotas should be ignored; otherwise, <code>false</code>.",
- "type": "boolean"
}
}
},
@@ -721,60 +800,6 @@
}
}
},
- "Dimension": {
- "description": "Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app, \nwhere instance name is dimension of the metric HTTP request",
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "internalName": {
- "type": "string"
- },
- "toBeExportedForShoebox": {
- "type": "boolean"
- }
- }
- },
- "ErrorEntity": {
- "description": "Body of the error response returned from the API.",
- "type": "object",
- "properties": {
- "extendedCode": {
- "description": "Type of error.",
- "type": "string"
- },
- "messageTemplate": {
- "description": "Message template.",
- "type": "string"
- },
- "parameters": {
- "description": "Parameters for the template.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "innerErrors": {
- "description": "Inner errors.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/ErrorEntity"
- }
- },
- "code": {
- "description": "Basic error code.",
- "type": "string"
- },
- "message": {
- "description": "Any details of the error.",
- "type": "string"
- }
- }
- },
"DefaultErrorResponse": {
"description": "App Service error response.",
"type": "object",
@@ -832,6 +857,113 @@
}
}
},
+ "DeletedSite": {
+ "description": "A deleted app.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyOnlyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "DeletedSite resource specific properties",
+ "properties": {
+ "deletedSiteId": {
+ "format": "int32",
+ "description": "Numeric id for the deleted site",
+ "type": "integer",
+ "readOnly": true
+ },
+ "deletedTimestamp": {
+ "description": "Time in UTC when the app was deleted.",
+ "type": "string",
+ "readOnly": true
+ },
+ "subscription": {
+ "description": "Subscription containing the deleted site",
+ "type": "string",
+ "readOnly": true
+ },
+ "resourceGroup": {
+ "description": "ResourceGroup that contained the deleted site",
+ "type": "string",
+ "readOnly": true
+ },
+ "deletedSiteName": {
+ "description": "Name of the deleted site",
+ "type": "string",
+ "readOnly": true
+ },
+ "slot": {
+ "description": "Slot of the deleted site",
+ "type": "string",
+ "readOnly": true
+ },
+ "kind": {
+ "description": "Kind of site that was deleted",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "Dimension": {
+ "description": "Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app, \nwhere instance name is dimension of the metric HTTP request",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "internalName": {
+ "type": "string"
+ },
+ "toBeExportedForShoebox": {
+ "type": "boolean"
+ }
+ }
+ },
+ "ErrorEntity": {
+ "description": "Body of the error response returned from the API.",
+ "type": "object",
+ "properties": {
+ "extendedCode": {
+ "description": "Type of error.",
+ "type": "string"
+ },
+ "messageTemplate": {
+ "description": "Message template.",
+ "type": "string"
+ },
+ "parameters": {
+ "description": "Parameters for the template.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "innerErrors": {
+ "description": "Inner errors.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorEntity"
+ }
+ },
+ "code": {
+ "description": "Basic error code.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Any details of the error.",
+ "type": "string"
+ }
+ }
+ },
"Experiments": {
"description": "Routing rules in production experiments.",
"type": "object",
@@ -1065,12 +1197,41 @@
"type": "object",
"properties": {
"ipAddress": {
- "description": "IP address the security restriction is valid for.",
+ "description": "IP address the security restriction is valid for.\nIt can be in form of pure ipv4 address (required SubnetMask property) or\nCIDR notation such as ipv4/mask (leading bit match). For CIDR,\nSubnetMask property must not be specified.",
"type": "string"
},
"subnetMask": {
"description": "Subnet mask for the range of IP addresses the restriction is valid for.",
"type": "string"
+ },
+ "action": {
+ "description": "Allow or Deny access for this IP range.",
+ "type": "string"
+ },
+ "tag": {
+ "description": "Defines what this IP filter will be used for. This is to support IP filtering on proxies.",
+ "enum": [
+ "Default",
+ "XffProxy"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IpFilterTag",
+ "modelAsString": false
+ }
+ },
+ "priority": {
+ "format": "int32",
+ "description": "Priority of IP restriction rule.",
+ "type": "integer"
+ },
+ "name": {
+ "description": "IP restriction rule name.",
+ "type": "string"
+ },
+ "description": {
+ "description": "IP restriction rule description.",
+ "type": "string"
}
}
},
@@ -1088,6 +1249,21 @@
}
}
},
+ "LogSpecification": {
+ "description": "Log Definition of a single resource metric.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "blobDuration": {
+ "type": "string"
+ }
+ }
+ },
"ManagedServiceIdentity": {
"description": "Managed service identity.",
"type": "object",
@@ -1095,7 +1271,8 @@
"type": {
"description": "Type of managed service identity.",
"enum": [
- "SystemAssigned"
+ "SystemAssigned",
+ "UserAssigned"
],
"type": "string",
"x-ms-enum": {
@@ -1112,6 +1289,14 @@
"description": "Principal Id of managed service identity.",
"type": "string",
"readOnly": true
+ },
+ "identityIds": {
+ "description": "Array of UserAssigned managed service identities.",
+ "type": "array",
+ "items": {
+ "description": "Resource Id for UserAssigned managed service identity",
+ "type": "string"
+ }
}
}
},
@@ -1562,11 +1747,6 @@
"properties": {
"description": "ResourceMetricDefinition resource specific properties",
"properties": {
- "name": {
- "$ref": "#/definitions/ResourceMetricName",
- "description": "Name of the metric.",
- "readOnly": true
- },
"unit": {
"description": "Unit of the metric.",
"type": "string",
@@ -1590,11 +1770,6 @@
"type": "string",
"readOnly": true
},
- "id": {
- "description": "Resource ID.",
- "type": "string",
- "readOnly": true
- },
"properties": {
"description": "Resource metric definition properties.",
"type": "object",
@@ -1717,6 +1892,12 @@
"items": {
"$ref": "#/definitions/MetricSpecification"
}
+ },
+ "logSpecifications": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/LogSpecification"
+ }
}
}
},
@@ -1809,6 +1990,24 @@
"read"
]
},
+ "isXenon": {
+ "description": "Obsolete: Hyper-V sandbox.",
+ "default": false,
+ "type": "boolean",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "hyperV": {
+ "description": "Hyper-V sandbox.",
+ "default": false,
+ "type": "boolean",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
"lastModifiedTimeUtc": {
"format": "date-time",
"description": "Last time the app was modified, in UTC. Read-only.",
@@ -1896,13 +2095,6 @@
"create"
]
},
- "snapshotInfo": {
- "$ref": "#/definitions/SnapshotRecoveryRequest",
- "description": "If specified during app creation, the app is created from a previous snapshot.",
- "x-ms-mutability": [
- "create"
- ]
- },
"resourceGroup": {
"description": "Name of the resource group the app belongs to. Read-only.",
"type": "string",
@@ -1972,6 +2164,10 @@
"description": "Linux App Framework and version",
"type": "string"
},
+ "windowsFxVersion": {
+ "description": "Xenon App Framework and version",
+ "type": "string"
+ },
"requestTracingEnabled": {
"description": "<code>true</code> if request tracing is enabled; otherwise, <code>false</code>.",
"type": "boolean"
@@ -2013,6 +2209,13 @@
"$ref": "#/definitions/NameValuePair"
}
},
+ "azureStorageAccounts": {
+ "description": "User-provided Azure storage accounts.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/AzureStorageInfoValue"
+ }
+ },
"connectionStrings": {
"description": "Connection strings.",
"type": "array",
@@ -2170,6 +2373,16 @@
"default": false,
"type": "boolean"
},
+ "managedServiceIdentityId": {
+ "format": "int32",
+ "description": "Managed Service Identity Id",
+ "type": "integer"
+ },
+ "xManagedServiceIdentityId": {
+ "format": "int32",
+ "description": "Explicit Managed Service Identity Id",
+ "type": "integer"
+ },
"ipSecurityRestrictions": {
"description": "IP security restrictions.",
"type": "array",
@@ -2194,6 +2407,26 @@
"name": "SupportedTlsVersions",
"modelAsString": true
}
+ },
+ "ftpsState": {
+ "description": "State of FTP / FTPS service",
+ "enum": [
+ "AllAllowed",
+ "FtpsOnly",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FtpsState",
+ "modelAsString": true
+ }
+ },
+ "reservedInstanceCount": {
+ "format": "int32",
+ "description": "Number of reserved instances.\nThis setting only applies to the Consumption Plan",
+ "maximum": 10,
+ "minimum": 0,
+ "type": "integer"
}
}
},
@@ -2351,8 +2584,8 @@
}
}
},
- "SnapshotRecoveryRequest": {
- "description": "Details about app recovery operation.",
+ "Snapshot": {
+ "description": "A snapshot of an app.",
"type": "object",
"allOf": [
{
@@ -2361,50 +2594,18 @@
],
"properties": {
"properties": {
- "description": "SnapshotRecoveryRequest resource specific properties",
- "required": [
- "overwrite"
- ],
+ "description": "Snapshot resource specific properties",
"properties": {
- "snapshotTime": {
- "description": "Point in time in which the app recovery should be attempted, formatted as a DateTime string.",
- "type": "string"
- },
- "recoveryTarget": {
- "$ref": "#/definitions/SnapshotRecoveryTarget",
- "description": "Specifies the web app that snapshot contents will be written to."
- },
- "overwrite": {
- "description": "If <code>true</code> the recovery operation can overwrite source app; otherwise, <code>false</code>.",
- "type": "boolean"
- },
- "recoverConfiguration": {
- "description": "If true, site configuration, in addition to content, will be reverted.",
- "type": "boolean"
- },
- "ignoreConflictingHostNames": {
- "description": "If true, custom hostname conflicts will be ignored when recovering to a target web app.\nThis setting is only necessary when RecoverConfiguration is enabled.",
- "type": "boolean"
+ "time": {
+ "description": "The time the snapshot was taken.",
+ "type": "string",
+ "readOnly": true
}
},
"x-ms-client-flatten": true
}
}
},
- "SnapshotRecoveryTarget": {
- "description": "Specifies the web app that snapshot contents will be written to.",
- "type": "object",
- "properties": {
- "location": {
- "description": "Geographical location of the target web app, e.g. SouthEastAsia, SouthCentralUS",
- "type": "string"
- },
- "id": {
- "description": "ARM resource ID of the target app. \n/subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and \n/subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots.",
- "type": "string"
- }
- }
- },
"StampCapacity": {
"description": "Stamp capacity information.",
"type": "object",
@@ -2443,13 +2644,13 @@
"workerSize": {
"description": "Size of the machines.",
"enum": [
- "Default",
"Small",
"Medium",
"Large",
"D1",
"D2",
- "D3"
+ "D3",
+ "Default"
],
"type": "string",
"x-ms-enum": {
@@ -2473,6 +2674,10 @@
"siteMode": {
"description": "Shared or Dedicated.",
"type": "string"
+ },
+ "isLinux": {
+ "description": "Is this a linux stamp capacity",
+ "type": "boolean"
}
}
},
@@ -2521,11 +2726,6 @@
"publishingUserName"
],
"properties": {
- "name": {
- "description": "Username",
- "type": "string",
- "x-ms-client-name": "UserName"
- },
"publishingUserName": {
"description": "Username used for publishing.",
"type": "string"
@@ -2544,6 +2744,10 @@
"format": "password",
"description": "Password hash salt used for publishing.",
"type": "string"
+ },
+ "scmUri": {
+ "description": "Url of SCM site.",
+ "type": "string"
}
},
"x-ms-client-flatten": true
@@ -2733,15 +2937,6 @@
"properties": {
"description": "VnetRoute resource specific properties",
"properties": {
- "name": {
- "description": "The name of this route. This is only returned by the server and does not need to be set by the client.",
- "type": "string",
- "x-ms-mutability": [
- "create",
- "read"
- ],
- "x-ms-client-name": "vnetRouteName"
- },
"startAddress": {
"description": "The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified.",
"type": "string"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment