Web Apps - List Backups
[アプリの既存のバックアップを取得する] の説明。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups?api-version=2024-04-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
name
|
path | True |
string |
アプリの名前。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
リソースが属するリソース グループの名前。 |
subscription
|
path | True |
string |
Azure サブスクリプション ID。 これは GUID 形式の文字列です (例: 000000000-0000-0000-0000-000000000000)。 |
api-version
|
query | True |
string |
API バージョン |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
わかりました |
|
Other Status Codes |
App Service エラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
List web app backups
要求のサンプル
応答のサンプル
{
"value": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345",
"name": "sitef6141",
"type": "Microsoft.Web/sites",
"properties": {
"id": 12345,
"storageAccountUrl": "DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=<account-key>",
"blobName": "sitef6141_2024-04-01",
"name": "sitef6141_2024-04-01",
"status": "InProgress",
"sizeInBytes": 56091883,
"created": "2022-09-03T17:33:11.641Z",
"log": "Succeeded",
"databases": [
{
"databaseType": "SqlAzure",
"name": "backenddb",
"connectionStringName": "backend",
"connectionString": "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;<Attribute>=<value>]"
},
{
"databaseType": "SqlAzure",
"name": "statsdb",
"connectionStringName": "stats",
"connectionString": "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;<Attribute>=<value>]"
}
],
"scheduled": true,
"lastRestoreTimeStamp": "2022-09-04T17:33:11.641Z",
"finishedTimeStamp": "2022-09-05T17:33:11.641Z",
"websiteSizeInBytes": 56091883
}
}
]
}
定義
名前 | 説明 |
---|---|
Backup |
バックアップの説明。 |
Backup |
バックアップ項目のコレクション。 |
Backup |
バックアップの状態。 |
Database |
データベース バックアップの設定。 |
Database |
データベースの種類 (SqlAzure/MySql など)。 |
Default |
App Service エラー応答。 |
Details | |
Error |
エラー モデル。 |
BackupItem
バックアップの説明。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID。 |
kind |
string |
リソースの種類。 |
name |
string |
リソース名。 |
properties.blobName |
string |
このバックアップのデータを含む BLOB の名前。 |
properties.correlationId |
string |
一意の関連付け識別子。 Azure サポートとの通信中に、タイムスタンプと共にこれを使用してください。 |
properties.created |
string (date-time) |
バックアップ作成のタイムスタンプ。 |
properties.databases |
バックアップに含まれるデータベースの一覧。 |
|
properties.finishedTimeStamp |
string (date-time) |
このバックアップが完了したときのタイムスタンプ。 |
properties.id |
integer (int32) |
バックアップの ID。 |
properties.lastRestoreTimeStamp |
string (date-time) |
このバックアップを使用した最後の復元操作のタイムスタンプ。 |
properties.log |
string |
このバックアップに関する詳細。 エラー メッセージが含まれている可能性があります。 |
properties.name |
string |
このバックアップの名前。 |
properties.scheduled |
boolean |
True の 場合、スケジュールがトリガーされているためにこのバックアップが作成されました。 |
properties.sizeInBytes |
integer (int64) |
バックアップのサイズ (バイト単位)。 |
properties.status |
バックアップの状態。 |
|
properties.storageAccountUrl |
string |
このバックアップを含むストレージ アカウント コンテナーの SAS URL。 |
properties.websiteSizeInBytes |
integer (int64) |
バックアップされた元の Web アプリのサイズ。 |
type |
string |
リソースの種類。 |
BackupItemCollection
バックアップ項目のコレクション。
名前 | 型 | 説明 |
---|---|---|
nextLink |
string |
リソースの次のページへのリンク。 |
value |
リソースのコレクション。 |
BackupItemStatus
バックアップの状態。
値 | 説明 |
---|---|
Created | |
DeleteFailed | |
DeleteInProgress | |
Deleted | |
Failed | |
InProgress | |
PartiallySucceeded | |
Skipped | |
Succeeded | |
TimedOut |
DatabaseBackupSetting
データベース バックアップの設定。
名前 | 型 | 説明 |
---|---|---|
connectionString |
string |
バックアップまたは復元されるデータベースへの接続文字列を格納します。 復元が新しいデータベースに対して行われる場合、内部のデータベース名は新しいデータベース名になります。 |
connectionStringName |
string |
SiteConfig.ConnectionStrings にリンクされている接続文字列名が含まれています。 これは、接続文字列の上書きオプションを使用して復元中に使用されます。 |
databaseType |
データベースの種類 (SqlAzure/MySql など)。 |
|
name |
string |
DatabaseType
データベースの種類 (SqlAzure/MySql など)。
値 | 説明 |
---|---|
LocalMySql | |
MySql | |
PostgreSql | |
SqlAzure |
DefaultErrorResponse
App Service エラー応答。
名前 | 型 | 説明 |
---|---|---|
error |
エラー モデル。 |
Details
名前 | 型 | 説明 |
---|---|---|
code |
string |
プログラムによってエラーを識別するための標準化された文字列。 |
message |
string |
エラーの詳細な説明とデバッグ情報。 |
target |
string |
エラーの詳細な説明とデバッグ情報。 |
Error
エラー モデル。
名前 | 型 | 説明 |
---|---|---|
code |
string |
プログラムによってエラーを識別するための標準化された文字列。 |
details |
Details[] |
詳細なエラー。 |
innererror |
string |
デバッグ エラーの詳細。 |
message |
string |
エラーの詳細な説明とデバッグ情報。 |
target |
string |
エラーの詳細な説明とデバッグ情報。 |