Server Class

Represents a server.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.rdbms.mysql_flexibleservers.models._models_py3.TrackedResource
Server

Constructor

Server(*, location: str, tags: Dict[str, str] | None = None, identity: Identity | None = None, sku: Sku | None = None, administrator_login: str | None = None, administrator_login_password: str | None = None, version: str | ServerVersion | None = None, availability_zone: str | None = None, create_mode: str | CreateMode | None = None, source_server_resource_id: str | None = None, restore_point_in_time: datetime | None = None, replication_role: str | ReplicationRole | None = None, data_encryption: DataEncryption | None = None, storage: Storage | None = None, backup: Backup | None = None, high_availability: HighAvailability | None = None, network: Network | None = None, maintenance_window: MaintenanceWindow | None = None, **kwargs)

Keyword-Only Parameters

Name Description
tags

A set of tags. Resource tags.

location
str

Required. The geo-location where the resource lives.

identity

The cmk identity for the server.

sku
Sku

The SKU (pricing tier) of the server.

administrator_login
str

The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).

administrator_login_password
str

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

version

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

availability_zone
str

availability Zone information of the server.

create_mode

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

source_server_resource_id
str

The source MySQL server id.

restore_point_in_time

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

replication_role

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

data_encryption

The Data Encryption for CMK.

storage

Storage related properties of a server.

backup

Backup related properties of a server.

high_availability

High availability related properties of a server.

network

Network related properties of a server.

maintenance_window

Maintenance window of a server.

Variables

Name Description
id
str

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

name
str

The name of the resource.

type
str

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

tags

A set of tags. Resource tags.

location
str

Required. The geo-location where the resource lives.

identity

The cmk identity for the server.

sku
Sku

The SKU (pricing tier) of the server.

system_data

The system metadata relating to this resource.

administrator_login
str

The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).

administrator_login_password
str

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

version

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

availability_zone
str

availability Zone information of the server.

create_mode

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

source_server_resource_id
str

The source MySQL server id.

restore_point_in_time

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

replication_role

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

replica_capacity
int

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

data_encryption

The Data Encryption for CMK.

state

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

fully_qualified_domain_name
str

The fully qualified domain name of a server.

storage

Storage related properties of a server.

backup

Backup related properties of a server.

high_availability

High availability related properties of a server.

network

Network related properties of a server.

maintenance_window

Maintenance window of a server.