Replicas - List By Server
列出指定伺服器的所有複本。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/replicas?api-version=2018-06-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
資源群組的名稱。 名稱不區分大小寫。 |
server
|
path | True |
string |
伺服器的名稱。 |
subscription
|
path | True |
string |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
ReplicasListByServer
Sample Request
GET https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testmaster/replicas?api-version=2018-06-01
Sample Response
{
"value": [
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver",
"name": "testserver",
"type": "Microsoft.DBforMariaDB/servers",
"location": "northeurope",
"tags": {
"elasticServer": "1"
},
"sku": {
"name": "GP_Gen4_2",
"tier": "GeneralPurpose",
"family": "Gen4",
"capacity": 2
},
"properties": {
"storageProfile": {
"storageMB": 256000,
"backupRetentionDays": 35,
"geoRedundantBackup": "Enabled"
},
"administratorLogin": "cloudsa",
"sslEnforcement": "Enabled",
"userVisibleState": "Ready",
"fullyQualifiedDomainName": "testserver.mariadb.database.azure.com",
"version": "10.2",
"earliestRestoreDate": "2018-06-11T23:56:54.3+00:00",
"replicationRole": "Replica",
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testmaster",
"replicaCapacity": 0
}
},
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver1",
"name": "testserver1",
"type": "Microsoft.DBforMariaDB/servers",
"location": "northeurope",
"tags": {
"elasticServer": "1"
},
"sku": {
"name": "GP_Gen4_2",
"tier": "GeneralPurpose",
"family": "Gen4",
"capacity": 2
},
"properties": {
"storageProfile": {
"storageMB": 256000,
"backupRetentionDays": 35,
"geoRedundantBackup": "Enabled"
},
"administratorLogin": "cloudsa",
"sslEnforcement": "Enabled",
"userVisibleState": "Ready",
"fullyQualifiedDomainName": "testserver1.mariadb.database.azure.com",
"version": "10.2",
"earliestRestoreDate": "2018-06-11T23:56:54.3+00:00",
"replicationRole": "Replica",
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testmaster",
"replicaCapacity": 0
}
},
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver2",
"name": "testserver2",
"type": "Microsoft.DBforMariaDB/servers",
"location": "northeurope",
"tags": {
"elasticServer": "1"
},
"sku": {
"name": "GP_Gen4_2",
"tier": "GeneralPurpose",
"family": "Gen4",
"capacity": 2
},
"properties": {
"storageProfile": {
"storageMB": 256000,
"backupRetentionDays": 35,
"geoRedundantBackup": "Enabled"
},
"administratorLogin": "cloudsa",
"sslEnforcement": "Enabled",
"userVisibleState": "Ready",
"fullyQualifiedDomainName": "testserver2.mariadb.database.azure.com",
"version": "10.2",
"earliestRestoreDate": "2018-06-11T23:56:54.3+00:00",
"replicationRole": "Replica",
"masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testmaster",
"replicaCapacity": 0
}
}
]
}
定義
名稱 | Description |
---|---|
Cloud |
Batch 服務的錯誤回應。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤回應 |
Geo |
針對伺服器備份啟用異地備援或不啟用。 |
Minimal |
為伺服器強制執行最低 Tls 版本。 |
Private |
|
Private |
私人端點連線的狀態。 |
Private |
私人鏈接服務連線所需的動作。 |
Private |
私人鏈接服務連線狀態。 |
Public |
此伺服器是否允許公用網路存取。 值是選擇性的,但如果傳入,則必須是 'Enabled' 或 'Disabled' |
Server |
表示伺服器。 |
Server |
伺服器清單。 |
Server |
伺服器下的私人端點連線 |
Server |
私人端點連線的屬性。 |
Server |
|
Server |
使用者看得見的伺服器狀態。 |
Server |
伺服器的版本。 |
Sku |
伺服器的計費資訊相關屬性。 |
Sku |
特定 SKU 的層級,例如基本層。 |
Ssl |
在連線到伺服器時啟用 SSL 強制執行。 |
Storage |
啟用記憶體自動成長。 |
Storage |
伺服器的記憶體配置檔屬性 |
CloudError
Batch 服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤回應 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細資料。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
GeoRedundantBackup
針對伺服器備份啟用異地備援或不啟用。
名稱 | 類型 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
MinimalTlsVersionEnum
為伺服器強制執行最低 Tls 版本。
名稱 | 類型 | Description |
---|---|---|
TLS1_0 |
string |
|
TLS1_1 |
string |
|
TLS1_2 |
string |
|
TLSEnforcementDisabled |
string |
PrivateEndpointProperty
名稱 | 類型 | Description |
---|---|---|
id |
string |
私人端點的資源標識碼。 |
PrivateEndpointProvisioningState
私人端點連線的狀態。
名稱 | 類型 | Description |
---|---|---|
Approving |
string |
|
Dropping |
string |
|
Failed |
string |
|
Ready |
string |
|
Rejecting |
string |
PrivateLinkServiceConnectionStateActionsRequire
私人鏈接服務連線所需的動作。
名稱 | 類型 | Description |
---|---|---|
None |
string |
PrivateLinkServiceConnectionStateStatus
私人鏈接服務連線狀態。
名稱 | 類型 | Description |
---|---|---|
Approved |
string |
|
Disconnected |
string |
|
Pending |
string |
|
Rejected |
string |
PublicNetworkAccessEnum
此伺服器是否允許公用網路存取。 值是選擇性的,但如果傳入,則必須是 'Enabled' 或 'Disabled'
名稱 | 類型 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
Server
表示伺服器。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的完整資源識別碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
資源所在的地理位置 |
name |
string |
資源的名稱 |
properties.administratorLogin |
string |
伺服器的系統管理員登入名稱。 只有在建立伺服器 (且建立) 時,才能指定。 |
properties.earliestRestoreDate |
string |
最早的還原點建立時間 (ISO8601 格式) |
properties.fullyQualifiedDomainName |
string |
伺服器的完整功能變數名稱。 |
properties.masterServerId |
string |
復本伺服器的主伺服器識別碼。 |
properties.minimalTlsVersion |
為伺服器強制執行最低 Tls 版本。 |
|
properties.privateEndpointConnections |
伺服器上的私人端點連線清單 |
|
properties.publicNetworkAccess |
此伺服器是否允許公用網路存取。 值是選擇性的,但如果傳入,則必須是 'Enabled' 或 'Disabled' |
|
properties.replicaCapacity |
integer |
主伺服器可以擁有的最大複本數目。 |
properties.replicationRole |
string |
伺服器的復寫角色。 |
properties.sslEnforcement |
在連線到伺服器時啟用 SSL 強制執行。 |
|
properties.storageProfile |
伺服器的記憶體配置檔。 |
|
properties.userVisibleState |
使用者看得見的伺服器狀態。 |
|
properties.version |
伺服器版本。 |
|
sku |
SKU (伺服器) 定價層。 |
|
tags |
object |
資源標籤。 |
type |
string |
資源類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
ServerListResult
伺服器清單。
名稱 | 類型 | Description |
---|---|---|
value |
Server[] |
伺服器清單 |
ServerPrivateEndpointConnection
伺服器下的私人端點連線
名稱 | 類型 | Description |
---|---|---|
id |
string |
私人端點聯機的資源標識碼。 |
properties |
私人端點連線屬性 |
ServerPrivateEndpointConnectionProperties
私人端點連線的屬性。
名稱 | 類型 | Description |
---|---|---|
privateEndpoint |
線上所屬的私人端點。 |
|
privateLinkServiceConnectionState |
私人端點連線的連接狀態。 |
|
provisioningState |
私人端點連線的狀態。 |
ServerPrivateLinkServiceConnectionStateProperty
名稱 | 類型 | Description |
---|---|---|
actionsRequired |
私人鏈接服務連線所需的動作。 |
|
description |
string |
私人鏈接服務連線描述。 |
status |
私人鏈接服務連線狀態。 |
ServerState
使用者看得見的伺服器狀態。
名稱 | 類型 | Description |
---|---|---|
Disabled |
string |
|
Dropping |
string |
|
Ready |
string |
ServerVersion
伺服器的版本。
名稱 | 類型 | Description |
---|---|---|
10.2 |
string |
|
10.3 |
string |
Sku
伺服器的計費資訊相關屬性。
名稱 | 類型 | Description |
---|---|---|
capacity |
integer |
相應增加/放大容量,代表伺服器的計算單位。 |
family |
string |
硬體系列。 |
name |
string |
sku 的名稱,通常是階層 + 系列 + 核心,例如B_Gen4_1,GP_Gen5_8。 |
size |
string |
要適當地由資源解譯的大小程序代碼。 |
tier |
特定 SKU 的層級,例如基本層。 |
SkuTier
特定 SKU 的層級,例如基本層。
名稱 | 類型 | Description |
---|---|---|
Basic |
string |
|
GeneralPurpose |
string |
|
MemoryOptimized |
string |
SslEnforcementEnum
在連線到伺服器時啟用 SSL 強制執行。
名稱 | 類型 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
StorageAutogrow
啟用記憶體自動成長。
名稱 | 類型 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
StorageProfile
伺服器的記憶體配置檔屬性
名稱 | 類型 | Description |
---|---|---|
backupRetentionDays |
integer |
伺服器的備份保留天數。 |
geoRedundantBackup |
針對伺服器備份啟用異地備援或不啟用。 |
|
storageAutogrow |
啟用記憶體自動成長。 |
|
storageMB |
integer |
伺服器允許的最大記憶體。 |