Servers - List By Cluster
Egy fürt kiszolgálóinak listája.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers?api-version=2023-03-02-preview
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
cluster
|
path | True |
string minLength: 3maxLength: 40 pattern: ^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(? |
A klaszter neve. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
Az erőforráscsoport neve. A név nem megkülönbözteti a kis- és nagybetűket. |
subscription
|
path | True |
string (uuid) |
A cél-előfizetés azonosítója. Az értéknek UUID-nek kell lennie. |
api-version
|
query | True |
string minLength: 1 |
A művelethez használni kívánt API-verzió. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
OKÉ |
|
Other Status Codes |
Hibaválasz, amely leírja, hogy miért nem sikerült a művelet. |
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
Name | Description |
---|---|
user_impersonation | Megszemélyesítse a felhasználói fiókját. |
Példák
List servers of the cluster
Mintakérelem
GET https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster1/servers?api-version=2023-03-02-preview
Mintaválasz
{
"value": [
{
"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
}
},
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster1/servers/testcluster1-w0",
"name": "testcluster1-w0",
"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-w0.postgres.database.azure.com",
"postgresqlVersion": "12",
"citusVersion": "9.5",
"availabilityZone": "1",
"role": "Worker",
"serverEdition": "MemoryOptimized",
"storageQuotaInMb": 10000,
"vCores": 4,
"enableHa": false,
"enablePublicIpAccess": false,
"state": "Ready",
"haState": "NotEnabled",
"administratorLogin": "citus",
"isReadOnly": false
}
},
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster1/servers/testcluster1-w1",
"name": "testcluster1-w1",
"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-w1.postgres.database.azure.com",
"postgresqlVersion": "12",
"citusVersion": "9.5",
"availabilityZone": "1",
"role": "Worker",
"serverEdition": "MemoryOptimized",
"storageQuotaInMb": 10000,
"vCores": 4,
"enableHa": false,
"enablePublicIpAccess": false,
"state": "Ready",
"haState": "NotEnabled",
"administratorLogin": "citus",
"isReadOnly": false
}
}
]
}
Definíciók
Name | Description |
---|---|
Cluster |
Fürtön lévő kiszolgálót jelöl. |
Cluster |
Egy fürt kiszolgálóinak listája. |
created |
Az erőforrást létrehozó identitás típusa. |
Error |
Az erőforrás-kezelési hiba további információi. |
Error |
A hiba részletei. |
Error |
Hibaválasz |
Server |
A kiszolgáló szerepe. |
system |
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok. |
ClusterServer
Fürtön lévő kiszolgálót jelöl.
Name | Típus | Description |
---|---|---|
id |
string (arm-id) |
Az erőforrás teljes erőforrás-azonosítója. Például: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
Az erőforrás neve |
properties.administratorLogin |
string |
A fürt kiszolgálóinak rendszergazdai bejelentkezési neve. |
properties.availabilityZone |
string |
A kiszolgáló rendelkezésre állási zónájának adatai. |
properties.citusVersion |
string |
A kiszolgáló Citus-bővítményének verziója. |
properties.enableHa |
boolean |
Ha a magas rendelkezésre állás (HA) engedélyezve van, vagy nincs a kiszolgáló számára. |
properties.enablePublicIpAccess |
boolean |
Ha a nyilvános hozzáférés engedélyezve van a kiszolgálón. |
properties.fullyQualifiedDomainName |
string |
A kiszolgáló teljes tartományneve. |
properties.haState |
string |
A fürt HA-szolgáltatásának állapota. |
properties.isReadOnly |
boolean |
Ha a kiszolgáló adatbázisa a magas lemezterület-használattól függően csak olvashatóra van beállítva a rendszerkarbantartás szerint. |
properties.postgresqlVersion |
string |
A kiszolgáló fő PostgreSQL-verziója. |
properties.role |
A kiszolgáló szerepe a fürtben. |
|
properties.serverEdition |
string |
A kiszolgáló kiadása. |
properties.state |
string |
A felhasználó számára látható fürt/kiszolgáló állapota. |
properties.storageQuotaInMb |
integer (int32) |
Egy kiszolgáló tárolása MB-ban. |
properties.vCores |
integer (int32) |
Egy kiszolgáló virtuális magjainak száma. |
systemData |
A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok. |
|
type |
string |
Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts" |
ClusterServerListResult
Egy fürt kiszolgálóinak listája.
Name | Típus | Description |
---|---|---|
value |
A fürtön lévő kiszolgálók listája. |
createdByType
Az erőforrást létrehozó identitás típusa.
Érték | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
Name | Típus | Description |
---|---|---|
info |
object |
A további információk. |
type |
string |
A további információtípus. |
ErrorDetail
A hiba részletei.
Name | Típus | Description |
---|---|---|
additionalInfo |
A hiba további információi. |
|
code |
string |
A hibakód. |
details |
A hiba részletei. |
|
message |
string |
A hibaüzenet. |
target |
string |
A hibacél. |
ErrorResponse
Hibaválasz
Name | Típus | Description |
---|---|---|
error |
A hibaobjektum. |
ServerRole
A kiszolgáló szerepe.
Érték | Description |
---|---|
Coordinator | |
Worker |
systemData
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.
Name | Típus | Description |
---|---|---|
createdAt |
string (date-time) |
Az erőforrás-létrehozás időbélyege (UTC). |
createdBy |
string |
Az erőforrást létrehozó identitás. |
createdByType |
Az erőforrást létrehozó identitás típusa. |
|
lastModifiedAt |
string (date-time) |
Az erőforrás utolsó módosításának időbélyege (UTC) |
lastModifiedBy |
string |
Az erőforrást legutóbb módosító identitás. |
lastModifiedByType |
Az erőforrást legutóbb módosító identitás típusa. |