UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 40 kB
{"openapi":"3.0.0","info":{"description":"The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.","title":"SqlManagementClient","version":"2017-03-01-preview","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/preview/2017-03-01-preview/longTermRetention.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"sql-longTermRetention","x-tags":["Azure","Microsoft"]},"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups":{"get":{"description":"Lists the long term retention backups for a given location.","operationId":"LongTermRetentionBackups_ListByLocation","parameters":[{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the location.":{"value":"japaneast"}}},{"description":"Whether or not to only get the latest backup for each database.","in":"query","name":"onlyLatestPerDatabase","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/LongTermRetentionDatabaseStateParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of backups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackupListResult"},"examples":{"Get all long term retention backups under the location.":{"$ref":"#/components/examples/Get_all_long_term_retention_backups_under_the_location."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups":{"get":{"description":"Lists the long term retention backups for a given server.","operationId":"LongTermRetentionBackups_ListByServer","parameters":[{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the server.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the server.":{"value":"testserver"}}},{"description":"Whether or not to only get the latest backup for each database.","in":"query","name":"onlyLatestPerDatabase","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/LongTermRetentionDatabaseStateParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of backups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackupListResult"},"examples":{"Get all long term retention backups under the server.":{"$ref":"#/components/examples/Get_all_long_term_retention_backups_under_the_server."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups":{"get":{"description":"Lists all long term retention backups for a database.","operationId":"LongTermRetentionBackups_ListByDatabase","parameters":[{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the database.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the database.":{"value":"testserver"}}},{"description":"The name of the database","in":"path","name":"longTermRetentionDatabaseName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the database.":{"value":"testDatabase"}}},{"description":"Whether or not to only get the latest backup for each database.","in":"query","name":"onlyLatestPerDatabase","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/LongTermRetentionDatabaseStateParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of backups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackupListResult"},"examples":{"Get all long term retention backups under the database.":{"$ref":"#/components/examples/Get_all_long_term_retention_backups_under_the_database."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}":{"delete":{"description":"Deletes a long term retention backup.","operationId":"LongTermRetentionBackups_Delete","parameters":[{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"testserver"}}},{"description":"The name of the database","in":"path","name":"longTermRetentionDatabaseName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"testDatabase"}}},{"description":"The backup name.","in":"path","name":"backupName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"55555555-6666-7777-8888-999999999999;131637960820000000"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully deleted the backup."},"202":{"description":"Accepted"},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-long-running-operation":true},"get":{"description":"Gets a long term retention backup.","operationId":"LongTermRetentionBackups_Get","parameters":[{"description":"The location of the database.","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"testserver"}}},{"description":"The name of the database","in":"path","name":"longTermRetentionDatabaseName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"testDatabase"}}},{"description":"The backup name.","in":"path","name":"backupName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"55555555-6666-7777-8888-999999999999;131637960820000000"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the backup.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackup"},"examples":{"Get the long term retention backup.":{"$ref":"#/components/examples/Get_the_long_term_retention_backup."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["LongTermRetentionBackups"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups":{"get":{"description":"Lists the long term retention backups for a given location.","operationId":"LongTermRetentionBackups_ListByResourceGroupLocation","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the location.":{"value":"japaneast"}}},{"description":"Whether or not to only get the latest backup for each database.","in":"query","name":"onlyLatestPerDatabase","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/LongTermRetentionDatabaseStateParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of backups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackupListResult"},"examples":{"Get all long term retention backups under the location.":{"$ref":"#/components/examples/Get_all_long_term_retention_backups_under_the_location."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups":{"get":{"description":"Lists the long term retention backups for a given server.","operationId":"LongTermRetentionBackups_ListByResourceGroupServer","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the server.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the server.":{"value":"testserver"}}},{"description":"Whether or not to only get the latest backup for each database.","in":"query","name":"onlyLatestPerDatabase","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/LongTermRetentionDatabaseStateParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of backups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackupListResult"},"examples":{"Get all long term retention backups under the server.":{"$ref":"#/components/examples/Get_all_long_term_retention_backups_under_the_server."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups":{"get":{"description":"Lists all long term retention backups for a database.","operationId":"LongTermRetentionBackups_ListByResourceGroupDatabase","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the database.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the database.":{"value":"testserver"}}},{"description":"The name of the database","in":"path","name":"longTermRetentionDatabaseName","required":true,"schema":{"type":"string"},"examples":{"Get all long term retention backups under the database.":{"value":"testDatabase"}}},{"description":"Whether or not to only get the latest backup for each database.","in":"query","name":"onlyLatestPerDatabase","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/LongTermRetentionDatabaseStateParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of backups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackupListResult"},"examples":{"Get all long term retention backups under the database.":{"$ref":"#/components/examples/Get_all_long_term_retention_backups_under_the_database."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}":{"delete":{"description":"Deletes a long term retention backup.","operationId":"LongTermRetentionBackups_DeleteByResourceGroup","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"description":"The location of the database","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"testserver"}}},{"description":"The name of the database","in":"path","name":"longTermRetentionDatabaseName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"testDatabase"}}},{"description":"The backup name.","in":"path","name":"backupName","required":true,"schema":{"type":"string"},"examples":{"Delete the long term retention backup.":{"value":"55555555-6666-7777-8888-999999999999;131637960820000000"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully deleted the backup."},"202":{"description":"Accepted"},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["LongTermRetentionBackups"],"x-ms-long-running-operation":true},"get":{"description":"Gets a long term retention backup.","operationId":"LongTermRetentionBackups_GetByResourceGroup","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"description":"The location of the database.","in":"path","name":"locationName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"japaneast"}}},{"description":"The name of the server","in":"path","name":"longTermRetentionServerName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"testserver"}}},{"description":"The name of the database","in":"path","name":"longTermRetentionDatabaseName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"testDatabase"}}},{"description":"The backup name.","in":"path","name":"backupName","required":true,"schema":{"type":"string"},"examples":{"Get the long term retention backup.":{"value":"55555555-6666-7777-8888-999999999999;131637960820000000"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the backup.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongTermRetentionBackup"},"examples":{"Get the long term retention backup.":{"$ref":"#/components/examples/Get_the_long_term_retention_backup."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["LongTermRetentionBackups"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies":{"get":{"description":"Gets a database's long term retention policy.","operationId":"BackupLongTermRetentionPolicies_ListByDatabase","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/DatabaseNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully get the policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupLongTermRetentionPolicy"},"examples":{"Get the long term retention policy for the database.":{"$ref":"#/components/examples/Get_the_long_term_retention_policy_for_the_database."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["BackupLongTermRetentionPolicies"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}":{"get":{"description":"Gets a database's long term retention policy.","operationId":"BackupLongTermRetentionPolicies_Get","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/DatabaseNameParameter"},{"description":"The policy name. Should always be Default.","in":"path","name":"policyName","required":true,"x-ms-enum":{"modelAsString":true,"name":"LongTermRetentionPolicyName"},"schema":{"type":"string","enum":["default"]},"examples":{"Get the long term retention policy for the database.":{"value":"default"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully get the policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupLongTermRetentionPolicy"},"examples":{"Get the long term retention policy for the database.":{"$ref":"#/components/examples/Get_the_long_term_retention_policy_for_the_database."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["BackupLongTermRetentionPolicies"]},"put":{"description":"Sets a database's long term retention policy.","operationId":"BackupLongTermRetentionPolicies_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/DatabaseNameParameter"},{"description":"The policy name. Should always be Default.","in":"path","name":"policyName","required":true,"x-ms-enum":{"modelAsString":true,"name":"LongTermRetentionPolicyName"},"schema":{"type":"string","enum":["default"]},"examples":{"Create or update the long term retention policy for the database.":{"value":"default"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupLongTermRetentionPolicy"}}},"description":"The long term retention policy info.","required":true},"responses":{"200":{"description":"Successfully set the policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupLongTermRetentionPolicy"},"examples":{"Create or update the long term retention policy for the database.":{"$ref":"#/components/examples/Create_or_update_the_long_term_retention_policy_for_the_database."}}}}},"202":{"description":"Accepted"},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 LongTermRetentionPolicyNotSupported - Long Term Retention is not supported on this database.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["BackupLongTermRetentionPolicies"],"x-ms-long-running-operation":true}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_all_long_term_retention_backups_under_the_location.":{"value":{"value":[{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver1/longTermRetentionDatabases/testDatabase1/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000","name":"55555555-6666-7777-8888-999999999999;2017-08-23T08:00:00.000Z","properties":{"backupTime":"2017-08-23T08:00:00.000Z","databaseName":"testDatabase1","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver1"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver2/longTermRetentionDatabases/testDatabase2/longTermRetentionBackups/12341234-1234-1234-1234-123123123123;131657960820000000","name":"12341234-1234-1234-1234-123123123123;2017-08-30T08:00:00.000Z","properties":{"backupTime":"2017-08-30T08:00:00.000Z","databaseName":"testDatabase2","serverCreateTime":"2017-04-10T08:00:00.000Z","serverName":"testserver2"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver3/longTermRetentionDatabases/testDatabase3/longTermRetentionBackups/43214321-4321-4321-4321-321321321321;131677960820000000","name":"43214321-4321-4321-4321-321321321321;2017-09-06T08:00:00.000Z","properties":{"backupTime":"2017-09-06T08:00:00.000Z","databaseName":"testDatabase3","serverCreateTime":"2017-05-10T08:00:00.000Z","serverName":"testserver3"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"}]}},"Get_all_long_term_retention_backups_under_the_server.":{"value":{"value":[{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase1/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000","name":"55555555-6666-7777-8888-999999999999;131637960820000000","properties":{"backupTime":"2017-08-23T08:00:00.000Z","databaseName":"testDatabase1","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase2/longTermRetentionBackups/12341234-1234-1234-1234-123123123123;131657960820000000","name":"12341234-1234-1234-1234-123123123123;131657960820000000","properties":{"backupTime":"2017-08-30T08:00:00.000Z","databaseName":"testDatabase2","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase3/longTermRetentionBackups/43214321-4321-4321-4321-321321321321;131677960820000000","name":"43214321-4321-4321-4321-321321321321;131667960820000000","properties":{"backupTime":"2017-09-06T08:00:00.000Z","databaseName":"testDatabase3","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"}]}},"Get_all_long_term_retention_backups_under_the_database.":{"value":{"value":[{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000","name":"55555555-6666-7777-8888-999999999999;131637960820000000","properties":{"backupTime":"2017-08-23T08:00:00.000Z","databaseName":"testDatabase","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131657960820000000","name":"55555555-6666-7777-8888-999999999999;131657960820000000","properties":{"backupTime":"2017-08-30T08:00:00.000Z","databaseName":"testDatabase","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"},{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131677960820000000","name":"55555555-6666-7777-8888-999999999999;131677960820000000","properties":{"backupTime":"2017-09-06T08:00:00.000Z","databaseDeletionTime":"2017-09-07T08:00:00.000Z","databaseName":"testDatabase","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"}]}},"Get_the_long_term_retention_backup.":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/2017-03-10T08:00:00.000Z;55555555-6666-7777-8888-999999999999;2017-09-06T08:00:00.000Z","name":"2017-03-10T08:00:00.000Z;55555555-6666-7777-8888-999999999999;131637960820000000","properties":{"backupTime":"2017-09-06T08:00:00.000Z","databaseName":"testDatabase","serverCreateTime":"2017-03-10T08:00:00.000Z","serverName":"testserver"},"type":"Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups"}},"Get_the_long_term_retention_policy_for_the_database.":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/resourceGroups/resourceGroup/servers/testserver/databases/testDatabase/backupLongTermRetentionPolicies/default","name":"default","properties":{"monthlyRetention":"P1Y","weekOfYear":5,"weeklyRetention":"P1M","yearlyRetention":"P5Y"},"type":"Microsoft.Sql/resourceGroups/servers/databases/backupLongTermRetentionPolicies"}},"Create_or_update_the_long_term_retention_policy_for_the_database.":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/resourceGroups/resourceGroup/servers/testserver/databases/testDatabase/backupLongTermRetentionPolicies/default","name":"default","properties":{"monthlyRetention":"P1Y","weekOfYear":5,"weeklyRetention":"P1M","yearlyRetention":"P5Y"},"type":"Microsoft.Sql/resourceGroups/servers/databases/backupLongTermRetentionPolicies"}}},"parameters":{"ApiVersionParameter":{"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 all long term retention backups under the location.":{"value":"2017-03-01"},"Get all long term retention backups under the server.":{"value":"2017-03-01"},"Get all long term retention backups under the database.":{"value":"2017-03-01"},"Delete the long term retention backup.":{"value":"2017-03-01-preview"},"Get the long term retention backup.":{"value":"2017-03-01"},"Get the long term retention policy for the database.":{"value":"2017-03-01"},"Create or update the long term retention policy for the database.":{"value":"2017-03-01"}}},"BlobAuditingPolicyNameParameter":{"description":"The name of the blob auditing policy.","in":"path","name":"blobAuditingPolicyName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","enum":["default"]}},"DatabaseNameParameter":{"description":"The name of the database.","in":"path","name":"databaseName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get the long term retention policy for the database.":{"value":"testDatabase"},"Create or update the long term retention policy for the database.":{"value":"testDatabase"}}},"LongTermRetentionDatabaseStateParameter":{"description":"Whether to query against just live databases, just deleted databases, or all databases.","in":"query","name":"databaseState","required":false,"x-ms-enum":{"modelAsString":true,"name":"longTermRetentionDatabaseState"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["All","Live","Deleted"]}},"ManagedInstanceNameParameter":{"description":"The name of the managed instance.","in":"path","name":"managedInstanceName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"ResourceGroupParameter":{"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 all long term retention backups under the location.":{"value":"testResourceGroup"},"Get all long term retention backups under the server.":{"value":"testResourceGroup"},"Get all long term retention backups under the database.":{"value":"testResourceGroup"},"Delete the long term retention backup.":{"value":"testResourceGroup"},"Get the long term retention backup.":{"value":"testResourceGroup"},"Get the long term retention policy for the database.":{"value":"resourceGroup"},"Create or update the long term retention policy for the database.":{"value":"resourceGroup"}}},"ServerNameParameter":{"description":"The name of the server.","in":"path","name":"serverName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get the long term retention policy for the database.":{"value":"testserver"},"Create or update the long term retention policy for the database.":{"value":"testserver"}}},"SqlVirtualMachineContainerNameParameter":{"description":"The name of the SqlVirtualMachineContainer.","in":"path","name":"sqlVirtualMachineContainerName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"SqlVirtualMachineInstanceNameParameter":{"description":"The name of the SqlVirtualMachineInstance.","in":"path","name":"sqlVirtualMachineInstanceName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"SubscriptionIdParameter":{"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 all long term retention backups under the location.":{"value":"00000000-1111-2222-3333-444444444444"},"Get all long term retention backups under the server.":{"value":"00000000-1111-2222-3333-444444444444"},"Get all long term retention backups under the database.":{"value":"00000000-1111-2222-3333-444444444444"},"Delete the long term retention backup.":{"value":"00000000-1111-2222-3333-444444444444"},"Get the long term retention backup.":{"value":"00000000-1111-2222-3333-444444444444"},"Get the long term retention policy for the database.":{"value":"00000000-1111-2222-3333-444444444444"},"Create or update the long term retention policy for the database.":{"value":"00000000-1111-2222-3333-444444444444"}}},"VirtualClusterNameParameter":{"description":"The name of the virtual cluster.","in":"path","name":"virtualClusterName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}}},"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":{"BackupLongTermRetentionPolicy":{"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 long term retention policy.","properties":{"properties":{"$ref":"#/components/schemas/LongTermRetentionPolicyProperties"}},"type":"object"},"LongTermRetentionBackup":{"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 long term retention backup.","properties":{"properties":{"$ref":"#/components/schemas/LongTermRetentionBackupProperties"}},"type":"object"},"LongTermRetentionBackupListResult":{"description":"A list of long term retention backups.","properties":{"nextLink":{"description":"Link to retrieve next page of results.","readOnly":true,"type":"string"},"value":{"description":"Array of results.","items":{"$ref":"#/components/schemas/LongTermRetentionBackup"},"readOnly":true,"type":"array"}},"type":"object"},"LongTermRetentionBackupProperties":{"description":"Properties of a long term retention backup","properties":{"backupExpirationTime":{"description":"The time the long term retention backup will expire.","format":"date-time","readOnly":true,"type":"string"},"backupTime":{"description":"The time the backup was taken","format":"date-time","readOnly":true,"type":"string"},"databaseDeletionTime":{"description":"The delete time of the database","format":"date-time","readOnly":true,"type":"string"},"databaseName":{"description":"The name of the database the backup belong to","readOnly":true,"type":"string"},"serverCreateTime":{"description":"The create time of the server.","format":"date-time","readOnly":true,"type":"string"},"serverName":{"description":"The server name that the backup database belong to.","readOnly":true,"type":"string"}},"type":"object"},"LongTermRetentionPolicyProperties":{"description":"Properties of a long term retention policy","properties":{"monthlyRetention":{"description":"The monthly retention policy for an LTR backup in an ISO 8601 format.","type":"string"},"weekOfYear":{"description":"The week of year to take the yearly backup in an ISO 8601 format.","format":"int32","type":"integer"},"weeklyRetention":{"description":"The weekly retention policy for an LTR backup in an ISO 8601 format.","type":"string"},"yearlyRetention":{"description":"The yearly retention policy for an LTR backup in an ISO 8601 format.","type":"string"}},"type":"object"}}}}