Share via


Configurations - Update

サーバーの構成を更新します。

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}?api-version=2022-12-01

URI パラメーター

名前 / 必須 説明
configurationName
path True

string

サーバー構成の名前。

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

resourceGroupName
path True

string

リソース グループの名前。 名前の大文字と小文字は区別されます。

serverName
path True

string

サーバーの名前。

Regex pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*

subscriptionId
path True

string

ターゲット サブスクリプションの ID。

api-version
query True

string

この操作に使用する API バージョン。

要求本文

名前 説明
properties.source

string

構成のソース。

properties.value

string

構成の値。

応答

名前 説明
200 OK

Configuration

OK

201 Created

Configuration

作成済み

202 Accepted

同意

Headers

Location: string

Other Status Codes

ErrorResponse

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

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

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Update a user configuration

Sample Request

PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler?api-version=2022-12-01

{
  "properties": {
    "value": "on",
    "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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler",
  "name": "event_scheduler",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations"
}
{
  "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/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler",
  "name": "event_scheduler",
  "type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-12-01
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-12-01

定義

名前 説明
Configuration

構成を表します。

ConfigurationDataType

構成のデータ型。

ConfigurationForUpdate

構成を表します。

createdByType

リソースを作成した ID の種類。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorDetail

エラーの詳細。

ErrorResponse

エラー応答

systemData

リソースの作成と最後の変更に関連するメタデータ。

Configuration

構成を表します。

名前 説明
id

string

リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

リソースの名前

properties.allowedValues

string

構成で使用できる値。

properties.dataType

ConfigurationDataType

構成のデータ型。

properties.defaultValue

string

構成の既定値。

properties.description

string

構成の説明。

properties.documentationLink

string

構成ドキュメントのリンク。

properties.isConfigPendingRestart

boolean

構成の再起動が保留中かどうか。

properties.isDynamicConfig

boolean

構成の動的または静的。

properties.isReadOnly

boolean

構成の読み取り専用かどうか。

properties.source

string

構成のソース。

properties.unit

string

構成単位。

properties.value

string

構成の値。

systemData

systemData

このリソースに関連するシステム メタデータ。

type

string

リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts"

ConfigurationDataType

構成のデータ型。

名前 説明
Boolean

string

Enumeration

string

Integer

string

Numeric

string

ConfigurationForUpdate

構成を表します。

名前 説明
properties.allowedValues

string

構成で使用できる値。

properties.dataType

ConfigurationDataType

構成のデータ型。

properties.defaultValue

string

構成の既定値。

properties.description

string

構成の説明。

properties.documentationLink

string

構成ドキュメントのリンク。

properties.isConfigPendingRestart

boolean

構成の再起動が保留中かどうか。

properties.isDynamicConfig

boolean

構成の動的または静的。

properties.isReadOnly

boolean

構成の読み取り専用かどうか。

properties.source

string

構成のソース。

properties.unit

string

構成単位。

properties.value

string

構成の値。

createdByType

リソースを作成した ID の種類。

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細です。

message

string

エラー メッセージ。

target

string

エラーのターゲット。

ErrorResponse

エラー応答

名前 説明
error

ErrorDetail

error オブジェクト。

systemData

リソースの作成と最後の変更に関連するメタデータ。

名前 説明
createdAt

string

リソース作成のタイムスタンプ (UTC)。

createdBy

string

リソースを作成した ID。

createdByType

createdByType

リソースを作成した ID の種類。

lastModifiedAt

string

リソースの最終変更のタイムスタンプ (UTC)

lastModifiedBy

string

リソースを最後に変更した ID。

lastModifiedByType

createdByType

リソースを最後に変更した ID の種類。