Aracılığıyla paylaş


Servers - Get

Kümedeki bir sunucu hakkında bilgi alır.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}?api-version=2023-03-02-preview

URI Parametreleri

Name İçinde Gerekli Tür Description
clusterName
path True

string

minLength: 3
maxLength: 40
pattern: ^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(?

Kümenin adı.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Kaynak grubunun adı. Ad büyük/küçük harfe duyarsız.

serverName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._]+$

Sunucunun adı.

subscriptionId
path True

string (uuid)

Hedef aboneliğin kimliği. Değer bir UUID olmalıdır.

api-version
query True

string

minLength: 1

Bu işlem için kullanılacak API sürümü.

Yanıtlar

Name Tür Description
200 OK

ClusterServer

Tamam

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Akışı

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation Kullanıcı hesabınızın kimliğine bürünme.

Örnekler

Get the server of cluster

Örnek isteği

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

Örnek yanıt

{
  "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
  }
}

Tanımlar

Name Description
ClusterServer

Kümedeki bir sunucuyu temsil eder.

createdByType

Kaynağı oluşturan kimliğin türü.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

ServerRole

Sunucunun rolü.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

ClusterServer

Kümedeki bir sunucuyu temsil eder.

Name Tür Description
id

string (arm-id)

Kaynağın tam kaynak kimliği. Örneğin, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

Kaynağın adı

properties.administratorLogin

string

Yöneticinin kümedeki sunucuların oturum açma adı.

properties.availabilityZone

string

Sunucunun Kullanılabilirlik Alanı bilgileri.

properties.citusVersion

string

Sunucunun Citus uzantı sürümü.

properties.enableHa

boolean

Sunucu için yüksek kullanılabilirlik (HA) etkinleştirildiyse veya etkinleştirilmediyse.

properties.enablePublicIpAccess

boolean

Sunucuda genel erişim etkinleştirildiyse.

properties.fullyQualifiedDomainName

string

Sunucunun tam etki alanı adı.

properties.haState

string

Küme için HA özelliğinin durumu.

properties.isReadOnly

boolean

Sunucu veritabanı, yüksek disk alanı kullanımına bağlı olarak sistem bakımı tarafından salt okunur olarak ayarlandıysa.

properties.postgresqlVersion

string

Sunucunun ana PostgreSQL sürümü.

properties.role

ServerRole

Kümedeki sunucunun rolü.

properties.serverEdition

string

Bir sunucunun sürümü.

properties.state

string

Kullanıcının görebilmesi için kümenin/sunucunun durumu.

properties.storageQuotaInMb

integer (int32)

Bir sunucunun MB cinsinden depolanması.

properties.vCores

integer (int32)

Sunucunun sanal çekirdek sayısı.

systemData

systemData

createdBy ve modifiedBy bilgilerini içeren Azure Resource Manager meta verileri.

type

string

Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts"

createdByType

Kaynağı oluşturan kimliğin türü.

Değer Description
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

ServerRole

Sunucunun rolü.

Değer Description
Coordinator
Worker

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string (date-time)

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string (date-time)

Kaynağın son değişikliğinin zaman damgası (UTC)

lastModifiedBy

string

Kaynağı en son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimlik türü.