Servers - Create

Yeni bir sunucu oluşturur veya var olan bir sunucuyu güncelleştirir. Güncelleştirme eylemi var olan sunucunun üzerine yazar.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}?api-version=2018-06-01

URI Parametreleri

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

string

Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir.

serverName
path True

string

Sunucunun adı.

subscriptionId
path True

string

Hedef aboneliğin kimliği.

api-version
query True

string

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

İstek Gövdesi

Name Tür Description
parameters

ServerForCreate

Sunucu oluşturmak veya güncelleştirmek için gerekli parametreler.

Yanıtlar

Name Tür Description
200 OK

Server

Tamam

201 Created

Server

Oluşturulan

202 Accepted

Kabul edildi

Other Status Codes

CloudError

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

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

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

Örnekler

Create a database as a point in time restore
Create a new server
Create a replica server
Create a server as a geo restore

Create a database as a point in time restore

Sample Request

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMariaDB/servers/targetserver?api-version=2018-06-01

{
  "location": "brazilsouth",
  "properties": {
    "restorePointInTime": "2017-12-14T00:00:37.467Z",
    "createMode": "PointInTimeRestore",
    "sourceServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver"
  },
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "tags": {
    "ElasticServer": "1"
  }
}

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": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "targetserver.mariadb.database.azure.com",
    "earliestRestoreDate": "2018-03-14T18:02:41.577+00:00"
  },
  "location": "brazilsouth",
  "tags": {
    "ElasticServer": "1"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/targetserver",
  "name": "targetserver",
  "type": "Microsoft.DBforMariaDB/servers"
}
{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/targetserver",
  "name": "targetserver",
  "type": "Microsoft.DBforMariaDB/servers",
  "location": "brazilsouth",
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "tags": {
    "elasticServer": "1"
  },
  "properties": {
    "administratorLogin": "cloudsa",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled"
    },
    "version": "10.3",
    "sslEnforcement": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "targetserver.mariadb.database.azure.com",
    "earliestRestoreDate": "2018-03-14T18:02:41.577+00:00"
  }
}

Create a new server

Sample Request

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/mariadbtestsvc4?api-version=2018-06-01

{
  "location": "westus",
  "properties": {
    "administratorLogin": "cloudsa",
    "administratorLoginPassword": "<administratorLoginPassword>",
    "sslEnforcement": "Enabled",
    "minimalTlsVersion": "TLS1_2",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled"
    },
    "createMode": "Default"
  },
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "capacity": 2,
    "family": "Gen5"
  },
  "tags": {
    "ElasticServer": "1"
  }
}

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": "Enabled",
    "minimalTlsVersion": "TLS1_2",
    "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"
}
{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/mariadbtestsvc4",
  "name": "mariadbtestsvc4",
  "type": "Microsoft.DBforMariaDB/servers",
  "location": "westus",
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "tags": {
    "elasticServer": "1"
  },
  "properties": {
    "administratorLogin": "cloudsa",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 7,
      "geoRedundantBackup": "Enabled"
    },
    "version": "10.3",
    "sslEnforcement": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "mariadbtestsvc4.mariadb.database.azure.com",
    "earliestRestoreDate": "2018-03-14T18:02:41.577+00:00"
  }
}

Create a replica server

Sample Request

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMariaDB/servers/targetserver?api-version=2018-06-01

{
  "location": "westus",
  "properties": {
    "createMode": "Replica",
    "sourceServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver"
  }
}

Sample Response

{
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "properties": {
    "administratorLogin": "cloudsa",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 14,
      "geoRedundantBackup": "Enabled"
    },
    "version": "10.3",
    "sslEnforcement": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "targetserver.mariadb.database.azure.com",
    "earliestRestoreDate": "2018-03-14T18:02:41.577+00:00",
    "replicationRole": "Replica",
    "masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver",
    "replicaCapacity": 0
  },
  "location": "westus",
  "tags": {
    "ElasticServer": "1"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMariaDB/servers/targetserver",
  "name": "targetserver",
  "type": "Microsoft.DBforMariaDB/servers"
}
{
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "properties": {
    "administratorLogin": "cloudsa",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 14,
      "geoRedundantBackup": "Enabled"
    },
    "version": "10.3",
    "sslEnforcement": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "targetserver.mariadb.database.azure.com",
    "earliestRestoreDate": "2018-03-14T18:02:41.577+00:00",
    "replicationRole": "Replica",
    "masterServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver",
    "replicaCapacity": 0
  },
  "location": "westus",
  "tags": {
    "ElasticServer": "1"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMariaDB/servers/targetserver",
  "name": "targetserver",
  "type": "Microsoft.DBforMariaDB/servers"
}

Create a server as a geo restore

Sample Request

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMariaDB/servers/targetserver?api-version=2018-06-01

{
  "location": "westus",
  "properties": {
    "createMode": "GeoRestore",
    "sourceServerId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver"
  },
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "tags": {
    "ElasticServer": "1"
  }
}

Sample Response

