# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
mysql_client = oci.mysql.MysqlaasClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
create_configuration_response = mysql_client.create_configuration(
create_configuration_details=oci.mysql.models.CreateConfigurationDetails(
compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
shape_name="EXAMPLE-shapeName-Value",
description="EXAMPLE-description-Value",
display_name="EXAMPLE-displayName-Value",
init_variables=oci.mysql.models.InitializationVariables(
lower_case_table_names="CASE_SENSITIVE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="NO_CHAIN",
big_tables=False,
character_set_server="CP932",
collation_server="UTF8MB4_IS_0900_AS_CS",
connection_memory_chunk_size=301744838,
connection_memory_limit=6373024252936027136,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=593030888567402880,
global_connection_memory_tracking=False,
transaction_isolation="REPEATABLE-READ",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="BEFORE_AND_AFTER",
group_concat_max_len=3516394376791771140,
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=True,
local_infile=True,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=574,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=5168267000573709312,
innodb_ft_result_cache_limit=2996163181,
max_binlog_cache_size=2676470254395,
max_connect_errors=194553759372864513,
max_heap_table_size=1026490878640469248,
max_connections=6992,
max_prepared_stmt_count=397801,
connect_timeout=18026063,
cte_max_recursion_depth=2517006000,
generated_random_password_length=87,
information_schema_stats_expiry=12824644,
innodb_buffer_pool_dump_pct=54,
innodb_buffer_pool_instances=30,
innodb_ddl_buffer_size=2297200114,
innodb_ddl_threads=54,
innodb_ft_max_token_size=36,
innodb_ft_min_token_size=11,
innodb_ft_num_word_optimize=47,
innodb_lock_wait_timeout=811106768,
innodb_max_purge_lag=1284140141,
innodb_max_purge_lag_delay=64005,
interactive_timeout=8168158,
innodb_stats_persistent_sample_pages=436638397813684225,
innodb_stats_transient_sample_pages=8262135852909800449,
innodb_strict_mode=False,
max_allowed_packet=573456187,
max_execution_time=3562785751253561344,
mysqlx_connect_timeout=398434678,
mysqlx_document_id_unique_prefix=25324,
mysqlx_idle_worker_thread_timeout=3164,
mysqlx_interactive_timeout=1097017,
mysqlx_max_allowed_packet=320072577,
mysqlx_min_worker_threads=5,
mysqlx_read_timeout=1776867,
mysqlx_wait_timeout=118999,
mysqlx_write_timeout=212080,
net_read_timeout=8120308,
net_write_timeout=28798696,
parser_max_mem_size=3116519243943023232,
query_alloc_block_size=645777365,
query_prealloc_size=9152680180455209984,
regexp_time_limit=68016527,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1008739888499545984,
mysqlx_deflate_default_compression_level=5,
mysqlx_deflate_max_client_compression_level=1,
mysqlx_lz4_max_client_compression_level=4,
mysqlx_lz4_default_compression_level=4,
mysqlx_zstd_max_client_compression_level=11,
mysqlx_zstd_default_compression_level=12,
mysql_zstd_default_compression_level=10,
sort_buffer_size=7507536649287117824,
wait_timeout=501829,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=61225,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=43462,
binlog_group_commit_sync_no_delay_count=90011,
replica_net_timeout=12941499,
require_secure_transport=False,
innodb_redo_log_capacity=66980844912,
thread_pool_transaction_delay=28600,
thread_pool_query_threads_per_group=1557,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=5028660344121307136,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=428643,
table_open_cache=471150,
relay_log_space_limit=9221866552679235584,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=206,
skip_name_resolve=False,
max_user_connections=1977594811,
join_buffer_size=7984113734641417344,
max_seeks_for_key=8328037808244019201,
range_optimizer_max_mem_size=3476886606005912576,
auto_increment_increment=27429,
auto_increment_offset=2197,
innodb_autoinc_lock_mode=510,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=193937750776987296,
innodb_sort_buffer_size=31601024,
innodb_numa_interleave=True,
thread_pool_size=266,
long_query_time=4197137),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_T9dNn': 'EXAMPLE_VALUE_21QhlWmUagigYXscVfle'},
defined_tags={
'EXAMPLE_KEY_ssD08': {
'EXAMPLE_KEY_dBcpv': 'EXAMPLE--Value'}}),
opc_request_id="5UY23H8TIPT0L9CXRBZS<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)