Web Apps - Create Or Update Function Secret

A függvény titkos kódjának hozzáadása vagy frissítése leírás.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}?api-version=2023-12-01

URI-paraméterek

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

string

A függvény neve.

keyName
path True

string

A kulcs neve.

name
path True

string

Webhely neve.

resourceGroupName
path True

string

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

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

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 Típus Description
name

string

Kulcs neve

value

string

Kulcsérték

Válaszok

Name Típus Description
200 OK

KeyInfo

A kulcs frissült.

201 Created

KeyInfo

A kulcs létre lett hozva.

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

Definíciók

Name Description
DefaultErrorResponse

App Service hibaválasz.

Details
Error

Hibamodell.

KeyInfo

Függvénykulcs adatai.

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.

KeyInfo

Függvénykulcs adatai.

Name Típus Description
name

string

Kulcs neve

value

string

Kulcsérték