Delen via


Web Apps - Update Ftp Allowed

Beschrijving voor updates, ongeacht of FTP is toegestaan op de site of niet.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp?api-version=2024-04-01

URI-parameters

Name In Vereist Type Description
name
path True

string

Naam van de app.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

Naam van de resourcegroep waartoe de resource behoort.

subscriptionId
path True

string

Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000000).

api-version
query True

string

API-versie

Aanvraagbody

Name Vereist Type Description
properties.allow True

boolean

true toegang tot een publicatiemethode toestaan; anders, false.

kind

string

Soort resource.

Antwoorden

Name Type Description
200 OK

CsmPublishingCredentialsPoliciesEntity

OK

Other Status Codes

DefaultErrorResponse

Foutreactie van App Service.

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 FTP Allowed

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/basicPublishingCredentialsPolicies/ftp?api-version=2024-04-01

{
  "properties": {
    "allow": true
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/basicPublishingCredentialsPolicies/ftp",
  "properties": {
    "allow": true
  }
}

Definities

Name Description
CsmPublishingCredentialsPoliciesEntity

Parameters voor het publiceren van referentiebeleid.

DefaultErrorResponse

Foutreactie van App Service.

Details
Error

Foutmodel.

CsmPublishingCredentialsPoliciesEntity

Parameters voor het publiceren van referentiebeleid.

Name Type Description
id

string

Resource-id.

kind

string

Soort resource.

name

string

Resourcenaam.

properties.allow

boolean

true toegang tot een publicatiemethode toestaan; anders, false.

type

string

Resourcetype.

DefaultErrorResponse

Foutreactie van App Service.

Name Type Description
error

Error

Foutmodel.

Details

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.

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 foutopsporingsgegevens.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.