Web Apps - Create Or Update Host Secret Slot

新增或更新主機層級密碼的描述。

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

URI 參數

名稱 位於 必要 類型 Description
keyName
path True

string

索引鍵名稱。

keyType
path True

string

主機金鑰的類型。

name
path True

string

網站名稱。

resourceGroupName
path True

string

資源所屬資源群組的名稱。

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

slot
path True

string

部署位置的名稱。

subscriptionId
path True

string

您的 Azure 訂用帳戶識別碼。 這是 GUID 格式的字串 (例如 000000000-0000-0000-0000-000000000000) 。

api-version
query True

string

API 版本

要求本文

名稱 類型 Description
name

string

金鑰名稱

value

string

金鑰值

回應

名稱 類型 Description
200 OK

KeyInfo

金鑰已更新。

201 Created

KeyInfo

金鑰已建立。

Other Status Codes

DefaultErrorResponse

App Service 錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

定義

名稱 Description
DefaultErrorResponse

App Service 錯誤回應。

Details
Error

錯誤模型。

KeyInfo

函式金鑰資訊。

DefaultErrorResponse

App Service 錯誤回應。

名稱 類型 Description
error

Error

錯誤模型。

Details

名稱 類型 Description
code

string

標準化字串,以程序設計方式識別錯誤。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

Error

錯誤模型。

名稱 類型 Description
code

string

標準化字串,以程序設計方式識別錯誤。

details

Details[]

詳細的錯誤。

innererror

string

偵錯錯誤的詳細資訊。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

KeyInfo

函式金鑰資訊。

名稱 類型 Description
name

string

金鑰名稱

value

string

金鑰值