Share via


Web Apps - Update Scm Allowed Slot

A Frissítések leírása, hogy a felhasználó engedélyezi-e a hitelesítő adatokat a webhelyen.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/scm?api-version=2023-12-01

URI-paraméterek

Name In Kötelező Típus Description
name
path True

string

Az alkalmazás neve.

resourceGroupName
path True

string

Annak az erőforráscsoportnak a neve, amelyhez az erőforrás tartozik.

Regex pattern: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

subscriptionId
path True

string

Az Azure-előfizetés azonosítója. Ez egy GUID formátumú sztring (például 00000000-0000-0000-0000-00000000000000).

api-version
query True

string

API-verzió

Kérelem törzse

Name Kötelező Típus Description
properties.allow True

boolean

true közzétételi módszerhez való hozzáférés engedélyezése; egyéb esetben: false.

kind

string

Erőforrás típusa.

Válaszok

Name Típus Description
200 OK

CsmPublishingCredentialsPoliciesEntity

OK

Other Status Codes

DefaultErrorResponse

App Service hibaválasz.

Biztonság

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 felhasználói fiók megszemélyesítése

Példák

Update SCM Allowed

Sample Request

PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/basicPublishingCredentialsPolicies/scm?api-version=2023-12-01

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

Sample Response

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

Definíciók

Name Description
CsmPublishingCredentialsPoliciesEntity

Hitelesítőadat-szabályzatok paramétereinek közzététele.

DefaultErrorResponse

App Service hibaválasz.

Details
Error

Hibamodell.

CsmPublishingCredentialsPoliciesEntity

Hitelesítőadat-szabályzatok paramétereinek közzététele.

Name Típus Description
id

string

Erőforrás-azonosító.

kind

string

Erőforrás típusa.

name

string

Erőforrás neve.

properties.allow

boolean

true közzétételi módszerhez való hozzáférés engedélyezése; egyéb esetben: false.

type

string

Erőforrástípus.

DefaultErrorResponse

App Service hibaválasz.

Name Típus Description
error

Error

Hibamodell.

Details

Name Típus Description
code

string

Szabványosított sztring a hiba programozott azonosításához.

message

string

Részletes hibaleírás és hibakeresési információk.

target

string

Részletes hibaleírás és hibakeresési információk.

Error

Hibamodell.

Name Típus Description
code

string

Szabványosított sztring a hiba programozott azonosításához.

details

Details[]

Részletes hibák.

innererror

string

További információ a hibakereséshez.

message

string

Részletes hibaleírás és hibakeresési információk.

target

string

Részletes hibaleírás és hibakeresési információk.