# 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=True,
character_set_server="LATIN5",
collation_server="UTF8MB4_ICELANDIC_CI",
connection_memory_chunk_size=245698461,
connection_memory_limit=2997676634751908352,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=7912256901052044288,
global_connection_memory_tracking=False,
transaction_isolation="SERIALIZABLE",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="BEFORE",
group_concat_max_len=7763616038870056964,
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=True,
sql_warnings=False,
binlog_expire_logs_seconds=522,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=424724971779372288,
innodb_ft_result_cache_limit=2003449135,
max_binlog_cache_size=53084629093113,
max_connect_errors=8920792999440849921,
max_heap_table_size=371778514704091520,
max_connections=42049,
max_prepared_stmt_count=3764424,
connect_timeout=11775879,
cte_max_recursion_depth=275247787,
generated_random_password_length=138,
information_schema_stats_expiry=1333805,
innodb_buffer_pool_dump_pct=45,
innodb_buffer_pool_instances=29,
innodb_ddl_buffer_size=1405797269,
innodb_ddl_threads=30,
innodb_ft_max_token_size=51,
innodb_ft_min_token_size=11,
innodb_ft_num_word_optimize=801,
innodb_lock_wait_timeout=439500235,
innodb_max_purge_lag=336831773,
innodb_max_purge_lag_delay=876681,
interactive_timeout=15725217,
innodb_stats_persistent_sample_pages=6790203327084718081,
innodb_stats_transient_sample_pages=2317470035213425665,
innodb_strict_mode=True,
max_allowed_packet=224032653,
max_execution_time=8542423088552385536,
mysqlx_connect_timeout=923545636,
mysqlx_document_id_unique_prefix=13652,
mysqlx_idle_worker_thread_timeout=3218,
mysqlx_interactive_timeout=1335205,
mysqlx_max_allowed_packet=800546589,
mysqlx_min_worker_threads=67,
mysqlx_read_timeout=8473,
mysqlx_wait_timeout=2096980,
mysqlx_write_timeout=1117522,
net_read_timeout=30426562,
net_write_timeout=24023533,
parser_max_mem_size=7793042331176434304,
query_alloc_block_size=1838108594,
query_prealloc_size=4310832949934786048,
regexp_time_limit=1838062782,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1407017209288173312,
mysqlx_deflate_default_compression_level=8,
mysqlx_deflate_max_client_compression_level=6,
mysqlx_lz4_max_client_compression_level=0,
mysqlx_lz4_default_compression_level=6,
mysqlx_zstd_max_client_compression_level=8,
mysqlx_zstd_default_compression_level=12,
mysql_zstd_default_compression_level=6,
sort_buffer_size=5429834052096628736,
wait_timeout=1392478,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=74801,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=734553,
binlog_group_commit_sync_no_delay_count=92909,
replica_net_timeout=4330978,
require_secure_transport=True,
innodb_redo_log_capacity=89046287339,
thread_pool_transaction_delay=147966,
thread_pool_query_threads_per_group=2317,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=580327477535774848,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=452714,
table_open_cache=323577,
relay_log_space_limit=6122756624353884160,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=304,
skip_name_resolve=False,
max_user_connections=2660061682,
join_buffer_size=5499846177377623168,
max_seeks_for_key=2394491323822593025,
range_optimizer_max_mem_size=2759256479883556864,
auto_increment_increment=60985,
auto_increment_offset=49700,
innodb_autoinc_lock_mode=874,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=1371576010732808704,
innodb_sort_buffer_size=28820463,
innodb_numa_interleave=False,
thread_pool_size=405,
long_query_time=243373),
options=[
oci.mysql.models.Option(
name="EXAMPLE-name-Value",
value="EXAMPLE-value-Value")],
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_QI98l': 'EXAMPLE_VALUE_K5eHX4EhlzmmWr91z0Ga'},
defined_tags={
'EXAMPLE_KEY_RI5xH': {
'EXAMPLE_KEY_JuGKy': 'EXAMPLE--Value'}}),
opc_request_id="RN07C8EQ1U0OENTDD356<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)