# 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="EUCJPMS",
collation_server="UTF8_UNICODE_520_CI",
connection_memory_chunk_size=492144126,
connection_memory_limit=2973965970619064832,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=2813758384764805120,
global_connection_memory_tracking=False,
transaction_isolation="READ-UNCOMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="EVENTUAL",
group_concat_max_len=8541543683596343300,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=689,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=6180366447939011584,
innodb_ft_result_cache_limit=4157536594,
max_binlog_cache_size=2179200269422,
max_connect_errors=1806673360318522369,
max_heap_table_size=220531058283684480,
max_connections=46729,
max_prepared_stmt_count=42643,
connect_timeout=6041004,
cte_max_recursion_depth=2307401545,
generated_random_password_length=126,
information_schema_stats_expiry=18627873,
innodb_buffer_pool_dump_pct=37,
innodb_buffer_pool_instances=58,
innodb_ddl_buffer_size=2944112581,
innodb_ddl_threads=28,
innodb_ft_max_token_size=61,
innodb_ft_min_token_size=15,
innodb_ft_num_word_optimize=911,
innodb_lock_wait_timeout=938354063,
innodb_max_purge_lag=3640356798,
innodb_max_purge_lag_delay=764445,
interactive_timeout=28039322,
innodb_stats_persistent_sample_pages=4767567127075012609,
innodb_stats_transient_sample_pages=7075266954156476417,
innodb_strict_mode=True,
max_allowed_packet=305736595,
max_execution_time=1506921249771240448,
mysqlx_connect_timeout=746684161,
mysqlx_document_id_unique_prefix=64520,
mysqlx_idle_worker_thread_timeout=650,
mysqlx_interactive_timeout=1384322,
mysqlx_max_allowed_packet=559021946,
mysqlx_min_worker_threads=70,
mysqlx_read_timeout=411894,
mysqlx_wait_timeout=1227639,
mysqlx_write_timeout=1843394,
net_read_timeout=12496144,
net_write_timeout=10163920,
parser_max_mem_size=2741150613236722816,
query_alloc_block_size=4076555848,
query_prealloc_size=5590255894412554240,
regexp_time_limit=1385308188,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=4619382270020294656,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=9,
mysqlx_lz4_default_compression_level=15,
mysqlx_zstd_max_client_compression_level=2,
mysqlx_zstd_default_compression_level=3,
mysql_zstd_default_compression_level=8,
sort_buffer_size=6015365331883955200,
wait_timeout=178481,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=12683,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=494673,
binlog_group_commit_sync_no_delay_count=16646,
replica_net_timeout=7145894,
require_secure_transport=False,
innodb_redo_log_capacity=5563017280,
thread_pool_transaction_delay=124763,
thread_pool_query_threads_per_group=1834,
explain_format="TREE",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=True,
temptable_max_ram=6633227579257311232,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=442124,
table_open_cache=109542,
relay_log_space_limit=1833074660223375360,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=630,
skip_name_resolve=False,
max_user_connections=3729525452,
join_buffer_size=4442173318361313408,
max_seeks_for_key=6479829699801559041,
range_optimizer_max_mem_size=5948462235572463616,
auto_increment_increment=40975,
auto_increment_offset=60386,
innodb_autoinc_lock_mode=160,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=2248778507902127616,
innodb_sort_buffer_size=26801910,
innodb_numa_interleave=False,
thread_pool_size=11,
long_query_time=19275916),
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_OQf9y': 'EXAMPLE_VALUE_ZCJ4872sZLZ3sfBi1R2E'},
defined_tags={
'EXAMPLE_KEY_jS9b4': {
'EXAMPLE_KEY_WgcVt': 'EXAMPLE--Value'}}),
opc_request_id="2OCBIQLN7HEYEMTDVJH3<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)