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 server.
Constructor
Server(*, location: str, tags: dict[str, str] | None = None, identity: _models.ResourceIdentity | None = None, sku: _models.Sku | None = None, administrator_login: str | None = None, version: str | _models.ServerVersion | None = None, ssl_enforcement: str | _models.SslEnforcementEnum | None = None, minimal_tls_version: str | _models.MinimalTlsVersionEnum | None = None, infrastructure_encryption: str | _models.InfrastructureEncryption | None = None, user_visible_state: str | _models.ServerState | None = None, fully_qualified_domain_name: str | None = None, earliest_restore_date: datetime | None = None, storage_profile: _models.StorageProfile | None = None, replication_role: str | None = None, master_server_id: str | None = None, replica_capacity: int | None = None, public_network_access: str | _models.PublicNetworkAccessEnum | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
tags
|
Resource tags. Default value: None
|
|
location
|
The geo-location where the resource lives. Required. |
|
identity
|
The Azure Active Directory identity of the server. Default value: None
|
|
sku
|
The SKU (pricing tier) of the server. Default value: None
|
|
administrator_login
|
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). Default value: None
|
|
version
|
str or
ServerVersion
Server version. Known values are: "5.6", "5.7", and "8.0". Default value: None
|
|
ssl_enforcement
|
Enable ssl enforcement or not when connect to server. Known values are: "Enabled" and "Disabled". Default value: None
|
|
minimal_tls_version
|
Enforce a minimal Tls version for the server. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLSEnforcementDisabled". Default value: None
|
|
infrastructure_encryption
|
Status showing whether the server enabled infrastructure encryption. Known values are: "Enabled" and "Disabled". Default value: None
|
|
user_visible_state
|
str or
ServerState
A state of a server that is visible to user. Known values are: "Ready", "Dropping", "Disabled", and "Inaccessible". Default value: None
|
|
fully_qualified_domain_name
|
The fully qualified domain name of a server. Default value: None
|
|
earliest_restore_date
|
Earliest restore point creation time (ISO8601 format). Default value: None
|
|
storage_profile
|
Storage profile of a server. Default value: None
|
|
replication_role
|
The replication role of the server. Default value: None
|
|
master_server_id
|
The master server id of a replica server. Default value: None
|
|
replica_capacity
|
The maximum number of replicas that a master server can have. Default value: None
|
|
public_network_access
|
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". Default value: None
|
Variables
| Name | Description |
|---|---|
|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
|
name
|
The name of the resource. |
|
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
|
tags
|
Resource tags. |
|
location
|
The geo-location where the resource lives. Required. |
|
identity
|
The Azure Active Directory identity of the server. |
|
sku
|
The SKU (pricing tier) of the server. |
|
administrator_login
|
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). |
|
version
|
str or
ServerVersion
Server version. Known values are: "5.6", "5.7", and "8.0". |
|
ssl_enforcement
|
Enable ssl enforcement or not when connect to server. Known values are: "Enabled" and "Disabled". |
|
minimal_tls_version
|
Enforce a minimal Tls version for the server. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLSEnforcementDisabled". |
|
byok_enforcement
|
Status showing whether the server data encryption is enabled with customer-managed keys. |
|
infrastructure_encryption
|
Status showing whether the server enabled infrastructure encryption. Known values are: "Enabled" and "Disabled". |
|
user_visible_state
|
str or
ServerState
A state of a server that is visible to user. Known values are: "Ready", "Dropping", "Disabled", and "Inaccessible". |
|
fully_qualified_domain_name
|
The fully qualified domain name of a server. |
|
earliest_restore_date
|
Earliest restore point creation time (ISO8601 format). |
|
storage_profile
|
Storage profile of a server. |
|
replication_role
|
The replication role of the server. |
|
master_server_id
|
The master server id of a replica server. |
|
replica_capacity
|
The maximum number of replicas that a master server can have. |
|
public_network_access
|
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". |
|
private_endpoint_connections
|
List of private endpoint connections on a server. |