你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Servers - Get
获取有关群集中服务器的信息。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}?api-version=2023-03-02-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
cluster
|
path | True |
string |
群集的名称。 正则表达式模式: |
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
server
|
path | True |
string |
服务器的名称。 正则表达式模式: |
subscription
|
path | True |
string uuid |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户。 |
示例
Get the server of cluster
示例请求
GET https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster1/servers/testcluster1-c?api-version=2023-03-02-preview
示例响应
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster1/servers/testcluster1-c",
"name": "testcluster1-c",
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2/servers",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"properties": {
"fullyQualifiedDomainName": "testcluster1-c.postgres.database.azure.com",
"postgresqlVersion": "12",
"citusVersion": "9.5",
"availabilityZone": "1",
"role": "Coordinator",
"serverEdition": "MemoryOptimized",
"storageQuotaInMb": 10000,
"vCores": 4,
"enableHa": true,
"enablePublicIpAccess": true,
"state": "Ready",
"haState": "Healthy",
"administratorLogin": "citus",
"isReadOnly": false
}
}
定义
名称 | 说明 |
---|---|
Cluster |
表示群集中的服务器。 |
created |
创建资源的标识类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Server |
服务器的角色。 |
system |
与资源的创建和上次修改相关的元数据。 |
ClusterServer
表示群集中的服务器。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties.administratorLogin |
string |
群集中服务器的管理员登录名。 |
properties.availabilityZone |
string |
服务器的可用性区域信息。 |
properties.citusVersion |
string |
服务器的 Citus 扩展版本。 |
properties.enableHa |
boolean |
如果高可用性 (为服务器启用 HA) 。 |
properties.enablePublicIpAccess |
boolean |
如果在服务器上启用了公共访问。 |
properties.fullyQualifiedDomainName |
string |
服务器的完全限定域名。 |
properties.haState |
string |
群集的 HA 功能状态。 |
properties.isReadOnly |
boolean |
如果服务器数据库设置为只读,则系统维护取决于高磁盘空间使用率。 |
properties.postgresqlVersion |
string |
服务器的主要 PostgreSQL 版本。 |
properties.role |
群集中服务器的角色。 |
|
properties.serverEdition |
string |
服务器的版本。 |
properties.state |
string |
用户可见的群集/服务器的状态。 |
properties.storageQuotaInMb |
integer |
服务器的存储(以 MB 为单位)。 |
properties.vCores |
integer |
服务器的 vCore 计数。 |
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
ServerRole
服务器的角色。
名称 | 类型 | 说明 |
---|---|---|
Coordinator |
string |
|
Worker |
string |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源的创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |