Servers - Update
Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}?api-version=2018-06-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
server
|
path | True |
string |
The name of the server. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
| Name | Type | Description |
|---|---|---|
| parameters |
The required parameters for updating a server. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| 202 Accepted |
Accepted |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
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 | impersonate your user account |
Examples
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
{
"properties": {
"administratorLoginPassword": "<administratorLoginPassword>",
"sslEnforcement": "Disabled"
}
}
Sample response
{
"sku": {
"name": "GP_Gen4_2",
"tier": "GeneralPurpose",
"family": "Gen4",
"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"
}
Definitions
| Name | Description |
|---|---|
|
Cloud |
An error response from the Batch service. |
|
Error |
The resource management error additional info. |
|
Error |
Error Response |
|
Geo |
Enable Geo-redundant or not for server backup. |
|
Minimal |
Enforce a minimal Tls version for the server. |
|
Private |
Private endpoint which the connection belongs to. |
|
Private |
State of the private endpoint connection. |
|
Private |
The actions required for private link service connection. |
|
Private |
The private link service connection status. |
|
Public |
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' |
| Server |
Represents a server. |
|
Server |
List of private endpoint connections on a server |
|
Server |
Private endpoint connection properties |
|
Server |
Connection state of the private endpoint connection. |
|
Server |
A state of a server that is visible to user. |
|
Server |
The required parameters for updating a server. |
|
Server |
Server version. |
| Sku |
The SKU (pricing tier) of the server. |
|
Sku |
The tier of the particular SKU, e.g. Basic. |
|
Ssl |
Enable ssl enforcement or not when connect to server. |
|
Storage |
Enable Storage Auto Grow. |
|
Storage |
Storage profile of a server. |
CloudError
An error response from the Batch service.
| Name | Type | Description |
|---|---|---|
| error |
Error Response |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorResponse
Error Response
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
GeoRedundantBackup
Enable Geo-redundant or not for server backup.
| Value | Description |
|---|---|
| Enabled | |
| Disabled |
MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
| Value | Description |
|---|---|
| TLS1_0 | |
| TLS1_1 | |
| TLS1_2 | |
| TLSEnforcementDisabled |
PrivateEndpointProperty
Private endpoint which the connection belongs to.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource id of the private endpoint. |
PrivateEndpointProvisioningState
State of the private endpoint connection.
| Value | Description |
|---|---|
| Approving | |
| Ready | |
| Dropping | |
| Failed | |
| Rejecting |
PrivateLinkServiceConnectionStateActionsRequire
The actions required for private link service connection.
| Value | Description |
|---|---|
| None |
PrivateLinkServiceConnectionStateStatus
The private link service connection status.
| Value | Description |
|---|---|
| Approved | |
| Pending | |
| Rejected | |
| Disconnected |
PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
| Value | Description |
|---|---|
| Enabled | |
| Disabled |
Server
Represents a server.
| Name | Type | Description |
|---|---|---|
| id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location |
string |
The geo-location where the resource lives |
| name |
string |
The name of the resource |
| properties.administratorLogin |
string |
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). |
| properties.earliestRestoreDate |
string (date-time) |
Earliest restore point creation time (ISO8601 format) |
| properties.fullyQualifiedDomainName |
string |
The fully qualified domain name of a server. |
| properties.masterServerId |
string |
The master server id of a replica server. |
| properties.minimalTlsVersion |
Enforce a minimal Tls version for the server. |
|
| properties.privateEndpointConnections |
List of private endpoint connections on a server |
|
| properties.publicNetworkAccess |
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' |
|
| properties.replicaCapacity |
integer (int32) minimum: 0 |
The maximum number of replicas that a master server can have. |
| properties.replicationRole |
string |
The replication role of the server. |
| properties.sslEnforcement |
Enable ssl enforcement or not when connect to server. |
|
| properties.storageProfile |
Storage profile of a server. |
|
| properties.userVisibleState |
A state of a server that is visible to user. |
|
| properties.version |
Server version. |
|
| sku |
The SKU (pricing tier) of the server. |
|
| tags |
object |
Resource tags. |
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ServerPrivateEndpointConnection
List of private endpoint connections on a server
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource Id of the private endpoint connection. |
| properties |
Private endpoint connection properties |
ServerPrivateEndpointConnectionProperties
Private endpoint connection properties
| Name | Type | Description |
|---|---|---|
| privateEndpoint |
Private endpoint which the connection belongs to. |
|
| privateLinkServiceConnectionState |
Connection state of the private endpoint connection. |
|
| provisioningState |
State of the private endpoint connection. |
ServerPrivateLinkServiceConnectionStateProperty
Connection state of the private endpoint connection.
| Name | Type | Description |
|---|---|---|
| actionsRequired |
The actions required for private link service connection. |
|
| description |
string |
The private link service connection description. |
| status |
The private link service connection status. |
ServerState
A state of a server that is visible to user.
| Value | Description |
|---|---|
| Ready | |
| Dropping | |
| Disabled |
ServerUpdateParameters
The required parameters for updating a server.
| Name | Type | Description |
|---|---|---|
| properties.administratorLoginPassword |
string (password) |
The password of the administrator login. |
| properties.minimalTlsVersion |
Enforce a minimal Tls version for the server. |
|
| properties.publicNetworkAccess |
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' |
|
| properties.replicationRole |
string |
The replication role of the server. |
| properties.sslEnforcement |
Enable ssl enforcement or not when connect to server. |
|
| properties.storageProfile |
Storage profile of a server. |
|
| properties.version |
The version of a server. |
|
| sku |
The SKU (pricing tier) of the server. |
|
| tags |
object |
Application-specific metadata in the form of key-value pairs. |
ServerVersion
Server version.
| Value | Description |
|---|---|
| 10.2 | |
| 10.3 |
Sku
The SKU (pricing tier) of the server.
| Name | Type | Description |
|---|---|---|
| capacity |
integer (int32) minimum: 0 |
The scale up/out capacity, representing server's compute units. |
| family |
string |
The family of hardware. |
| name |
string |
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. |
| size |
string |
The size code, to be interpreted by resource as appropriate. |
| tier |
The tier of the particular SKU, e.g. Basic. |
SkuTier
The tier of the particular SKU, e.g. Basic.
| Value | Description |
|---|---|
| Basic | |
| GeneralPurpose | |
| MemoryOptimized |
SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
| Value | Description |
|---|---|
| Enabled | |
| Disabled |
StorageAutogrow
Enable Storage Auto Grow.
| Value | Description |
|---|---|
| Enabled | |
| Disabled |
StorageProfile
Storage profile of a server.
| Name | Type | Description |
|---|---|---|
| backupRetentionDays |
integer (int32) |
Backup retention days for the server. |
| geoRedundantBackup |
Enable Geo-redundant or not for server backup. |
|
| storageAutogrow |
Enable Storage Auto Grow. |
|
| storageMB |
integer (int32) |
Max storage allowed for a server. |