{
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "properties": {
    "administratorLogin": "cloudsa",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 14,
      "geoRedundantBackup": "Enabled"
    },
    "version": "10.3",
    "sslEnforcement": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "targetserver.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/targetserver",
  "name": "targetserver",
  "type": "Microsoft.DBforMariaDB/servers"
}
{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMariaDB/servers/targetserver",
  "name": "targetserver",
  "type": "Microsoft.DBforMariaDB/servers",
  "location": "westus",
  "sku": {
    "name": "GP_Gen5_2",
    "tier": "GeneralPurpose",
    "family": "Gen5",
    "capacity": 2
  },
  "tags": {
    "elasticServer": "1"
  },
  "properties": {
    "administratorLogin": "cloudsa",
    "storageProfile": {
      "storageMB": 128000,
      "backupRetentionDays": 14,
      "geoRedundantBackup": "Enabled"
    },
    "version": "10.3",
    "sslEnforcement": "Enabled",
    "userVisibleState": "Ready",
    "fullyQualifiedDomainName": "targetserver.mariadb.database.azure.com",
    "earliestRestoreDate": "2018-03-14T18:02:41.577+00:00"
  }
}

Tanımlar

Name Description
CloudError

Batch hizmetinden bir hata yanıtı.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorResponse

Hata Yanıtı

GeoRedundantBackup

Sunucu yedeklemesi için Coğrafi olarak yedekli veya değil'i etkinleştirin.

MinimalTlsVersionEnum

Sunucu için en düşük Tls sürümünü zorunlu kılma.

PrivateEndpointProperty

Bağlantının ait olduğu özel uç nokta.

PrivateEndpointProvisioningState

Özel uç nokta bağlantısının durumu.

PrivateLinkServiceConnectionStateActionsRequire

Özel bağlantı hizmeti bağlantısı için gereken eylemler.

PrivateLinkServiceConnectionStateStatus

Özel bağlantı hizmeti bağlantı durumu.

PublicNetworkAccessEnum

Bu sunucu için genel ağ erişimine izin verilip verilmeyeceği. Değer isteğe bağlıdır, ancak geçirilirse 'Etkin' veya 'Devre Dışı' olmalıdır

Server

Bir sunucuyu temsil eder.

ServerForCreate

Sunucu oluşturmak veya güncelleştirmek için gerekli parametreler.

ServerPrivateEndpointConnection

Sunucudaki özel uç nokta bağlantılarının listesi

ServerPrivateEndpointConnectionProperties

Özel uç nokta bağlantı özellikleri

ServerPrivateLinkServiceConnectionStateProperty

Özel uç nokta bağlantısının bağlantı durumu.

ServerState

Kullanıcının görebilmesi için sunucunun durumu.

ServerVersion

Sunucu sürümü.

Sku

Sunucunun SKU'su (fiyatlandırma katmanı).

SkuTier

Belirli bir SKU'nun katmanı, örneğin Temel.

SslEnforcementEnum

Sunucuya bağlanırken ssl zorlamayı etkinleştirin veya etkinleştirmeyin.

StorageAutogrow

Depolama Otomatik Büyütme'yi etkinleştirin.

StorageProfile

Bir sunucunun depolama profili.

CloudError

Batch hizmetinden bir hata yanıtı.

Name Tür Description
error

ErrorResponse

Hata Yanıtı
Hata iletisi

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorResponse

