Long Term Retention Backups - Delete
長期保有バックアップを削除します。
DELETE https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}?api-version=2021-11-01
URI パラメーター
名前
/
必須
型
説明
backupName
path
True
string
バックアップ名。
locationName
path
True
string
データベースの場所
longTermRetentionDatabaseName
path
True
string
データベースの名前
longTermRetentionServerName
path
True
string
サーバーの名前
subscriptionId
path
True
string
Azure サブスクリプションを識別するサブスクリプション ID。
api-version
query
True
string
要求に使用する API バージョン。
応答
名前
型
説明
200 OK
バックアップが正常に削除されました。
202 Accepted
受け入れられた
Other Status Codes
エラー応答: ***
400 InvalidLongTermRetentionBackupId - SQL DB の長期保有バックアップ識別子が無効です。
400 InvalidParameterValue - パラメーターに無効な値が指定されました。
400 LongTermRetentionMismatchingSubscriptionId - 指定されたサブスクリプション ID が、他の入力の ID と一致しませんでした
400 LongTermRetentionMismatchingResourceGroupName - 指定されたリソース グループ名が、他の入力の名前と一致しませんでした
400 LongTermRetentionMismatchingServerName - 指定されたサーバー名が、他の入力の名前と一致しませんでした
404 SubscriptionDoesNotHaveServer - 要求されたサーバーが見つかりませんでした
404 ServerNotInSubscriptionResourceGroup - 指定されたサーバーが、指定されたリソース グループとサブスクリプションに存在しません。
404 OperationIdNotFound - Id を持つ操作が存在しません。
409 OperationCancelled - 操作がユーザーによって取り消されました。
409 OperationInterrupted - 同じリソースに対する別の操作によって中断されたため、リソースに対する操作を完了できませんでした。
429 SubscriptionTooManyCreateUpdateRequests - 使用可能なリソースによって処理できる最大要求を超える要求。
429 SubscriptionTooManyRequests - 使用可能なリソースによって処理できる最大要求を超える要求。
500 OperationTimedOut - 操作がタイムアウトし、自動的にロールバックされました。 操作を再試行してください。
503 TooManyRequests - 使用可能なリソースによって処理できる最大要求を超える要求。
例
Delete the long term retention backup.
要求のサンプル
DELETE https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000?api-version=2021-11-01
/**
* Samples for LongTermRetentionBackups Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/LongTermRetentionBackupDelete.json
*/
/**
* Sample code: Delete the long term retention backup.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void deleteTheLongTermRetentionBackup(com.azure.resourcemanager.AzureResourceManager azure) {
azure.sqlServers().manager().serviceClient().getLongTermRetentionBackups().delete("japaneast", "testserver",
"testDatabase", "55555555-6666-7777-8888-999999999999;131637960820000000",
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue