# 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
jms_client = oci.jms.JavaManagementServiceClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
update_fleet_advanced_feature_configuration_response = jms_client.update_fleet_advanced_feature_configuration(
fleet_id="ocid1.test.oc1..<unique_ID>EXAMPLE-fleetId-Value",
update_fleet_advanced_feature_configuration_details=oci.jms.models.UpdateFleetAdvancedFeatureConfigurationDetails(
analytic_namespace="EXAMPLE-analyticNamespace-Value",
analytic_bucket_name="EXAMPLE-analyticBucketName-Value",
lcm=oci.jms.models.Lcm(
is_enabled=True,
post_installation_actions=oci.jms.models.PostInstallationActionSettings(
disabled_tls_versions=[
"TLS_1_0",
"TLS_1_1"],
should_replace_certificates_operating_system=False,
minimum_key_size_settings=oci.jms.models.MinimumKeySizeSettings(
tls=[
oci.jms.models.KeySizeAlgorithm(
name="DSA",
key_size=456)],
jar=[
oci.jms.models.KeySizeAlgorithm(
name="EC",
key_size=913)],
certpath=[
oci.jms.models.KeySizeAlgorithm(
name="EC",
key_size=176)]),
add_logging_handler=True,
global_logging_level="ALL",
proxies=oci.jms.models.Proxies(
use_system_proxies=False,
http_proxy_host="EXAMPLE-httpProxyHost-Value",
http_proxy_port=61616,
https_proxy_host="EXAMPLE-httpsProxyHost-Value",
https_proxy_port=35505,
ftp_proxy_host="EXAMPLE-ftpProxyHost-Value",
ftp_proxy_port=18423,
socks_proxy_host="EXAMPLE-socksProxyHost-Value",
socks_proxy_port=42253))),
crypto_event_analysis=oci.jms.models.CryptoEventAnalysis(
is_enabled=False,
summarized_events_log=oci.jms.models.SummarizedEventsLog(
log_group_id="ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value",
log_id="ocid1.test.oc1..<unique_ID>EXAMPLE-logId-Value")),
advanced_usage_tracking=oci.jms.models.AdvancedUsageTracking(
is_enabled=True),
jfr_recording=oci.jms.models.JfrRecording(
is_enabled=False),
performance_tuning_analysis=oci.jms.models.PerformanceTuningAnalysis(
is_enabled=False),
java_migration_analysis=oci.jms.models.JavaMigrationAnalysis(
is_enabled=False)),
opc_retry_token="EXAMPLE-opcRetryToken-Value",
if_match="EXAMPLE-ifMatch-Value",
opc_request_id="BKYHSHOPCN7CN8SG5G8Q<unique_ID>")
# Get the data from response
print(update_fleet_advanced_feature_configuration_response.data)