openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 14.5 kB
JSON
{"openapi":"3.0.0","info":{"description":"Provides read functionality for Azure SQL Database Backups","title":"Azure SQL Database Backup","version":"2014-04-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backups.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"sql-backups","x-tags":["Azure","Microsoft"]},"paths":{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases":{"get":{"description":"Gets a list of recoverable databases","operationId":"RecoverableDatabases_ListByServer","parameters":[{"description":"The API version to use for the request.","in":"query","name":"api-version","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"2014-04-01"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"00000000-1111-2222-3333-444444444444"}}},{"description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"recoverabledatabasetest-1234"}}},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverableDatabaseListResult"},"examples":{"Get list of restorable dropped databases":{"$ref":"#/components/examples/Get_list_of_restorable_dropped_databases"}}}}}},"tags":["RecoverableDatabases"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName}":{"get":{"description":"Gets a recoverable database, which is a resource representing a database's geo backup","operationId":"RecoverableDatabases_Get","parameters":[{"description":"The API version to use for the request.","in":"query","name":"api-version","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get a recoverable database":{"value":"2014-04-01"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get a recoverable database":{"value":"00000000-1111-2222-3333-444444444444"}}},{"description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get a recoverable database":{"value":"recoverabledatabasetest-6852"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of the database","in":"path","name":"databaseName","required":true,"schema":{"type":"string"},"examples":{"Get a recoverable database":{"value":"recoverabledatabasetest-9187"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverableDatabase"},"examples":{"Get a recoverable database":{"$ref":"#/components/examples/Get_a_recoverable_database"}}}}}},"tags":["RecoverableDatabases"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases":{"get":{"description":"Gets a list of deleted databases that can be restored","operationId":"RestorableDroppedDatabases_ListByServer","parameters":[{"description":"The API version to use for the request.","in":"query","name":"api-version","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"2014-04-01"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"00000000-1111-2222-3333-444444444444"}}},{"description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"restorabledroppeddatabasetest-1349"}}},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestorableDroppedDatabaseListResult"},"examples":{"Get list of restorable dropped databases":{"$ref":"#/components/examples/Get_list_of_restorable_dropped_databases"}}}}}},"tags":["RestorableDroppedDatabases"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppededDatabaseId}":{"get":{"description":"Gets a deleted database that can be restored","operationId":"RestorableDroppedDatabases_Get","parameters":[{"description":"The API version to use for the request.","in":"query","name":"api-version","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get a restorable dropped database":{"value":"2014-04-01"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get a restorable dropped database":{"value":"00000000-1111-2222-3333-444444444444"}}},{"description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get a restorable dropped database":{"value":"restorabledroppeddatabasetest-1257"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The id of the deleted database in the form of databaseName,deletionTimeInFileTimeFormat","in":"path","name":"restorableDroppededDatabaseId","required":true,"schema":{"type":"string"},"examples":{"Get a restorable dropped database":{"value":"restorabledroppeddatabasetest-7654,131403269876900000"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestorableDroppedDatabase"},"examples":{"Get a restorable dropped database":{"$ref":"#/components/examples/Get_a_restorable_dropped_database"}}}}}},"tags":["RestorableDroppedDatabases"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_list_of_restorable_dropped_databases":{"value":{"value":[{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1349/providers/Microsoft.Sql/servers/restorabledroppeddatabasetest-1840/restorableDroppedDatabases/restorabledroppeddatabasetest-1345,131403269876900000","location":"Japan East","name":"restorabledroppeddatabasetest-1345,131403269876900000","properties":{"creationDate":"2017-02-10T00:56:19.2Z","databaseName":"restorabledroppeddatabasetest-1345","deletionDate":"2017-05-27T02:49:47.69Z","earliestRestoreDate":"2017-05-20T02:49:47.69Z","edition":"Basic","maxSizeBytes":"2147483648","serviceLevelObjective":"Basic"},"type":"Microsoft.Sql/servers/restorableDroppedDatabases"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1349/providers/Microsoft.Sql/servers/restorabledroppeddatabasetest-1840/restorableDroppedDatabases/restorabledroppeddatabasetest-2764,131403249684030000","location":"Japan East","name":"restorabledroppeddatabasetest-2764,131403249684030000","properties":{"creationDate":"2016-05-10T00:56:19.2Z","databaseName":"restorabledroppeddatabasetest-2764","deletionDate":"2017-05-27T02:16:08.403Z","earliestRestoreDate":"2017-04-21T02:49:47.69Z","edition":"Standard","maxSizeBytes":"268435456000","serviceLevelObjective":"S0"},"type":"Microsoft.Sql/servers/restorableDroppedDatabases"}]}},"Get_a_recoverable_database":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/recoverabledatabasetest-6852/providers/Microsoft.Sql/servers/recoverabledatabasetest-2080/recoverabledatabases/recoverabledatabasetest-9187","name":"recoverabledatabasetest-9187","properties":{"edition":"Basic","lastAvailableBackupDate":"2017-05-26T01:06:29.78Z","serviceLevelObjective":"Basic"},"type":"Microsoft.Sql/servers/recoverabledatabases"}},"Get_a_restorable_dropped_database":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1257/providers/Microsoft.Sql/servers/restorabledroppeddatabasetest-2389/restorableDroppedDatabases/restorabledroppeddatabasetest-7654,131403269876900000","location":"Japan East","name":"restorabledroppeddatabasetest-7654,131403269876900000","properties":{"creationDate":"2017-02-10T00:56:19.2Z","databaseName":"restorabledroppeddatabasetest-7654","deletionDate":"2017-05-27T02:49:47.69Z","earliestRestoreDate":"2017-05-20T02:49:47.69Z","edition":"Basic","maxSizeBytes":"2147483648","serviceLevelObjective":"Basic"},"type":"Microsoft.Sql/servers/restorableDroppedDatabases"}}},"parameters":{"DatabaseExpandParameter":{"description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.","in":"query","name":"$expand","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"ServerNameParameter":{"description":"The name of the server.","in":"path","name":"serverName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get list of restorable dropped databases":{"value":"restorabledroppeddatabasetest-1840"},"Get a recoverable database":{"value":"recoverabledatabasetest-2080"},"Get a restorable dropped database":{"value":"restorabledroppeddatabasetest-2389"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"RecoverableDatabase":{"allOf":[{"allOf":[{"description":"ARM resource.","properties":{"id":{"description":"Resource ID.","readOnly":true,"type":"string"},"name":{"description":"Resource name.","readOnly":true,"type":"string"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"type":"object","x-ms-azure-resource":true}],"description":"ARM proxy resource.","properties":{},"type":"object"}],"description":"A recoverable database","properties":{"properties":{"$ref":"#/components/schemas/RecoverableDatabaseProperties"}}},"RecoverableDatabaseListResult":{"description":"The response to a list recoverable databases request","properties":{"value":{"description":"A list of recoverable databases","items":{"$ref":"#/components/schemas/RecoverableDatabase"},"type":"array"}},"required":["value"]},"RecoverableDatabaseProperties":{"description":"The properties of a recoverable database","properties":{"edition":{"description":"The edition of the database","readOnly":true,"type":"string"},"elasticPoolName":{"description":"The elastic pool name of the database","readOnly":true,"type":"string"},"lastAvailableBackupDate":{"description":"The last available backup date of the database (ISO8601 format)","format":"date-time","readOnly":true,"type":"string"},"serviceLevelObjective":{"description":"The service level objective name of the database","readOnly":true,"type":"string"}}},"RestorableDroppedDatabase":{"allOf":[{"allOf":[{"description":"ARM resource.","properties":{"id":{"description":"Resource ID.","readOnly":true,"type":"string"},"name":{"description":"Resource name.","readOnly":true,"type":"string"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"type":"object","x-ms-azure-resource":true}],"description":"ARM proxy resource.","properties":{},"type":"object"}],"description":"A restorable dropped database","properties":{"location":{"description":"The geo-location where the resource lives","readOnly":true,"type":"string"},"properties":{"$ref":"#/components/schemas/RestorableDroppedDatabaseProperties"}}},"RestorableDroppedDatabaseListResult":{"description":"The response to a list restorable dropped databases request","properties":{"value":{"description":"A list of restorable dropped databases","items":{"$ref":"#/components/schemas/RestorableDroppedDatabase"},"type":"array"}},"required":["value"]},"RestorableDroppedDatabaseProperties":{"description":"The properties of a restorable dropped database","properties":{"creationDate":{"description":"The creation date of the database (ISO8601 format)","format":"date-time","readOnly":true,"type":"string"},"databaseName":{"description":"The name of the database","readOnly":true,"type":"string"},"deletionDate":{"description":"The deletion date of the database (ISO8601 format)","format":"date-time","readOnly":true,"type":"string"},"earliestRestoreDate":{"description":"The earliest restore date of the database (ISO8601 format)","format":"date-time","readOnly":true,"type":"string"},"edition":{"description":"The edition of the database","readOnly":true,"type":"string"},"elasticPoolName":{"description":"The elastic pool name of the database","readOnly":true,"type":"string"},"maxSizeBytes":{"description":"The max size in bytes of the database","readOnly":true,"type":"string"},"serviceLevelObjective":{"description":"The service level objective name of the database","readOnly":true,"type":"string"}}}}}}