Servers - Create
Membuat server baru atau memperbarui server yang sudah ada. Tindakan pembaruan akan menimpa server yang ada.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}?api-version=2024-06-01-preview
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
resource
|
path | True |
string |
Nama grup sumber daya. Nama ini tidak peka huruf besar/kecil. |
server
|
path | True |
string |
Nama server. Pola regex: |
subscription
|
path | True |
string uuid |
ID langganan target. Nilainya harus UUID. |
api-version
|
query | True |
string |
Versi API yang akan digunakan untuk operasi ini. |
Isi Permintaan
Nama | Diperlukan | Jenis | Deskripsi |
---|---|---|---|
location | True |
string |
Lokasi geografis tempat sumber daya berada |
identity.type |
Jenis identitas layanan terkelola. |
||
identity.userAssignedIdentities |
object |
Metadata identitas yang ditetapkan pengguna. |
|
properties.administratorLogin |
string |
Nama masuk administrator server. Hanya dapat ditentukan ketika server sedang dibuat (dan diperlukan untuk pembuatan). |
|
properties.administratorLoginPassword |
string |
Kata sandi login administrator (diperlukan untuk pembuatan server). |
|
properties.availabilityZone |
string |
informasi zona ketersediaan server. |
|
properties.backup |
Mencadangkan properti terkait server. |
||
properties.createMode |
Mode untuk membuat server MySQL baru. |
||
properties.dataEncryption |
Enkripsi Data untuk CMK. |
||
properties.databasePort |
integer |
Port database server. Hanya dapat ditentukan ketika server sedang dibuat. |
|
properties.highAvailability |
Properti terkait ketersediaan tinggi server. |
||
properties.importSourceProperties |
Properti sumber untuk impor dari penyimpanan. |
||
properties.maintenancePolicy |
Kebijakan pemeliharaan server. |
||
properties.maintenanceWindow |
Jendela pemeliharaan server. Masalah yang diketahui: tidak dapat diatur selama pembuatan server atau diperbarui dengan properti lain selama pembaruan server; harus diperbarui secara terpisah. |
||
properties.network |
Properti terkait jaringan server. |
||
properties.replicationRole |
Peran replikasi. |
||
properties.restorePointInTime |
string |
Waktu pembuatan titik pemulihan (format ISO8601), menentukan waktu untuk memulihkan. |
|
properties.sourceServerResourceId |
string |
Id server MySQL sumber. |
|
properties.storage |
Properti terkait penyimpanan server. |
||
properties.version |
Versi server. |
||
sku |
SKU (tingkat harga) server. |
||
tags |
object |
Tag sumber daya. |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
200 OK |
OKE |
|
201 Created |
Dibuat |
|
202 Accepted |
Diterima Header Location: string |
|
Other Status Codes |
Respons kesalahan yang menjelaskan mengapa operasi gagal. |
Keamanan
azure_auth
Alur OAuth2 Azure Active Directory
Jenis:
oauth2
Alur:
implicit
URL Otorisasi:
https://login.microsoftonline.com/common/oauth2/authorize
Cakupan
Nama | Deskripsi |
---|---|
user_impersonation | meniru akun pengguna Anda |
Contoh
Create a new server |
Create a replica server |
Create a server as a point in time restore |
Create a server with byok |
Create a server with non-default database port |
Create a new server
Permintaan sampel
PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver?api-version=2024-06-01-preview
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"administratorLoginPassword": "your_password",
"availabilityZone": "1",
"version": "5.7",
"createMode": "Default",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Disabled",
"storageRedundancy": "LocalRedundancy"
},
"backup": {
"backupRetentionDays": 7,
"backupIntervalHours": 24,
"geoRedundantBackup": "Disabled"
},
"highAvailability": {
"mode": "ZoneRedundant",
"standbyAvailabilityZone": "3"
}
},
"location": "southeastasia",
"tags": {
"num": "1"
}
}
Respon sampel
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenancePolicy": {
"patchStrategy": "Regular"
},
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00"
},
"highAvailability": {
"mode": "ZoneRedundant",
"state": "Healthy",
"standbyAvailabilityZone": "3"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver",
"name": "mysqltestserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00"
},
"highAvailability": {
"mode": "ZoneRedundant",
"state": "Healthy",
"standbyAvailabilityZone": "3"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver",
"name": "mysqltestserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
Create a replica server
Permintaan sampel
PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server?api-version=2024-06-01-preview
{
"location": "SoutheastAsia",
"properties": {
"createMode": "Replica",
"sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server"
}
}
Respon sampel
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 20,
"iops": 360,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "replica-server.database.mysql.azure.com",
"sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server",
"availabilityZone": "3",
"maintenancePolicy": {
"patchStrategy": "Regular"
},
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "Replica",
"replicaCapacity": 0,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"backupIntervalHours": 24,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-24T08:19:18.5729164+00:00"
},
"highAvailability": {
"mode": "Disabled",
"state": "NotEnabled"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"ElasticServer": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server",
"name": "replica-server",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 20,
"iops": 360,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "replica-server.database.mysql.azure.com",
"sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server",
"availabilityZone": "3",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "Replica",
"replicaCapacity": 0,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-24T08:19:18.5729164+00:00"
},
"highAvailability": {
"mode": "Disabled",
"state": "NotEnabled"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"ElasticServer": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server",
"name": "replica-server",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
Create a server as a point in time restore
Permintaan sampel
PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver?api-version=2024-06-01-preview
{
"location": "SoutheastAsia",
"properties": {
"restorePointInTime": "2021-06-24T00:00:37.467Z",
"createMode": "PointInTimeRestore",
"sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver"
},
"sku": {
"name": "Standard_D14_v2",
"tier": "GeneralPurpose"
},
"tags": {
"num": "1"
}
}
Respon sampel
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "adminuser",
"storage": {
"storageSizeGB": 20,
"iops": 360,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "targetserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenancePolicy": {
"patchStrategy": "Regular"
},
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"backupIntervalHours": 24,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-24T00:15:24.00+00:00"
},
"highAvailability": {
"mode": "Disabled",
"state": "NotEnabled"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver",
"name": "targetserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "adminuser",
"storage": {
"storageSizeGB": 20,
"iops": 360,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "targetserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"backupIntervalHours": 24,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-24T00:15:24.00+00:00"
},
"highAvailability": {
"mode": "Disabled",
"state": "NotEnabled"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver",
"name": "targetserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
Create a server with byok
Permintaan sampel
PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver?api-version=2024-06-01-preview
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity": {}
}
},
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"administratorLoginPassword": "your_password",
"availabilityZone": "1",
"version": "5.7",
"createMode": "Default",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Disabled",
"storageRedundancy": "LocalRedundancy"
},
"backup": {
"backupRetentionDays": 7,
"backupIntervalHours": 24,
"geoRedundantBackup": "Disabled"
},
"highAvailability": {
"mode": "ZoneRedundant",
"standbyAvailabilityZone": "3"
},
"dataEncryption": {
"type": "AzureKeyVault",
"primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity",
"primaryKeyURI": "https://test.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a",
"geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-identity",
"geoBackupKeyURI": "https://test-geo.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a"
}
},
"location": "southeastasia",
"tags": {
"num": "1"
}
}
Respon sampel
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenancePolicy": {
"patchStrategy": "Regular"
},
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00"
},
"highAvailability": {
"mode": "ZoneRedundant",
"state": "Healthy",
"standbyAvailabilityZone": "3"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver",
"name": "mysqltestserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00"
},
"highAvailability": {
"mode": "ZoneRedundant",
"state": "Healthy",
"standbyAvailabilityZone": "3"
},
"databasePort": 3306
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver",
"name": "mysqltestserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
Create a server with non-default database port
Permintaan sampel
PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver?api-version=2024-06-01-preview
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"administratorLoginPassword": "your_password",
"availabilityZone": "1",
"version": "5.7",
"createMode": "Default",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Disabled",
"storageRedundancy": "LocalRedundancy"
},
"backup": {
"backupRetentionDays": 7,
"backupIntervalHours": 24,
"geoRedundantBackup": "Disabled"
},
"highAvailability": {
"mode": "ZoneRedundant",
"standbyAvailabilityZone": "3"
},
"databasePort": 8888
},
"location": "southeastasia",
"tags": {
"num": "1"
}
}
Respon sampel
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00"
},
"highAvailability": {
"mode": "ZoneRedundant",
"state": "Healthy",
"standbyAvailabilityZone": "3"
},
"databasePort": 8888
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver",
"name": "mysqltestserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
{
"sku": {
"name": "Standard_D2ds_v4",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"storage": {
"storageSizeGB": 100,
"iops": 600,
"autoGrow": "Enabled",
"storageSku": "Premium_LRS",
"storageRedundancy": "LocalRedundancy"
},
"version": "5.7",
"state": "Ready",
"fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com",
"availabilityZone": "1",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"replicationRole": "None",
"replicaCapacity": 10,
"network": {
"publicNetworkAccess": "Enabled"
},
"backup": {
"backupRetentionDays": 7,
"geoRedundantBackup": "Disabled",
"earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00"
},
"highAvailability": {
"mode": "ZoneRedundant",
"state": "Healthy",
"standbyAvailabilityZone": "3"
},
"databasePort": 8888
},
"location": "Southeast Asia",
"tags": {
"num": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver",
"name": "mysqltestserver",
"type": "Microsoft.DBforMySQL/flexibleServers"
}
Definisi
Nama | Deskripsi |
---|---|
Backup |
Properti Profil Penyimpanan server |
created |
Jenis identitas yang membuat sumber daya. |
Create |
Mode untuk membuat server MySQL baru. |
Data |
Enkripsi tanggal untuk cmk. |
Data |
Jenis kunci, AzureKeyVault untuk mengaktifkan cmk, SystemManaged untuk menonaktifkan cmk. |
Enable |
Enum untuk menunjukkan apakah nilai 'Diaktifkan' atau 'Dinonaktifkan' |
Error |
Info tambahan kesalahan manajemen sumber daya. |
Error |
Detail kesalahan. |
Error |
Respons kesalahan |
High |
Properti ketersediaan tinggi server |
High |
Mode ketersediaan tinggi untuk server. |
High |
Status ketersediaan tinggi server. |
Import |
Mengimpor properti terkait sumber. |
Import |
Jenis penyimpanan sumber impor. |
Maintenance |
Kebijakan pemeliharaan server. |
Maintenance |
Jendela pemeliharaan server. |
Managed |
Jenis identitas layanan terkelola. |
My |
Properti terkait informasi penagihan server. |
Network |
Properti terkait jaringan server |
Patch |
Enum untuk menunjukkan strategi patch server |
Private |
Sumber daya titik akhir privat. |
Private |
Sumber daya koneksi titik akhir privat. |
Private |
Status provisi saat ini. |
Private |
Status koneksi titik akhir privat. |
Private |
Kumpulan informasi tentang status koneksi antara konsumen layanan dan penyedia. |
Replication |
Peran replikasi. |
Server |
Mewakili server. |
Server |
Tingkat SKU tertentu, misalnya GeneralPurpose. |
Server |
Status server. |
Server |
Versi server. |
Storage |
Properti Profil Penyimpanan server |
Storage |
Enum untuk menunjukkan apakah nilai sku penyimpanan adalah 'ZoneRedundancy' atau 'LocalRedundancy' |
system |
Metadata yang berkaitan dengan pembuatan dan modifikasi terakhir sumber daya. |
Backup
Properti Profil Penyimpanan server
Nama | Jenis | Nilai default | Deskripsi |
---|---|---|---|
backupIntervalHours |
integer |
Jam interval cadangan untuk server. |
|
backupRetentionDays |
integer |
Hari retensi cadangan untuk server. |
|
earliestRestoreDate |
string |
Waktu pembuatan titik pemulihan paling awal (format ISO8601) |
|
geoRedundantBackup | Disabled |
Apakah pencadangan geo redundan diaktifkan atau tidak. |
createdByType
Jenis identitas yang membuat sumber daya.
Nama | Jenis | Deskripsi |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
CreateMode
Mode untuk membuat server MySQL baru.
Nama | Jenis | Deskripsi |
---|---|---|
Default |
string |
|
GeoRestore |
string |
|
PointInTimeRestore |
string |
|
Replica |
string |
DataEncryption
Enkripsi tanggal untuk cmk.
Nama | Jenis | Deskripsi |
---|---|---|
geoBackupKeyURI |
string |
Uri kunci cadangan geografis karena brankas kunci tidak dapat melintasi wilayah, membutuhkan cmk di wilayah yang sama dengan cadangan geografis |
geoBackupUserAssignedIdentityId |
string |
Id sumber daya identitas pengguna cadangan geografis karena identitas tidak dapat lintas wilayah, memerlukan identitas di wilayah yang sama dengan cadangan geografis |
primaryKeyURI |
string |
Uri kunci primer |
primaryUserAssignedIdentityId |
string |
Id sumber daya identitas pengguna utama |
type |
Jenis kunci, AzureKeyVault untuk mengaktifkan cmk, SystemManaged untuk menonaktifkan cmk. |
DataEncryptionType
Jenis kunci, AzureKeyVault untuk mengaktifkan cmk, SystemManaged untuk menonaktifkan cmk.
Nama | Jenis | Deskripsi |
---|---|---|
AzureKeyVault |
string |
|
SystemManaged |
string |
EnableStatusEnum
Enum untuk menunjukkan apakah nilai 'Diaktifkan' atau 'Dinonaktifkan'
Nama | Jenis | Deskripsi |
---|---|---|
Disabled |
string |
|
Enabled |
string |
ErrorAdditionalInfo
Info tambahan kesalahan manajemen sumber daya.
Nama | Jenis | Deskripsi |
---|---|---|
info |
object |
Info tambahan. |
type |
string |
Jenis info tambahan. |
ErrorDetail
Detail kesalahan.
Nama | Jenis | Deskripsi |
---|---|---|
additionalInfo |
Info tambahan kesalahan. |
|
code |
string |
Kode kesalahan. |
details |
Detail kesalahan. |
|
message |
string |
Pesan kesalahan. |
target |
string |
Target kesalahan. |
ErrorResponse
Respons kesalahan
Nama | Jenis | Deskripsi |
---|---|---|
error |
Objek kesalahan. |
HighAvailability
Properti ketersediaan tinggi server
Nama | Jenis | Deskripsi |
---|---|---|
mode |
Mode ketersediaan tinggi untuk server. |
|
standbyAvailabilityZone |
string |
Zona ketersediaan server siaga. |
state |
Status ketersediaan tinggi server. |
HighAvailabilityMode
Mode ketersediaan tinggi untuk server.
Nama | Jenis | Deskripsi |
---|---|---|
Disabled |
string |
|
SameZone |
string |
|
ZoneRedundant |
string |
HighAvailabilityState
Status ketersediaan tinggi server.
Nama | Jenis | Deskripsi |
---|---|---|
CreatingStandby |
string |
|
FailingOver |
string |
|
Healthy |
string |
|
NotEnabled |
string |
|
RemovingStandby |
string |
ImportSourceProperties
Mengimpor properti terkait sumber.
Nama | Jenis | Deskripsi |
---|---|---|
dataDirPath |
string |
Jalur relatif direktori data dalam penyimpanan. |
sasToken |
string |
Token Sas untuk mengakses penyimpanan sumber. Izin baca dan daftar diperlukan untuk token sas. |
storageType |
Jenis penyimpanan sumber impor. |
|
storageUrl |
string |
Uri penyimpanan sumber impor. |
ImportSourceStorageType
Jenis penyimpanan sumber impor.
Nama | Jenis | Deskripsi |
---|---|---|
AzureBlob |
string |
MaintenancePolicy
Kebijakan pemeliharaan server.
Nama | Jenis | Deskripsi |
---|---|---|
patchStrategy |
Strategi patch server ini |
MaintenanceWindow
Jendela pemeliharaan server.
Nama | Jenis | Deskripsi |
---|---|---|
customWindow |
string |
menunjukkan apakah jendela kustom diaktifkan atau dinonaktifkan |
dayOfWeek |
integer |
hari dalam seminggu untuk jendela pemeliharaan |
startHour |
integer |
jam mulai untuk jendela pemeliharaan |
startMinute |
integer |
menit awal untuk jendela pemeliharaan |
ManagedServiceIdentityType
Jenis identitas layanan terkelola.
Nama | Jenis | Deskripsi |
---|---|---|
UserAssigned |
string |
MySQLServerSku
Properti terkait informasi penagihan server.
Nama | Jenis | Deskripsi |
---|---|---|
name |
string |
Nama sku, misalnya Standard_D32s_v3. |
tier |
Tingkat SKU tertentu, misalnya GeneralPurpose. |
Network
Properti terkait jaringan server
Nama | Jenis | Deskripsi |
---|---|---|
delegatedSubnetResourceId |
string |
Id sumber daya subnet yang didelegasikan digunakan untuk menyiapkan vnet untuk server. |
privateDnsZoneResourceId |
string |
Id sumber daya zona DNS privat. |
publicNetworkAccess |
Apakah akses jaringan publik diperbolehkan atau tidak untuk server ini. Nilai adalah 'Dinonaktifkan' ketika server memiliki integrasi VNet. |
PatchStrategy
Enum untuk menunjukkan strategi patch server
Nama | Jenis | Deskripsi |
---|---|---|
Regular |
string |
|
VirtualCanary |
string |
PrivateEndpoint
Sumber daya titik akhir privat.
Nama | Jenis | Deskripsi |
---|---|---|
id |
string |
Pengidentifikasi ARM untuk titik akhir privat. |
PrivateEndpointConnection
Sumber daya koneksi titik akhir privat.
Nama | Jenis | Deskripsi |
---|---|---|
id |
string |
ID sumber daya yang sepenuhnya memenuhi syarat untuk sumber daya. Misalnya "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
Nama sumber daya |
properties.groupIds |
string[] |
Id grup untuk sumber daya titik akhir privat. |
properties.privateEndpoint |
Sumber daya titik akhir privat. |
|
properties.privateLinkServiceConnectionState |
Kumpulan informasi tentang status koneksi antara konsumen layanan dan penyedia. |
|
properties.provisioningState |
Status provisi sumber daya koneksi titik akhir privat. |
|
systemData |
Metadata Azure Resource Manager yang berisi informasi createBy dan modifiedBy. |
|
type |
string |
Jenis sumber daya. Misalnya, "Microsoft.Compute/virtualMachines" atau "Microsoft.Storage/storageAccounts" |
PrivateEndpointConnectionProvisioningState
Status provisi saat ini.
Nama | Jenis | Deskripsi |
---|---|---|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
PrivateEndpointServiceConnectionStatus
Status koneksi titik akhir privat.
Nama | Jenis | Deskripsi |
---|---|---|
Approved |
string |
|
Pending |
string |
|
Rejected |
string |
PrivateLinkServiceConnectionState
Kumpulan informasi tentang status koneksi antara konsumen layanan dan penyedia.
Nama | Jenis | Deskripsi |
---|---|---|
actionsRequired |
string |
Pesan yang menunjukkan apakah perubahan pada penyedia layanan memerlukan pembaruan pada konsumen. |
description |
string |
Alasan persetujuan/penolakan koneksi. |
status |
Menunjukkan apakah koneksi telah Disetujui/Ditolak/Dihapus oleh pemilik layanan. |
ReplicationRole
Peran replikasi.
Nama | Jenis | Deskripsi |
---|---|---|
None |
string |
|
Replica |
string |
|
Source |
string |
Server
Mewakili server.
Nama | Jenis | Deskripsi |
---|---|---|
id |
string |
ID sumber daya yang sepenuhnya memenuhi syarat untuk sumber daya. Misalnya "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
identity.principalId |
string |
ObjectId dari KeyVault |
identity.tenantId |
string |
TenantId dari KeyVault |
identity.type |
Jenis identitas layanan terkelola. |
|
identity.userAssignedIdentities |
object |
Metadata identitas yang ditetapkan pengguna. |
location |
string |
Lokasi geografis tempat sumber daya berada |
name |
string |
Nama sumber daya |
properties.administratorLogin |
string |
Nama masuk administrator server. Hanya dapat ditentukan ketika server sedang dibuat (dan diperlukan untuk pembuatan). |
properties.administratorLoginPassword |
string |
Kata sandi login administrator (diperlukan untuk pembuatan server). |
properties.availabilityZone |
string |
informasi zona ketersediaan server. |
properties.backup |
Mencadangkan properti terkait server. |
|
properties.createMode |
Mode untuk membuat server MySQL baru. |
|
properties.dataEncryption |
Enkripsi Data untuk CMK. |
|
properties.databasePort |
integer |
Port database server. Hanya dapat ditentukan ketika server sedang dibuat. |
properties.fullyQualifiedDomainName |
string |
Nama domain server yang sepenuhnya memenuhi syarat. |
properties.highAvailability |
Properti terkait ketersediaan tinggi server. |
|
properties.importSourceProperties |
Properti sumber untuk impor dari penyimpanan. |
|
properties.maintenancePolicy |
Kebijakan pemeliharaan server. |
|
properties.maintenanceWindow |
Jendela pemeliharaan server. Masalah yang diketahui: tidak dapat diatur selama pembuatan server atau diperbarui dengan properti lain selama pembaruan server; harus diperbarui secara terpisah. |
|
properties.network |
Properti terkait jaringan server. |
|
properties.privateEndpointConnections |
Properti terkait PrivateEndpointConnections dari server. |
|
properties.replicaCapacity |
integer |
Jumlah maksimum replika yang dapat dimiliki server utama. |
properties.replicationRole |
Peran replikasi. |
|
properties.restorePointInTime |
string |
Waktu pembuatan titik pemulihan (format ISO8601), menentukan waktu untuk memulihkan. |
properties.sourceServerResourceId |
string |
Id server MySQL sumber. |
properties.state |
Status server. |
|
properties.storage |
Properti terkait penyimpanan server. |
|
properties.version |
Versi server. |
|
sku |
SKU (tingkat harga) server. |
|
systemData |
Metadata Azure Resource Manager yang berisi informasi createBy dan modifiedBy. |
|
tags |
object |
Tag sumber daya. |
type |
string |
Jenis sumber daya. Misalnya, "Microsoft.Compute/virtualMachines" atau "Microsoft.Storage/storageAccounts" |
ServerSkuTier
Tingkat SKU tertentu, misalnya GeneralPurpose.
Nama | Jenis | Deskripsi |
---|---|---|
Burstable |
string |
|
GeneralPurpose |
string |
|
MemoryOptimized |
string |
ServerState
Status server.
Nama | Jenis | Deskripsi |
---|---|---|
Disabled |
string |
|
Dropping |
string |
|
Ready |
string |
|
Starting |
string |
|
Stopped |
string |
|
Stopping |
string |
|
Updating |
string |
ServerVersion
Versi server.
Nama | Jenis | Deskripsi |
---|---|---|
5.7 |
string |
|
8.0.21 |
string |
Storage
Properti Profil Penyimpanan server
Nama | Jenis | Nilai default | Deskripsi |
---|---|---|---|
autoGrow | Disabled |
Aktifkan Penyimpanan Tumbuh Otomatis atau tidak. |
|
autoIoScaling | Enabled |
Aktifkan Auto Scaling IO atau tidak. |
|
iops |
integer |
IOPS penyimpanan untuk server. |
|
logOnDisk | Disabled |
Aktifkan Disk Masuk atau tidak. |
|
storageRedundancy | LocalRedundancy |
Jenis penyimpanan server yang berlebihan. Parameter digunakan untuk pembuatan server. |
|
storageSizeGB |
integer |
Ukuran penyimpanan maks yang diizinkan untuk server. |
|
storageSku |
string |
Nama sku penyimpanan server. |
StorageRedundancyEnum
Enum untuk menunjukkan apakah nilai sku penyimpanan adalah 'ZoneRedundancy' atau 'LocalRedundancy'
Nama | Jenis | Deskripsi |
---|---|---|
LocalRedundancy |
string |
|
ZoneRedundancy |
string |
systemData
Metadata yang berkaitan dengan pembuatan dan modifikasi terakhir sumber daya.
Nama | Jenis | Deskripsi |
---|---|---|
createdAt |
string |
Tanda waktu pembuatan sumber daya (UTC). |
createdBy |
string |
Identitas yang membuat sumber daya. |
createdByType |
Jenis identitas yang membuat sumber daya. |
|
lastModifiedAt |
string |
Tanda waktu modifikasi terakhir sumber daya (UTC) |
lastModifiedBy |
string |
Identitas yang terakhir mengubah sumber daya. |
lastModifiedByType |
Jenis identitas yang terakhir memodifikasi sumber daya. |