azure.mgmt.rdbms.mysql.operations module

class azure.mgmt.rdbms.mysql.operations.ServersOperations(client, config, serializer, deserializer)[source]

Bases: object

ServersOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The API version to use for the request. Constant value: “2017-04-30-preview”.

create_or_update(resource_group_name, server_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates a new server or updates an existing server. The update action will overwrite the existing server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • parameters (ServerForCreate) – The required parameters for creating or updating a server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Server

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, server_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, server_name, custom_headers=None, raw=False, **operation_config)[source]

Gets information about a server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Server

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

List all the servers in a given subscription.

Parameters:
Return type:

ServerPaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

List all the servers in a given resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ServerPaged

Raises:

CloudError

update(resource_group_name, server_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • parameters (ServerUpdateParameters) – The required parameters for updating a server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Server

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.rdbms.mysql.operations.FirewallRulesOperations(client, config, serializer, deserializer)[source]

Bases: object

FirewallRulesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The API version to use for the request. Constant value: “2017-04-30-preview”.

create_or_update(resource_group_name, server_name, firewall_rule_name, start_ip_address, end_ip_address, custom_headers=None, raw=False, **operation_config)[source]

Creates a new firewall rule or updates an existing firewall rule.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • firewall_rule_name (str) – The name of the server firewall rule.
  • start_ip_address (str) – The start IP address of the server firewall rule. Must be IPv4 format.
  • end_ip_address (str) – The end IP address of the server firewall rule. Must be IPv4 format.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns FirewallRule

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, server_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a server firewall rule.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • firewall_rule_name (str) – The name of the server firewall rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, server_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets information about a server firewall rule.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • firewall_rule_name (str) – The name of the server firewall rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

FirewallRule

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_by_server(resource_group_name, server_name, custom_headers=None, raw=False, **operation_config)[source]

List all the firewall rules in a given server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

FirewallRulePaged

Raises:

CloudError

class azure.mgmt.rdbms.mysql.operations.DatabasesOperations(client, config, serializer, deserializer)[source]

Bases: object

DatabasesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The API version to use for the request. Constant value: “2017-04-30-preview”.

create_or_update(resource_group_name, server_name, database_name, charset=None, collation=None, custom_headers=None, raw=False, **operation_config)[source]

Creates a new database or updates an existing database.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • database_name (str) – The name of the database.
  • charset (str) – The charset of the database.
  • collation (str) – The collation of the database.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Database

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a database.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • database_name (str) – The name of the database to be deleted.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config)[source]

Gets information about a database.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • database_name (str) – The name of the database to be retrieved.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Database

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_by_server(resource_group_name, server_name, custom_headers=None, raw=False, **operation_config)[source]

List all the databases in a given server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

DatabasePaged

Raises:

CloudError

class azure.mgmt.rdbms.mysql.operations.ConfigurationsOperations(client, config, serializer, deserializer)[source]

Bases: object

ConfigurationsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The API version to use for the request. Constant value: “2017-04-30-preview”.

create_or_update(resource_group_name, server_name, configuration_name, value=None, source=None, custom_headers=None, raw=False, **operation_config)[source]

Updates a configuration of a server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • configuration_name (str) – The name of the server configuration.
  • value (str) – Value of the configuration.
  • source (str) – Source of the configuration.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Configuration

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, server_name, configuration_name, custom_headers=None, raw=False, **operation_config)[source]

Gets information about a configuration of server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • configuration_name (str) – The name of the server configuration to be retrieved.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Configuration

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_by_server(resource_group_name, server_name, custom_headers=None, raw=False, **operation_config)[source]

List all the configurations in a given server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ConfigurationPaged

Raises:

CloudError

class azure.mgmt.rdbms.mysql.operations.LogFilesOperations(client, config, serializer, deserializer)[source]

Bases: object

LogFilesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The API version to use for the request. Constant value: “2017-04-30-preview”.

list_by_server(resource_group_name, server_name, custom_headers=None, raw=False, **operation_config)[source]

List all the log files in a given server.

Parameters:
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • server_name (str) – The name of the server.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LogFilePaged

Raises:

CloudError

class azure.mgmt.rdbms.mysql.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The API version to use for the request. Constant value: “2017-04-30-preview”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available REST API operations.

Parameters:
Return type:

OperationListResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError