Configurations - Get
获取有关灵活服务器的特定服务器参数的信息。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}?api-version=2024-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
configuration
|
path | True |
string minLength: 1pattern: ^[-\w\._]+$ |
服务器参数的名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
server
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)* |
服务器的名称。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
好的 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Microsoft Entra OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get information about a specific server parameter of a flexible server.
示例请求
示例响应
{
"properties": {
"value": "on",
"description": "Enables input of NULL (case insensitive) to be considered as NULL value rather than the literal String 'NULL'.",
"defaultValue": "on",
"dataType": "Boolean",
"allowedValues": "on,off",
"source": "system-default",
"isDynamicConfig": true,
"isReadOnly": false,
"isConfigPendingRestart": false,
"documentationLink": "https://www.postgresql.org/docs/13/runtime-config-compatible.html#GUC-ARRAY-NULLS"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver/configurations/array_nulls",
"name": "array_nulls",
"type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations"
}
定义
名称 | 说明 |
---|---|
Configuration |
Server 参数。 |
Configuration |
服务器参数的数据类型。 |
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
system |
与创建和上次修改资源相关的元数据。 |
Configuration
Server 参数。
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties.allowedValues |
string |
服务器参数的允许值。 |
properties.dataType |
服务器参数的数据类型。 |
|
properties.defaultValue |
string |
默认情况下分配给 server 参数的值。 |
properties.description |
string |
server 参数的描述。 |
properties.documentationLink |
string |
指向 server 参数文档的链接。 |
properties.isConfigPendingRestart |
boolean |
指示分配给 server 参数的值是否正在等待服务器重新启动以使该值生效。 |
properties.isDynamicConfig |
boolean |
指示它是动态 (true) 还是静态 (false) 服务器参数。 静态服务器参数需要在更改分配给它的值后重新启动服务器,才能使更改生效。 动态服务器参数在更改分配给它的值后不需要重新启动服务器,更改即可生效。 |
properties.isReadOnly |
boolean |
指示它是只读 (true) 还是可修改 (false) 服务器参数。 |
properties.source |
string |
分配给 server 参数的值的来源。 更新分配给特定可修改服务器参数的值时需要。 |
properties.unit |
string |
表示服务器参数值的单位。 |
properties.value |
string |
server 参数的值(也称为 configuration)。 更新分配给特定可修改服务器参数的值时需要。 |
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
ConfigurationDataType
服务器参数的数据类型。
值 | 说明 |
---|---|
Boolean | |
Enumeration | |
Integer | |
Numeric |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |