共用方式為


Server Constructors

Definition

Overloads

Server()

Initializes a new instance of the Server class.

Server(String, String, String, String, IDictionary<String,String>, Sku, String, String, String, String, String, String, Nullable<DateTime>, String, Nullable<Int32>, String, String, Storage, Backup, HighAvailability, Network, MaintenanceWindow, SystemData)

Initializes a new instance of the Server class.

Server()

Initializes a new instance of the Server class.

public Server ();
Public Sub New ()

Applies to

Server(String, String, String, String, IDictionary<String,String>, Sku, String, String, String, String, String, String, Nullable<DateTime>, String, Nullable<Int32>, String, String, Storage, Backup, HighAvailability, Network, MaintenanceWindow, SystemData)

Initializes a new instance of the Server class.

public Server (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Sku sku = default, string administratorLogin = default, string administratorLoginPassword = default, string version = default, string availabilityZone = default, string createMode = default, string sourceServerResourceId = default, DateTime? restorePointInTime = default, string replicationRole = default, int? replicaCapacity = default, string state = default, string fullyQualifiedDomainName = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Storage storage = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Backup backup = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.HighAvailability highAvailability = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Network network = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.MaintenanceWindow maintenanceWindow = default, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.SystemData systemData = default);
new Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Server : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Sku * string * string * string * string * string * string * Nullable<DateTime> * string * Nullable<int> * string * string * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Storage * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Backup * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.HighAvailability * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Network * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.MaintenanceWindow * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.SystemData -> Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Server
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As Sku = Nothing, Optional administratorLogin As String = Nothing, Optional administratorLoginPassword As String = Nothing, Optional version As String = Nothing, Optional availabilityZone As String = Nothing, Optional createMode As String = Nothing, Optional sourceServerResourceId As String = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional replicationRole As String = Nothing, Optional replicaCapacity As Nullable(Of Integer) = Nothing, Optional state As String = Nothing, Optional fullyQualifiedDomainName As String = Nothing, Optional storage As Storage = Nothing, Optional backup As Backup = Nothing, Optional highAvailability As HighAvailability = Nothing, Optional network As Network = Nothing, Optional maintenanceWindow As MaintenanceWindow = Nothing, Optional systemData As SystemData = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

tags
IDictionary<String,String>

Resource tags.

sku
Sku

The SKU (pricing tier) of the server.

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).

administratorLoginPassword
String

The password of the administrator login (required for server creation).

version
String

Server version. Possible values include: '5.7', '8.0.21'

availabilityZone
String

availability Zone information of the server.

createMode
String

The mode to create a new MySQL server. Possible values include: 'Default', 'PointInTimeRestore', 'Replica', 'GeoRestore'

sourceServerResourceId
String

The source MySQL server id.

restorePointInTime
Nullable<DateTime>

Restore point creation time (ISO8601 format), specifying the time to restore from.

replicationRole
String

The replication role. Possible values include: 'None', 'Source', 'Replica'

replicaCapacity
Nullable<Int32>

The maximum number of replicas that a primary server can have.

state
String

The state of a server. Possible values include: 'Ready', 'Dropping', 'Disabled', 'Starting', 'Stopping', 'Stopped', 'Updating'

fullyQualifiedDomainName
String

The fully qualified domain name of a server.

storage
Storage

Storage related properties of a server.

backup
Backup

Backup related properties of a server.

highAvailability
HighAvailability

High availability related properties of a server.

network
Network

Network related properties of a server.

maintenanceWindow
MaintenanceWindow

Maintenance window of a server.

systemData
SystemData

The system metadata relating to this resource.

Applies to