Configurations - Update
匯報 伺服器的組態。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}?api-version=2023-06-01-preview
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
configuration
|
path | True |
string |
伺服器組態的名稱。 |
resource
|
path | True |
string |
資源群組的名稱。 名稱不區分大小寫。 |
server
|
path | True |
string |
伺服器的名稱。 Regex 模式: |
subscription
|
path | True |
string uuid |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
properties.currentValue |
string |
組態的目前值。 |
properties.source |
組態的來源。 |
|
properties.value |
string |
組態的值。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
202 Accepted |
已接受 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Update a user configuration
範例要求
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/testserver/configurations/event_scheduler?api-version=2023-06-01-preview
{
"properties": {
"value": "on",
"source": "user-override"
}
}
範例回覆
{
"properties": {
"value": "ON",
"description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.",
"defaultValue": "OFF",
"dataType": "Enumeration",
"allowedValues": "ON,OFF",
"source": "user-override",
"isConfigPendingRestart": "False",
"isDynamicConfig": "True",
"isReadOnly": "False"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/configurations/event_scheduler",
"name": "event_scheduler",
"type": "Microsoft.DBforMySQL/flexibleServers/configurations"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-01-preview
定義
名稱 | Description |
---|---|
Configuration |
表示組態。 |
Configuration |
組態的來源。 |
created |
建立資源的身分識別類型。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
Is |
如果是擱置重新啟動的組態,則為 。 |
Is |
如果 是動態設定。 |
Is |
如果 是唯讀的組態。 |
system |
與建立和上次修改資源相關的元數據。 |
Configuration
表示組態。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的完整資源識別碼。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
資源的名稱 |
properties.allowedValues |
string |
組態的允許值。 |
properties.currentValue |
string |
組態的目前值。 |
properties.dataType |
string |
組態的數據類型。 |
properties.defaultValue |
string |
組態的預設值。 |
properties.description |
string |
組態的描述。 |
properties.documentationLink |
string |
用來從社群或 Azure 網站取得文件的連結。 |
properties.isConfigPendingRestart |
如果是擱置重新啟動的組態,則為 。 |
|
properties.isDynamicConfig |
如果 是動態設定。 |
|
properties.isReadOnly |
如果 是唯讀的組態。 |
|
properties.source |
組態的來源。 |
|
properties.value |
string |
組態的值。 |
systemData |
Azure Resource Manager 包含 createdBy 和 modifiedBy 資訊的中繼資料。 |
|
type |
string |
資源類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
ConfigurationSource
組態的來源。
名稱 | 類型 | Description |
---|---|---|
system-default |
string |
|
user-override |
string |
createdByType
建立資源的身分識別類型。
名稱 | 類型 | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細資料。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
錯誤物件。 |
IsConfigPendingRestart
如果是擱置重新啟動的組態,則為 。
名稱 | 類型 | Description |
---|---|---|
False |
string |
|
True |
string |
IsDynamicConfig
如果 是動態設定。
名稱 | 類型 | Description |
---|---|---|
False |
string |
|
True |
string |
IsReadOnly
如果 是唯讀的組態。
名稱 | 類型 | Description |
---|---|---|
False |
string |
|
True |
string |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string |
資源建立的時間戳 (UTC) 。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |