Configurations - Create Or Update
Bir sunucunun yapılandırmasını Güncelleştirmeler.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}?api-version=2018-06-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
configuration
|
path | True |
string |
Sunucu yapılandırmasının adı. |
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
server
|
path | True |
string |
Sunucunun adı. |
subscription
|
path | True |
string |
Hedef aboneliğin kimliği. |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
İstek Gövdesi
Name | Tür | Description |
---|---|---|
properties.source |
string |
Yapılandırmanın kaynağı. |
properties.value |
string |
Yapılandırmanın değeri. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Tamam |
|
202 Accepted |
Kabul edildi |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
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 | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
ConfigurationCreateOrUpdate
Sample Request
PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver/configurations/event_scheduler?api-version=2018-06-01
{
"properties": {
"value": "off",
"source": "user-override"
}
}
Sample Response
{
"properties": {
"value": "ON",
"description": "Indicates the status of the Event Scheduler.",
"defaultValue": "OFF",
"dataType": "Enumeration",
"allowedValues": "ON,OFF,DISABLED",
"source": "user-override"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver/configurations/event_scheduler",
"name": "event_scheduler",
"type": "Microsoft.DBforMariaDB/servers/configurations"
}
Tanımlar
Name | Description |
---|---|
Cloud |
Batch hizmetinden bir hata yanıtı. |
Configuration |
Yapılandırmayı temsil eder. |
Error |
Kaynak yönetimi hatası ek bilgileri. |
Error |
Hata Yanıtı |
CloudError
Batch hizmetinden bir hata yanıtı.
Name | Tür | Description |
---|---|---|
error |
Hata Yanıtı |
Configuration
Yapılandırmayı temsil eder.
Name | Tür | Description |
---|---|---|
id |
string |
Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Kaynağın adı |
properties.allowedValues |
string |
Yapılandırmanın izin verilen değerleri. |
properties.dataType |
string |
Yapılandırmanın veri türü. |
properties.defaultValue |
string |
Yapılandırmanın varsayılan değeri. |
properties.description |
string |
Yapılandırmanın açıklaması. |
properties.source |
string |
Yapılandırmanın kaynağı. |
properties.value |
string |
Yapılandırmanın değeri. |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
Name | Tür | Description |
---|---|---|
info |
object |
Ek bilgiler. |
type |
string |
Ek bilgi türü. |
ErrorResponse
Hata Yanıtı
Name | Tür | Description |
---|---|---|
additionalInfo |
Hata ek bilgileri. |
|
code |
string |
Hata kodu. |
details |
Hata ayrıntıları. |
|
message |
string |
Hata iletisi. |
target |
string |
Hata hedefi. |