Web Apps - Update Azure Storage Accounts
Bir uygulamanın Azure depolama hesabı yapılandırmalarını Güncelleştirmeler için açıklama.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts?api-version=2023-12-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
name
|
path | True |
string |
Uygulamanın adı. |
resource
|
path | True |
string |
Kaynağın ait olduğu kaynak grubunun adı. Regex pattern: |
subscription
|
path | True |
string |
Azure abonelik kimliğiniz. Bu GUID biçimli bir dizedir (örn. 000000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API Sürümü |
İstek Gövdesi
Name | Tür | Description |
---|---|---|
kind |
string |
Kaynak türü. |
properties. |
Sözlük depolama için Azure Dosyalar veya Blob Depolama erişim bilgileri değeri. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Tamam |
|
Other Status Codes |
hata yanıtı App Service. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Update Azure Storage Accounts
Sample Request
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/azurestorageaccounts?api-version=2023-12-01
{
"properties": {
"account1": {
"type": "AzureFiles",
"accountName": "testsa",
"shareName": "web",
"accessKey": "26515^%@#*",
"mountPath": "/mounts/a/files"
}
}
}
Sample Response
{
"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"
}
}
}
Tanımlar
Name | Description |
---|---|
Azure |
Sözlük depolama için Azure Dosyalar veya Blob Depolama erişim bilgileri değeri. |
Azure |
AzureStorageInfo sözlük kaynağı. |
Azure |
Depolama hesabı için kullanılacak bağlama protokolü. |
Azure |
Depolama hesabının durumu. |
Azure |
Depolama türü. |
Default |
hata yanıtı App Service. |
Details | |
Error |
Hata modeli. |
AzureStorageInfoValue
Sözlük depolama için Azure Dosyalar veya Blob Depolama erişim bilgileri değeri.
Name | Tür | Description |
---|---|---|
accessKey |
string |
Depolama hesabı için erişim anahtarı. |
accountName |
string |
Depolama hesabının adı. |
mountPath |
string |
Depolamayı sitenin çalışma zamanı ortamına bağlama yolu. |
protocol |
Depolama hesabı için kullanılacak bağlama protokolü. |
|
shareName |
string |
Dosya paylaşımının adı (Blob depolama için kapsayıcı adı). |
state |
Depolama hesabının durumu. |
|
type |
Depolama türü. |
AzureStoragePropertyDictionaryResource
AzureStorageInfo sözlük kaynağı.
Name | Tür | Description |
---|---|---|
id |
string |
Kaynak Kimliği. |
kind |
string |
Kaynak türü. |
name |
string |
Kaynak Adı. |
properties. |
Sözlük depolama için Azure Dosyalar veya Blob Depolama erişim bilgileri değeri. |
|
type |
string |
Kaynak türü. |
AzureStorageProtocol
Depolama hesabı için kullanılacak bağlama protokolü.
Name | Tür | Description |
---|---|---|
Http |
string |
|
Nfs |
string |
|
Smb |
string |
AzureStorageState
Depolama hesabının durumu.
Name | Tür | Description |
---|---|---|
InvalidCredentials |
string |
|
InvalidShare |
string |
|
NotValidated |
string |
|
Ok |
string |
AzureStorageType
Depolama türü.
Name | Tür | Description |
---|---|---|
AzureBlob |
string |
|
AzureFiles |
string |
DefaultErrorResponse
hata yanıtı App Service.
Name | Tür | Description |
---|---|---|
error |
Hata modeli. |
Details
Name | Tür | Description |
---|---|---|
code |
string |
Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize. |
message |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
target |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
Error
Hata modeli.
Name | Tür | Description |
---|---|---|
code |
string |
Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize. |
details |
Details[] |
Ayrıntılı hatalar. |
innererror |
string |
Hata ayıklamak için daha fazla bilgi. |
message |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
target |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |