# 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="CP1251",
            collation_server="TIS620_BIN",
            connection_memory_chunk_size=335236072,
            connection_memory_limit=8746110925585603584,
            default_authentication_plugin="mysql_native_password",
            global_connection_memory_limit=3607463640418499584,
            global_connection_memory_tracking=True,
            transaction_isolation="READ-COMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=True,
            group_replication_consistency="AFTER",
            group_concat_max_len=7839536196141829124,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=True,
            local_infile=False,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=False,
            binlog_expire_logs_seconds=152,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=3157494763984777216,
            innodb_ft_result_cache_limit=93124731,
            max_binlog_cache_size=45148887656488,
            max_connect_errors=458525023441897473,
            max_heap_table_size=2114153034656567552,
            max_connections=10486,
            max_prepared_stmt_count=212829,
            connect_timeout=24622405,
            cte_max_recursion_depth=1746347371,
            generated_random_password_length=122,
            information_schema_stats_expiry=21225648,
            innodb_buffer_pool_dump_pct=26,
            innodb_buffer_pool_instances=13,
            innodb_ddl_buffer_size=3003331710,
            innodb_ddl_threads=34,
            innodb_ft_max_token_size=63,
            innodb_ft_min_token_size=11,
            innodb_ft_num_word_optimize=690,
            innodb_lock_wait_timeout=717762319,
            innodb_max_purge_lag=1734774270,
            innodb_max_purge_lag_delay=611035,
            interactive_timeout=16316443,
            innodb_stats_persistent_sample_pages=8275249199470853121,
            innodb_stats_transient_sample_pages=2735746131011174401,
            innodb_strict_mode=False,
            max_allowed_packet=1032299549,
            max_execution_time=8850692655299402752,
            mysqlx_connect_timeout=869716692,
            mysqlx_document_id_unique_prefix=21231,
            mysqlx_idle_worker_thread_timeout=427,
            mysqlx_interactive_timeout=641091,
            mysqlx_max_allowed_packet=307723802,
            mysqlx_min_worker_threads=12,
            mysqlx_read_timeout=1053873,
            mysqlx_wait_timeout=93539,
            mysqlx_write_timeout=188028,
            net_read_timeout=9850271,
            net_write_timeout=20272534,
            parser_max_mem_size=4128469413753645184,
            query_alloc_block_size=3039746434,
            query_prealloc_size=8846930284919707648,
            regexp_time_limit=1437008306,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=2807779774661973504,
            mysqlx_deflate_default_compression_level=6,
            mysqlx_deflate_max_client_compression_level=6,
            mysqlx_lz4_max_client_compression_level=6,
            mysqlx_lz4_default_compression_level=13,
            mysqlx_zstd_max_client_compression_level=12,
            mysqlx_zstd_default_compression_level=5,
            mysql_zstd_default_compression_level=6,
            sort_buffer_size=4741450298773475328,
            wait_timeout=495400,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=78043,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=503795,
            binlog_group_commit_sync_no_delay_count=56587,
            replica_net_timeout=26990543,
            require_secure_transport=False,
            innodb_redo_log_capacity=101280024396,
            thread_pool_transaction_delay=226152,
            thread_pool_query_threads_per_group=3610,
            explain_format="TRADITIONAL",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=2994215086614612992,
            innodb_change_buffering="ALL",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=True,
            table_definition_cache=66539,
            table_open_cache=139705,
            relay_log_space_limit=6122573866564750336,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=745,
            skip_name_resolve=True,
            max_user_connections=1217719746,
            join_buffer_size=1540013853479076992,
            max_seeks_for_key=1076605594169839617,
            range_optimizer_max_mem_size=5864019549712480256,
            auto_increment_increment=15853,
            auto_increment_offset=24091,
            innodb_autoinc_lock_mode=760,
            innodb_rollback_on_timeout=True,
            innodb_online_alter_log_max_size=7913510562002656256,
            innodb_sort_buffer_size=6465427,
            innodb_numa_interleave=True,
            thread_pool_size=255,
            long_query_time=12666485),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_p78vn': 'EXAMPLE_VALUE_PAQM25SrGwqYcdkci1MC'},
        defined_tags={
            'EXAMPLE_KEY_4x9dS': {
                'EXAMPLE_KEY_z1SIt': 'EXAMPLE--Value'}}),
    opc_request_id="LKJBLQRPS7BEFYHKRN3S<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

# Get the data from response
print(create_configuration_response.data)

Was this article helpful?