# 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_INSENSITIVE_LOWERCASE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="CHAIN",
big_tables=False,
character_set_server="HEBREW",
collation_server="LATIN7_GENERAL_CI",
connection_memory_chunk_size=258391509,
connection_memory_limit=4677104307544103936,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=6084797569831106560,
global_connection_memory_tracking=False,
transaction_isolation="READ-COMMITED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
group_concat_max_len=5928424470513747972,
innodb_ft_enable_stopword=True,
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=544,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=9080071496622989312,
innodb_ft_result_cache_limit=1436686799,
max_binlog_cache_size=58209988908507,
max_connect_errors=4996210228632070145,
max_heap_table_size=3652629611508228608,
max_connections=23266,
max_prepared_stmt_count=2997122,
connect_timeout=6801409,
cte_max_recursion_depth=24346899,
generated_random_password_length=103,
information_schema_stats_expiry=5208343,
innodb_buffer_pool_dump_pct=35,
innodb_buffer_pool_instances=50,
innodb_ddl_buffer_size=1911708915,
innodb_ddl_threads=30,
innodb_ft_max_token_size=74,
innodb_ft_min_token_size=4,
innodb_ft_num_word_optimize=149,
innodb_lock_wait_timeout=881109518,
innodb_max_purge_lag=1295915118,
innodb_max_purge_lag_delay=28005,
interactive_timeout=17989564,
innodb_stats_persistent_sample_pages=8450753654755503105,
innodb_stats_transient_sample_pages=2119574422145233921,
innodb_strict_mode=True,
max_allowed_packet=126216387,
max_execution_time=7660392936345491456,
mysqlx_connect_timeout=885502218,
mysqlx_document_id_unique_prefix=21721,
mysqlx_idle_worker_thread_timeout=448,
mysqlx_interactive_timeout=2105691,
mysqlx_max_allowed_packet=950549631,
mysqlx_min_worker_threads=21,
mysqlx_read_timeout=1040956,
mysqlx_wait_timeout=1428472,
mysqlx_write_timeout=1529554,
net_read_timeout=12758583,
net_write_timeout=17189474,
parser_max_mem_size=2472117108825362560,
query_alloc_block_size=489219564,
query_prealloc_size=8361218138061770752,
regexp_time_limit=647948824,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1706294488524003072,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=2,
mysqlx_lz4_max_client_compression_level=10,
mysqlx_lz4_default_compression_level=10,
mysqlx_zstd_max_client_compression_level=17,
mysqlx_zstd_default_compression_level=4,
mysql_zstd_default_compression_level=13,
sort_buffer_size=8411451725791407104,
wait_timeout=1784151,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=43860,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=958481,
binlog_group_commit_sync_no_delay_count=12100,
replica_net_timeout=17202305,
require_secure_transport=False,
innodb_redo_log_capacity=54361004612,
thread_pool_transaction_delay=217205,
thread_pool_query_threads_per_group=962,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=7411946879094901760,
innodb_change_buffering="DELETES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=456361,
table_open_cache=243523,
relay_log_space_limit=15110534242927616,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=841,
skip_name_resolve=False,
max_user_connections=2842450681,
join_buffer_size=4600087682881927296,
max_seeks_for_key=4227920257041390593,
range_optimizer_max_mem_size=7013648937788815360,
auto_increment_increment=37405,
auto_increment_offset=17676,
innodb_autoinc_lock_mode=784,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=2659800256669465088,
innodb_sort_buffer_size=64354593,
innodb_numa_interleave=True,
thread_pool_size=373,
long_query_time=12401129),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_SsdKW': 'EXAMPLE_VALUE_3HeoMSM7540CJXJY9ccu'},
defined_tags={
'EXAMPLE_KEY_bhRPJ': {
'EXAMPLE_KEY_lQxNu': 'EXAMPLE--Value'}}),
opc_request_id="U3QK6UJCW7K7PJ7TWAUB<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)