Hata Yanıtı

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorResponse[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

GeoRedundantBackup

Sunucu yedeklemesi için Coğrafi olarak yedekli veya değil'i etkinleştirin.

Name Tür Description
Disabled

string

Enabled

string

MinimalTlsVersionEnum

Sunucu için en düşük Tls sürümünü zorunlu kılma.

Name Tür Description
TLS1_0

string

TLS1_1

string

TLS1_2

string

TLSEnforcementDisabled

string

PrivateEndpointProperty

Bağlantının ait olduğu özel uç nokta.

Name Tür Description
id

string

Özel uç noktanın kaynak kimliği.

PrivateEndpointProvisioningState

Özel uç nokta bağlantısının durumu.

Name Tür Description
Approving

string

Dropping

string

Failed

string

Ready

string

Rejecting

string

PrivateLinkServiceConnectionStateActionsRequire

Özel bağlantı hizmeti bağlantısı için gereken eylemler.

Name Tür Description
None

string

PrivateLinkServiceConnectionStateStatus

Özel bağlantı hizmeti bağlantı durumu.

Name Tür Description
Approved

string

Disconnected

string

Pending

string

Rejected

string

PublicNetworkAccessEnum

Bu sunucu için genel ağ erişimine izin verilip verilmeyeceği. Değer isteğe bağlıdır, ancak geçirilirse 'Etkin' veya 'Devre Dışı' olmalıdır

Name Tür Description
Disabled

string

Enabled

string

Server

Bir sunucuyu temsil eder.

Name Tür Description
id

string

Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

Kaynağın bulunduğu coğrafi konum

name

string

Kaynağın adı

properties.administratorLogin

string

Yöneticinin sunucunun oturum açma adı. Yalnızca sunucu oluşturulurken belirtilebilir (ve oluşturma için gereklidir).

properties.earliestRestoreDate

string

En erken geri yükleme noktası oluşturma zamanı (ISO8601 biçimi)

properties.fullyQualifiedDomainName

string

Sunucunun tam etki alanı adı.

properties.masterServerId

string

Çoğaltma sunucusunun ana sunucu kimliği.

properties.minimalTlsVersion

MinimalTlsVersionEnum

Sunucu için en düşük Tls sürümünü zorunlu kılma.

properties.privateEndpointConnections

ServerPrivateEndpointConnection[]

Sunucudaki özel uç nokta bağlantılarının listesi

properties.publicNetworkAccess

PublicNetworkAccessEnum

Bu sunucu için genel ağ erişimine izin verilip verilmeyeceği. Değer isteğe bağlıdır, ancak geçirilirse 'Etkin' veya 'Devre Dışı' olmalıdır

properties.replicaCapacity

integer

Bir ana sunucunun sahip olabileceği en fazla çoğaltma sayısı.

properties.replicationRole

string

Sunucunun çoğaltma rolü.

properties.sslEnforcement

SslEnforcementEnum

Sunucuya bağlanırken ssl zorlamayı etkinleştirin veya etkinleştirmeyin.

properties.storageProfile

StorageProfile

Bir sunucunun depolama profili.

properties.userVisibleState

ServerState

Kullanıcının görebilmesi için sunucunun durumu.

properties.version

ServerVersion

Sunucu sürümü.

sku

Sku

Sunucunun SKU'su (fiyatlandırma katmanı).

tags

object

Kaynak etiketleri.

type

string

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

ServerForCreate

Sunucu oluşturmak veya güncelleştirmek için gerekli parametreler.

Name Tür Description
location

string

Kaynağın bulunduğu konum.

properties

ServerPropertiesForCreate

Sunucunun özellikleri.

sku

Sku

Sunucunun SKU'su (fiyatlandırma katmanı).

tags

object

Anahtar-değer çiftleri biçiminde uygulamaya özgü meta veriler.

ServerPrivateEndpointConnection

Sunucudaki özel uç nokta bağlantılarının listesi

Name Tür Description
id

string

Özel uç nokta bağlantısının kaynak kimliği.

properties

ServerPrivateEndpointConnectionProperties

Özel uç nokta bağlantı özellikleri

ServerPrivateEndpointConnectionProperties

Özel uç nokta bağlantı özellikleri

Name Tür Description
privateEndpoint

PrivateEndpointProperty

Bağlantının ait olduğu özel uç nokta.

privateLinkServiceConnectionState

ServerPrivateLinkServiceConnectionStateProperty

Özel uç nokta bağlantısının bağlantı durumu.

provisioningState

PrivateEndpointProvisioningState

Özel uç nokta bağlantısının durumu.

ServerPrivateLinkServiceConnectionStateProperty

Özel uç nokta bağlantısının bağlantı durumu.

Name Tür Description
actionsRequired

PrivateLinkServiceConnectionStateActionsRequire

Özel bağlantı hizmeti bağlantısı için gereken eylemler.

description

string

Özel bağlantı hizmeti bağlantı açıklaması.

status

PrivateLinkServiceConnectionStateStatus

Özel bağlantı hizmeti bağlantı durumu.

ServerState

Kullanıcının görebilmesi için sunucunun durumu.

Name Tür Description
Disabled

string

Dropping

string

Ready

string

ServerVersion

Sunucu sürümü.

Name Tür Description
10.2

string

10.3

string

Sku

Sunucunun SKU'su (fiyatlandırma katmanı).

Name Tür Description
capacity

integer

Sunucunun işlem birimlerini temsil eden ölçeği artırma/genişletme kapasitesi.

family

string

Donanım ailesi.

name

string

Sku adı, genellikle katman + aile + çekirdekler, örneğin B_Gen4_1, GP_Gen5_8.

size

string

Kaynak tarafından uygun şekilde yorumlanacak boyut kodu.

tier

SkuTier

Belirli bir SKU'nun katmanı, örneğin Temel.

SkuTier

Belirli bir SKU'nun katmanı, örneğin Temel.

Name Tür Description
Basic

string

GeneralPurpose

string

MemoryOptimized

string

SslEnforcementEnum

Sunucuya bağlanırken ssl zorlamayı etkinleştirin veya etkinleştirmeyin.

Name Tür Description
Disabled

string

Enabled

string

StorageAutogrow

Depolama Otomatik Büyütme'yi etkinleştirin.

Name Tür Description
Disabled

string

Enabled

string

StorageProfile

Bir sunucunun depolama profili.

Name Tür Description
backupRetentionDays

integer

Sunucu için yedekleme bekletme günleri.

geoRedundantBackup

GeoRedundantBackup

Sunucu yedeklemesi için Coğrafi olarak yedekli veya değil'i etkinleştirin.

storageAutogrow

StorageAutogrow

Depolama Otomatik Büyütme'yi etkinleştirin.

storageMB

integer

Bir sunucu için izin verilen maksimum depolama alanı.