Servers - Update
Memperbarui server yang ada. Isi permintaan dapat berisi satu hingga banyak properti yang ada dalam definisi server normal.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}?api-version=2018-06-01-preview
Parameter URI
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
|
Nama grup sumber daya yang berisi sumber daya. Anda dapat memperoleh nilai ini dari Azure Resource Manager API atau portal. |
|
server
|
path | True |
|
Nama server. |
|
subscription
|
path | True |
|
ID langganan yang mengidentifikasi langganan Azure. |
|
api-version
|
query | True |
|
Versi API yang digunakan untuk permintaan. |
Isi Permintaan
| Name | Type | Description |
|---|---|---|
| properties.administratorLoginPassword |
|
Kata sandi login administrator. |
| properties.minimalTlsVersion |
Terapkan versi Tls minimal untuk server. |
|
| properties.replicationRole |
|
Peran replikasi server. |
| properties.sslEnforcement |
Aktifkan penegakan ssl atau tidak saat tersambung ke server. |
|
| properties.storageProfile |
Storage profil server. |
|
| properties.version |
Versi server. |
|
| sku |
SKU (tingkat harga) server. |
|
| tags |
|
Metadata khusus aplikasi dalam bentuk pasangan kunci-nilai. |
Respons
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| 202 Accepted |
Diterima |
Keamanan
azure_auth
Azure Active Directory Flow OAuth2
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | meniru akun pengguna Anda |
Contoh
ServerUpdate
Sample Request
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/mariadbtestsvc4?api-version=2018-06-01-preview
{
"properties": {
"administratorLoginPassword": "<administratorLoginPassword>",
"sslEnforcement": "Disabled"
}
}
Sample Response
{
"sku": {
"name": "GP_Gen5_2",
"tier": "GeneralPurpose",
"family": "Gen5",
"capacity": 2
},
"properties": {
"administratorLogin": "cloudsa",
"storageProfile": {
"storageMB": 128000,
"backupRetentionDays": 7,
"geoRedundantBackup": "Enabled"
},
"version": "10.3",
"sslEnforcement": "Disabled",
"userVisibleState": "Ready",
"fullyQualifiedDomainName": "mariadbtestsvc4.mariadb.database.azure.com",
"earliestRestoreDate": "2018-03-14T18:02:41.577+00:00"
},
"location": "westus",
"tags": {
"ElasticServer": "1"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/mariadbtestsvc4",
"name": "mariadbtestsvc4",
"type": "Microsoft.DBforMariaDB/servers"
}
Definisi
|
Geo |
Aktifkan Geo-redundan atau tidak untuk pencadangan server. |
|
Identity |
Jenis identitas. Atur ini ke 'SystemAssigned' untuk membuat dan menetapkan prinsipal Azure Active Directory secara otomatis untuk sumber daya. |
|
Minimal |
Terapkan versi Tls minimal untuk server. |
|
Resource |
Azure Active Directory konfigurasi identitas untuk sumber daya. |
| Server |
Mewakili server. |
|
Server |
Status server yang terlihat oleh pengguna. |
|
Server |
Parameter yang diizinkan untuk diperbarui untuk server. |
|
Server |
Versi server. |
| Sku |
Properti terkait informasi penagihan server. |
|
Sku |
Tingkat SKU tertentu, misalnya Dasar. |
|
Ssl |
Aktifkan penegakan ssl atau tidak saat tersambung ke server. |
|
Storage |
Aktifkan Storage Pertumbuhan Otomatis. |
|
Storage |
Storage Properti profil server |
GeoRedundantBackup
Aktifkan Geo-redundan atau tidak untuk pencadangan server.
| Name | Type | Description |
|---|---|---|
| Disabled |
|
|
| Enabled |
|
IdentityType
Jenis identitas. Atur ini ke 'SystemAssigned' untuk membuat dan menetapkan prinsipal Azure Active Directory secara otomatis untuk sumber daya.
| Name | Type | Description |
|---|---|---|
| SystemAssigned |
|
MinimalTlsVersionEnum
Terapkan versi Tls minimal untuk server.
| Name | Type | Description |
|---|---|---|
| TLS1_0 |
|
|
| TLS1_1 |
|
|
| TLS1_2 |
|
|
| TLSEnforcementDisabled |
|
ResourceIdentity
Azure Active Directory konfigurasi identitas untuk sumber daya.
| Name | Type | Description |
|---|---|---|
| principalId |
|
Id utama Azure Active Directory. |
| tenantId |
|
Id penyewa Azure Active Directory. |
| type |
Jenis identitas. Atur ini ke 'SystemAssigned' untuk membuat dan menetapkan prinsipal Azure Active Directory secara otomatis untuk sumber daya. |
Server
Mewakili server.
| Name | Type | Description |
|---|---|---|
| id |
|
ID sumber daya yang sepenuhnya memenuhi syarat untuk sumber daya. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| identity |
Identitas Azure Active Directory server. |
|
| location |
|
Lokasi geografis tempat sumber daya berada |
| name |
|
Nama sumber daya. |
| properties.administratorLogin |
|
Nama masuk administrator server. Hanya dapat ditentukan ketika server sedang dibuat (dan diperlukan untuk pembuatan). |
| properties.earliestRestoreDate |
|
Waktu pembuatan titik pemulihan paling awal (format ISO8601) |
| properties.fullyQualifiedDomainName |
|
Nama domain server yang sepenuhnya memenuhi syarat. |
| properties.masterServerId |
|
Id server master dari server replika. |
| properties.minimalTlsVersion |
Terapkan versi Tls minimal untuk server. |
|
| properties.replicaCapacity |
|
Jumlah maksimum replika yang dapat dimiliki server master. |
| properties.replicationRole |
|
Peran replikasi server. |
| properties.sslEnforcement |
Aktifkan penegakan ssl atau tidak saat tersambung ke server. |
|
| properties.storageProfile |
Storage profil server. |
|
| properties.userVisibleState |
Status server yang terlihat oleh pengguna. |
|
| properties.version |
Versi server. |
|
| sku |
SKU (tingkat harga) server. |
|
| tags |
|
Tag sumber daya. |
| type |
|
Jenis sumber daya. Misalnya "Microsoft.Compute/virtualMachines" atau "Microsoft. Storage/storageAccounts" |
ServerState
Status server yang terlihat oleh pengguna.
| Name | Type | Description |
|---|---|---|
| Disabled |
|
|
| Dropping |
|
|
| Ready |
|
ServerUpdateParameters
Parameter yang diizinkan untuk diperbarui untuk server.
| Name | Type | Description |
|---|---|---|
| properties.administratorLoginPassword |
|
Kata sandi login administrator. |
| properties.minimalTlsVersion |
Terapkan versi Tls minimal untuk server. |
|
| properties.replicationRole |
|
Peran replikasi server. |
| properties.sslEnforcement |
Aktifkan penegakan ssl atau tidak saat tersambung ke server. |
|
| properties.storageProfile |
Storage profil server. |
|
| properties.version |
Versi server. |
|
| sku |
SKU (tingkat harga) server. |
|
| tags |
|
Metadata khusus aplikasi dalam bentuk pasangan kunci-nilai. |
ServerVersion
Versi server.
| Name | Type | Description |
|---|---|---|
| 10.2 |
|
|
| 10.3 |
|
Sku
Properti terkait informasi penagihan server.
| Name | Type | Description |
|---|---|---|
| capacity |
|
Kapasitas peningkatan/peluasan skala, mewakili unit komputasi server. |
| family |
|
Keluarga perangkat keras. |
| name |
|
Nama sku, biasanya, tingkat + keluarga + inti, misalnya B_Gen4_1, GP_Gen5_8. |
| size |
|
Kode ukuran, yang akan ditafsirkan oleh sumber daya sebagaimana mewajibkan. |
| tier |
Tingkat SKU tertentu, misalnya Dasar. |
SkuTier
Tingkat SKU tertentu, misalnya Dasar.
| Name | Type | Description |
|---|---|---|
| Basic |
|
|
| GeneralPurpose |
|
|
| MemoryOptimized |
|
SslEnforcementEnum
Aktifkan penegakan ssl atau tidak saat tersambung ke server.
| Name | Type | Description |
|---|---|---|
| Disabled |
|
|
| Enabled |
|
StorageAutogrow
Aktifkan Storage Pertumbuhan Otomatis.
| Name | Type | Description |
|---|---|---|
| Disabled |
|
|
| Enabled |
|
StorageProfile
Storage Properti profil server
| Name | Type | Description |
|---|---|---|
| backupRetentionDays |
|
Hari retensi cadangan untuk server. |
| geoRedundantBackup |
Aktifkan Geo-redundan atau tidak untuk pencadangan server. |
|
| storageAutogrow |
Aktifkan Storage Pertumbuhan Otomatis. |
|
| storageMB |
|
Penyimpanan maksimum yang diizinkan untuk server. |