Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Expand Up @@ -181,6 +181,20 @@
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"TopParameter": {
"description": "OData top parameter.",
"name": "$top",
"in": "query",
"type": "string",
"x-ms-parameter-location": "method"
},
"SkipParameter": {
"description": "OData skip parameter.",
"name": "$skip",
"in": "query",
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations": {
"get": {
"x-ms-examples": {
"Returns the list of backup locations.": {
Expand All @@ -37,6 +37,12 @@
},
{
"$ref": "Backup.json#/parameters/ApiVersionParameter"
},
{
"$ref": "Backup.json#/parameters/TopParameter"
},
{
"$ref": "Backup.json#/parameters/SkipParameter"
}
],
"responses": {
Expand All @@ -52,7 +58,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}": {
"get": {
"x-ms-examples": {
"Returns a specific backup location based on name.": {
Expand Down Expand Up @@ -129,17 +135,23 @@
}
}
},
"x-ms-long-running-operation": true
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options" : {
"final-state-via" : "location"
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/createBackup": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/createBackup": {
"post": {
"x-ms-examples": {
"Back up a specific location.": {
"$ref": "./examples/BackupLocations/Backup.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options" : {
"final-state-via" : "location"
},
"description": "Back up a specific location.",
"tags": [
"BackupLocations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups": {
"get": {
"x-ms-examples": {
"Returns a list of backups from a location.": {
Expand All @@ -40,6 +40,12 @@
},
{
"$ref": "Backup.json#/parameters/ApiVersionParameter"
},
{
"$ref": "Backup.json#/parameters/TopParameter"
},
{
"$ref": "Backup.json#/parameters/SkipParameter"
}
],
"responses": {
Expand All @@ -55,7 +61,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}": {
"get": {
"x-ms-examples": {
"Returns a backup from a location based on name.": {
Expand Down Expand Up @@ -94,7 +100,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}/restore": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Backup.Admin/backupLocations/{location}/backups/{backup}/restore": {
"post": {
"x-ms-examples": {
"Restore a backup.": {
Expand Down Expand Up @@ -137,7 +143,10 @@
"description": "ACCEPTED"
}
},
"x-ms-long-running-operation": true
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options" : {
"final-state-via" : "location"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove all files under stable/2016-05-01? This API version has been deprecated.

"swagger": "2.0",
"info": {
"version": "2016-05-01",
"title": "BackupManagementClient",
"description": "The Admin Backup Management Client."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {
"/providers/Microsoft.Backup.Admin/operations": {
"get": {
"x-ms-examples": {
"Returns the list of support REST operations.": {
"$ref": "./examples/Operations/List.json"
}
},
"description": "Returns the list of support REST operations.",
"tags": [
"Backup"
],
"operationId": "Operations_List",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationList"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"Resource": {
"description": "Base Resource Object",
"type": "object",
"properties": {
"id": {
"description": "URI of the resource.",
"type": "string",
"readOnly": true
},
"name": {
"description": "Name of the resource.",
"type": "string",
"readOnly": true
},
"type": {
"description": "Type of resource.",
"type": "string",
"readOnly": true
},
"location": {
"description": "Location of the resource.",
"type": "string",
"readOnly": false
},
"tags": {
"description": "List of key value pairs.",
"type": "object",
"readOnly": false,
"additionalProperties": {
"type": "string"
}
}
},
"x-ms-azure-resource": true
},
"Operation": {
"description": "Describes the supported REST operation.",
"properties": {
"name": {
"description": "The name of the operation being performed on this particular object. This name should match the name that appears in RBAC or the event service.",
"type": "string",
"readOnly": true
},
"display": {
"description": "Contains the localized display information for this particular operation / action.",
"$ref": "#/definitions/Display",
"readOnly": true
}
}
},
"Display": {
"description": "Contains the localized display information for this particular operation / action.",
"properties": {
"provider": {
"description": "The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible. It should use Title Casing and begin with \"Microsoft\" for 1st party services. e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute.\"",
"type": "string",
"readOnly": true
},
"resource": {
"description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.",
"type": "string",
"readOnly": true
},
"operation": {
"description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.",
"type": "string",
"readOnly": true
},
"description": {
"description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.",
"type": "string",
"readOnly": true
}
}
},
"OperationList": {
"description": "List of Operations",
"properties": {
"value": {
"description": "Array of operations",
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
},
"readOnly": true
},
"nextLink": {
"description": "URI to the next page of operations.",
"type": "string",
"readOnly": true
}
}
},
"LongRunningOperationStatus": {
"description": "Status of a long running operation.",
"type": "object",
"properties": {
"code": {
"description": "Operation result code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "Description of the operation status.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"required": true,
"type": "string"
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "Client API version.",
"required": true,
"type": "string",
"default": "2016-05-01"
},
"ResourceGroupParameter": {
"name": "resourceGroupName",
"in": "path",
"description": "Name of the resource group.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Authorization uses an Azure Active Directory OAuth2 flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}
Loading