Web Apps - Update Azure Storage Accounts
「アプリの Azure ストレージ アカウント構成を更新する」の説明。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts?api-version=2023-01-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 バージョン |
要求本文
名前 | 型 | 説明 |
---|---|---|
kind |
string |
リソースの種類。 |
properties. |
ディクショナリ ストレージの Azure Files または Blob Storage アクセス情報の値。 |
応答
名前 | 型 | 説明 |
---|---|---|
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 | ユーザー アカウントを偽装する |
例
Update Azure Storage Accounts
要求のサンプル
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/azurestorageaccounts?api-version=2023-01-01
{
"properties": {
"account1": {
"type": "AzureFiles",
"accountName": "testsa",
"shareName": "web",
"accessKey": "26515^%@#*",
"mountPath": "/mounts/a/files"
}
}
}
応答のサンプル
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web",
"name": "web",
"type": "Microsoft.Web/sites/config",
"kind": "app",
"properties": {
"account1": {
"type": "AzureFiles",
"accountName": "testsa",
"shareName": "web",
"mountPath": "/mounts/a/files",
"state": "Ok"
}
}
}
定義
名前 | 説明 |
---|---|
Azure |
ディクショナリ ストレージの Azure Files または Blob Storage アクセス情報の値。 |
Azure |
AzureStorageInfo ディクショナリ リソース。 |
Azure |
ストレージ アカウントの状態。 |
Azure |
ストレージの種類。 |
Default |
App Service エラー応答。 |
Details | |
Error |
エラー モデル。 |
AzureStorageInfoValue
ディクショナリ ストレージの Azure Files または Blob Storage アクセス情報の値。
名前 | 型 | 説明 |
---|---|---|
accessKey |
string |
ストレージ アカウントのアクセス キー。 |
accountName |
string |
ストレージ アカウントの名前。 |
mountPath |
string |
サイトのランタイム環境内にストレージをマウントするパス。 |
shareName |
string |
ファイル共有の名前 (BLOB ストレージの場合はコンテナー名)。 |
state |
ストレージ アカウントの状態。 |
|
type |
ストレージの種類。 |
AzureStoragePropertyDictionaryResource
AzureStorageInfo ディクショナリ リソース。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID。 |
kind |
string |
リソースの種類。 |
name |
string |
リソース名。 |
properties. |
ディクショナリ ストレージの Azure Files または Blob Storage アクセス情報の値。 |
|
type |
string |
リソースの種類。 |
AzureStorageState
ストレージ アカウントの状態。
値 | 説明 |
---|---|
InvalidCredentials | |
InvalidShare | |
NotValidated | |
Ok |
AzureStorageType
ストレージの種類。
値 | 説明 |
---|---|
AzureBlob | |
AzureFiles |
DefaultErrorResponse
App Service エラー応答。
名前 | 型 | 説明 |
---|---|---|
error |
エラー モデル。 |
Details
名前 | 型 | 説明 |
---|---|---|
code |
string |
プログラムによってエラーを識別するための標準化された文字列。 |
message |
string |
エラーの詳細な説明とデバッグ情報。 |
target |
string |
エラーの詳細な説明とデバッグ情報。 |
Error
エラー モデル。
名前 | 型 | 説明 |
---|---|---|
code |
string |
プログラムによってエラーを識別するための標準化された文字列。 |
details |
Details[] |
詳細なエラー。 |
innererror |
string |
デバッグ エラーの詳細。 |
message |
string |
エラーの詳細な説明とデバッグ情報。 |
target |
string |
エラーの詳細な説明とデバッグ情報。 |