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.postgresql_flexibleservers.models._models_py3.TrackedResourceServer
Constructor
Server(*, location: str, tags: Dict[str, str] | None = None, sku: Sku | None = None, administrator_login: str | None = None, administrator_login_password: str | None = None, version: str | ServerVersion | None = None, storage: Storage | None = None, backup: Backup | None = None, network: Network | None = None, high_availability: HighAvailability | None = None, maintenance_window: MaintenanceWindow | None = None, source_server_resource_id: str | None = None, point_in_time_utc: datetime | None = None, availability_zone: str | None = None, create_mode: str | CreateMode | None = None, tags_properties_tags: Dict[str, str] | None = None, **kwargs)
Parameters
Name | Description |
---|---|
tags
Required
|
A set of tags. Resource tags. |
location
Required
|
Required. The geo-location where the resource lives. |
sku
Required
|
The SKU (pricing tier) of the server. |
administrator_login
Required
|
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
Required
|
The administrator login password (required for server creation). |
version
Required
|
str or
ServerVersion
PostgreSQL Server version. Possible values include: "13", "12", "11". |
storage
Required
|
Storage properties of a server. |
backup
Required
|
Backup properties of a server. |
network
Required
|
Network properties of a server. |
high_availability
Required
|
High availability properties of a server. |
maintenance_window
Required
|
Maintenance window properties of a server. |
source_server_resource_id
Required
|
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'. |
point_in_time_utc
Required
|
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'. |
availability_zone
Required
|
availability zone information of the server. |
create_mode
Required
|
str or
CreateMode
The mode to create a new PostgreSQL server. Possible values include: "Default", "Create", "Update", "PointInTimeRestore". |
tags_properties_tags
Required
|
Application-specific metadata in the form of key-value pairs. |
Keyword-Only Parameters
Name | Description |
---|---|
location
Required
|
|
tags
Required
|
|
sku
Required
|
|
administrator_login
Required
|
|
administrator_login_password
Required
|
|
version
Required
|
|
storage
Required
|
|
backup
Required
|
|
network
Required
|
|
high_availability
Required
|
|
maintenance_window
Required
|
|
source_server_resource_id
Required
|
|
point_in_time_utc
Required
|
|
availability_zone
Required
|
|
create_mode
Required
|
|
tags_properties_tags
Required
|
|
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". |
system_data
|
The system metadata relating to this resource. |
minor_version
|
The minor version of the server. |
state
|
str or
ServerState
A state of a server that is visible to user. Possible values include: "Ready", "Dropping", "Disabled", "Starting", "Stopping", "Stopped", "Updating". |
fully_qualified_domain_name
|
The fully qualified domain name of a server. |
Azure SDK for Python