Web Apps - Update Azure Storage Accounts
Beschrijving voor Updates de configuraties van het Azure-opslagaccount van een app.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts?api-version=2023-12-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Naam van de app. |
resource
|
path | True |
string |
Naam van de resourcegroep waartoe de resource behoort. Regex-patroon: |
subscription
|
path | True |
string |
Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 000000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API-versie |
Aanvraagbody
Name | Type | Description |
---|---|---|
kind |
string |
Soort resource. |
properties. |
Azure Files- of Blob Storage-waarde voor toegangsgegevens voor woordenlijstopslag. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
App Service foutreactie. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Update Azure Storage Accounts
Voorbeeldaanvraag
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"
}
}
}
Voorbeeldrespons
{
"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"
}
}
}
Definities
Name | Description |
---|---|
Azure |
Azure Files- of Blob Storage-waarde voor toegangsgegevens voor woordenlijstopslag. |
Azure |
AzureStorageInfo-woordenlijstresource. |
Azure |
Het koppelingsprotocol dat moet worden gebruikt voor het opslagaccount. |
Azure |
Status van het opslagaccount. |
Azure |
Type opslag. |
Default |
App Service foutreactie. |
Details | |
Error |
Foutmodel. |
AzureStorageInfoValue
Azure Files- of Blob Storage-waarde voor toegangsgegevens voor woordenlijstopslag.
Name | Type | Description |
---|---|---|
accessKey |
string |
Toegangssleutel voor het opslagaccount. |
accountName |
string |
Naam van het opslagaccount. |
mountPath |
string |
Pad voor het koppelen van de opslag binnen de runtime-omgeving van de site. |
protocol |
Het koppelingsprotocol dat moet worden gebruikt voor het opslagaccount. |
|
shareName |
string |
Naam van de bestandsshare (containernaam, voor Blob Storage). |
state |
Status van het opslagaccount. |
|
type |
Type opslag. |
AzureStoragePropertyDictionaryResource
AzureStorageInfo-woordenlijstresource.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
kind |
string |
Soort resource. |
name |
string |
Resourcenaam. |
properties. |
Azure Files- of Blob Storage-waarde voor toegangsgegevens voor woordenlijstopslag. |
|
type |
string |
Resourcetype. |
AzureStorageProtocol
Het koppelingsprotocol dat moet worden gebruikt voor het opslagaccount.
Name | Type | Description |
---|---|---|
Http |
string |
|
Nfs |
string |
|
Smb |
string |
AzureStorageState
Status van het opslagaccount.
Name | Type | Description |
---|---|---|
InvalidCredentials |
string |
|
InvalidShare |
string |
|
NotValidated |
string |
|
Ok |
string |
AzureStorageType
Type opslag.
Name | Type | Description |
---|---|---|
AzureBlob |
string |
|
AzureFiles |
string |
DefaultErrorResponse
App Service foutreactie.
Name | Type | Description |
---|---|---|
error |
Foutmodel. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
Error
Foutmodel.
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
details |
Details[] |
Gedetailleerde fouten. |
innererror |
string |
Meer informatie over foutopsporing. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |