LogAnalyticsClientCompositeOperations

class oci.log_analytics.LogAnalyticsClientCompositeOperations(client, **kwargs)

This class provides a wrapper around LogAnalyticsClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality

Methods:

__init__(client, **kwargs)

Creates a new LogAnalyticsClientCompositeOperations object

append_lookup_data_and_wait_for_state(...[, ...])

Calls append_lookup_data() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

assign_encryption_key_and_wait_for_state(...)

Calls assign_encryption_key() and waits for the StorageWorkRequest to enter the given state(s).

create_ingest_time_rule_and_wait_for_state(...)

Calls create_ingest_time_rule() and waits for the IngestTimeRule acted upon to enter the given state(s).

create_log_analytics_em_bridge_and_wait_for_state(...)

Calls create_log_analytics_em_bridge() and waits for the LogAnalyticsEmBridge acted upon to enter the given state(s).

create_log_analytics_entity_and_wait_for_state(...)

Calls create_log_analytics_entity() and waits for the LogAnalyticsEntity acted upon to enter the given state(s).

create_log_analytics_object_collection_rule_and_wait_for_state(...)

Calls create_log_analytics_object_collection_rule() and waits for the LogAnalyticsObjectCollectionRule acted upon to enter the given state(s).

create_scheduled_task_and_wait_for_state(...)

Calls create_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

delete_associations_and_wait_for_state(...)

Calls delete_associations() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

delete_lookup_and_wait_for_state(...[, ...])

Calls delete_lookup() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

disable_auto_association_and_wait_for_state(...)

Calls disable_auto_association() and waits for the WorkRequest to enter the given state(s).

disable_ingest_time_rule_and_wait_for_state(...)

Calls disable_ingest_time_rule() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

enable_auto_association_and_wait_for_state(...)

Calls enable_auto_association() and waits for the WorkRequest to enter the given state(s).

enable_ingest_time_rule_and_wait_for_state(...)

Calls enable_ingest_time_rule() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

offboard_namespace_and_wait_for_state(...[, ...])

Calls offboard_namespace() and waits for the WorkRequest to enter the given state(s).

onboard_namespace_and_wait_for_state(...[, ...])

Calls onboard_namespace() and waits for the WorkRequest to enter the given state(s).

pause_scheduled_task_and_wait_for_state(...)

Calls pause_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

purge_storage_data_and_wait_for_state(...[, ...])

Calls purge_storage_data() and waits for the StorageWorkRequest to enter the given state(s).

query_and_wait_for_state(namespace_name, ...)

Calls query() and waits for the QueryWorkRequest to enter the given state(s).

recall_archived_data_and_wait_for_state(...)

Calls recall_archived_data() and waits for the StorageWorkRequest to enter the given state(s).

release_recalled_data_and_wait_for_state(...)

Calls release_recalled_data() and waits for the StorageWorkRequest to enter the given state(s).

resume_scheduled_task_and_wait_for_state(...)

Calls resume_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

update_ingest_time_rule_and_wait_for_state(...)

Calls update_ingest_time_rule() and waits for the IngestTimeRule acted upon to enter the given state(s).

update_log_analytics_em_bridge_and_wait_for_state(...)

Calls update_log_analytics_em_bridge() and waits for the LogAnalyticsEmBridge acted upon to enter the given state(s).

update_log_analytics_entity_and_wait_for_state(...)

Calls update_log_analytics_entity() and waits for the LogAnalyticsEntity acted upon to enter the given state(s).

update_log_analytics_object_collection_rule_and_wait_for_state(...)

Calls update_log_analytics_object_collection_rule() and waits for the LogAnalyticsObjectCollectionRule acted upon to enter the given state(s).

update_lookup_data_and_wait_for_state(...[, ...])

Calls update_lookup_data() and waits for the WorkRequest to enter the given state(s).

update_scheduled_task_and_wait_for_state(...)

Calls update_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

upsert_associations_and_wait_for_state(...)

Calls upsert_associations() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

__init__(client, **kwargs)

Creates a new LogAnalyticsClientCompositeOperations object

Parameters

client (LogAnalyticsClient) – The service client which will be wrapped by this object

append_lookup_data_and_wait_for_state(namespace_name, lookup_name, append_lookup_file_body, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls append_lookup_data() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • lookup_name (str) – (required) The name of the lookup to operate on.

  • append_lookup_file_body (stream) – (required) The file to append.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to append_lookup_data()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

assign_encryption_key_and_wait_for_state(namespace_name, assign_encryption_key_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls assign_encryption_key() and waits for the StorageWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • assign_encryption_key_details (oci.log_analytics.models.AssignEncryptionKeyDetails) – (required) This is the input to assign customer encryption key.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to assign_encryption_key()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

create_ingest_time_rule_and_wait_for_state(namespace_name, create_ingest_time_rule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_ingest_time_rule() and waits for the IngestTimeRule acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • create_ingest_time_rule_details (oci.log_analytics.models.CreateIngestTimeRuleDetails) – (required) Details of the new ingest time rule.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_ingest_time_rule()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

create_log_analytics_em_bridge_and_wait_for_state(namespace_name, create_log_analytics_em_bridge_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_log_analytics_em_bridge() and waits for the LogAnalyticsEmBridge acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • create_log_analytics_em_bridge_details (oci.log_analytics.models.CreateLogAnalyticsEmBridgeDetails) – (required) Details for the enterprise manager bridge.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_log_analytics_em_bridge()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

create_log_analytics_entity_and_wait_for_state(namespace_name, create_log_analytics_entity_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_log_analytics_entity() and waits for the LogAnalyticsEntity acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • create_log_analytics_entity_details (oci.log_analytics.models.CreateLogAnalyticsEntityDetails) – (required) Details for the new log analytics entity.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_log_analytics_entity()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

create_log_analytics_object_collection_rule_and_wait_for_state(namespace_name, create_log_analytics_object_collection_rule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_log_analytics_object_collection_rule() and waits for the LogAnalyticsObjectCollectionRule acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • create_log_analytics_object_collection_rule_details (oci.log_analytics.models.CreateLogAnalyticsObjectCollectionRuleDetails) – (required) Details of the rule to be created.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_log_analytics_object_collection_rule()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

create_scheduled_task_and_wait_for_state(namespace_name, create_scheduled_task_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • create_scheduled_task_details (oci.log_analytics.models.CreateScheduledTaskDetails) – (required) Scheduled task to be created.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_scheduled_task()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

delete_associations_and_wait_for_state(namespace_name, delete_log_analytics_association_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_associations() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • delete_log_analytics_association_details (oci.log_analytics.models.DeleteLogAnalyticsAssociationDetails) – (required) details for association

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to delete_associations()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

delete_lookup_and_wait_for_state(namespace_name, lookup_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_lookup() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • lookup_name (str) – (required) The name of the lookup to operate on.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to delete_lookup()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

disable_auto_association_and_wait_for_state(namespace_name, source_name, disable_auto_association_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls disable_auto_association() and waits for the WorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • source_name (str) – (required) The source name.

  • disable_auto_association_details (oci.log_analytics.models.DisableAutoAssociationDetails) – (required) Details required to disable auto association for the log source.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to disable_auto_association()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

disable_ingest_time_rule_and_wait_for_state(namespace_name, ingest_time_rule_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls disable_ingest_time_rule() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • ingest_time_rule_id (str) – (required) Unique ocid of the ingest time rule. Ingest time rule ID can be obtained by running ‘oci log-analytics ingest-time-rule list –namespace-name <namespace> –compartment-id <compartment>’. The json output ‘id’ parameter value contains the rule ID.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to disable_ingest_time_rule()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

enable_auto_association_and_wait_for_state(namespace_name, source_name, enable_auto_association_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls enable_auto_association() and waits for the WorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • source_name (str) – (required) The source name.

  • enable_auto_association_details (oci.log_analytics.models.EnableAutoAssociationDetails) – (required) Details required to enable auto association for the log source.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to enable_auto_association()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

enable_ingest_time_rule_and_wait_for_state(namespace_name, ingest_time_rule_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls enable_ingest_time_rule() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • ingest_time_rule_id (str) – (required) Unique ocid of the ingest time rule. Ingest time rule ID can be obtained by running ‘oci log-analytics ingest-time-rule list –namespace-name <namespace> –compartment-id <compartment>’. The json output ‘id’ parameter value contains the rule ID.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to enable_ingest_time_rule()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

offboard_namespace_and_wait_for_state(namespace_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls offboard_namespace() and waits for the WorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to offboard_namespace()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

onboard_namespace_and_wait_for_state(namespace_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls onboard_namespace() and waits for the WorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to onboard_namespace()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

pause_scheduled_task_and_wait_for_state(namespace_name, scheduled_task_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls pause_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • scheduled_task_id (str) – (required) Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to pause_scheduled_task()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

purge_storage_data_and_wait_for_state(namespace_name, purge_storage_data_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls purge_storage_data() and waits for the StorageWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • purge_storage_data_details (oci.log_analytics.models.PurgeStorageDataDetails) – (required) This is the input to purge old data.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to purge_storage_data()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

query_and_wait_for_state(namespace_name, query_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls query() and waits for the QueryWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • query_details (oci.log_analytics.models.QueryDetails) – (required) Query to be executed.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to query()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

recall_archived_data_and_wait_for_state(namespace_name, recall_archived_data_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls recall_archived_data() and waits for the StorageWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • recall_archived_data_details (oci.log_analytics.models.RecallArchivedDataDetails) – (required) This is the input to recall archived data.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to recall_archived_data()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

release_recalled_data_and_wait_for_state(namespace_name, release_recalled_data_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls release_recalled_data() and waits for the StorageWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • release_recalled_data_details (oci.log_analytics.models.ReleaseRecalledDataDetails) – (required) This is the input to release recalled data

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to release_recalled_data()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

resume_scheduled_task_and_wait_for_state(namespace_name, scheduled_task_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls resume_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • scheduled_task_id (str) – (required) Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to resume_scheduled_task()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

update_ingest_time_rule_and_wait_for_state(namespace_name, ingest_time_rule_id, update_ingest_time_rule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_ingest_time_rule() and waits for the IngestTimeRule acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • ingest_time_rule_id (str) – (required) Unique ocid of the ingest time rule. Ingest time rule ID can be obtained by running ‘oci log-analytics ingest-time-rule list –namespace-name <namespace> –compartment-id <compartment>’. The json output ‘id’ parameter value contains the rule ID.

  • update_ingest_time_rule_details (oci.log_analytics.models.IngestTimeRule) – (required) The information to be updated.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_ingest_time_rule()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

update_log_analytics_em_bridge_and_wait_for_state(namespace_name, log_analytics_em_bridge_id, update_log_analytics_em_bridge_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_log_analytics_em_bridge() and waits for the LogAnalyticsEmBridge acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • log_analytics_em_bridge_id (str) – (required) The log analytics enterprise manager bridge OCID. Bridge ID can be obtained by running ‘oci log-analytics em-bridge list –namespace-name <namespace> –compartment-id <compartment>’. The json output ‘id’ parameter value contains the bridge ID.

  • update_log_analytics_em_bridge_details (oci.log_analytics.models.UpdateLogAnalyticsEmBridgeDetails) – (required) Log analytics enterprise manager information to be updated.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_log_analytics_em_bridge()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

update_log_analytics_entity_and_wait_for_state(namespace_name, log_analytics_entity_id, update_log_analytics_entity_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_log_analytics_entity() and waits for the LogAnalyticsEntity acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • log_analytics_entity_id (str) – (required) The log analytics entity ID [OCID]. Entity ID can be obtained by running ‘oci log-analytics entity list –namespace-name <namespace> –compartment-id <compartment>’. The json output ‘id’ parameter value contains the entity ID.

  • update_log_analytics_entity_details (oci.log_analytics.models.UpdateLogAnalyticsEntityDetails) – (required) Log analytics entity information to be updated.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_log_analytics_entity()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

update_log_analytics_object_collection_rule_and_wait_for_state(namespace_name, log_analytics_object_collection_rule_id, update_log_analytics_object_collection_rule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_log_analytics_object_collection_rule() and waits for the LogAnalyticsObjectCollectionRule acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • log_analytics_object_collection_rule_id (str) –

    (required) The Log Analytics Object Collection Rule OCID.

  • update_log_analytics_object_collection_rule_details (oci.log_analytics.models.UpdateLogAnalyticsObjectCollectionRuleDetails) – (required) The rule config to be updated.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_log_analytics_object_collection_rule()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

update_lookup_data_and_wait_for_state(namespace_name, lookup_name, update_lookup_file_body, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_lookup_data() and waits for the WorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • lookup_name (str) – (required) The name of the lookup to operate on.

  • update_lookup_file_body (stream) – (required) The file to use for the lookup update.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_lookup_data()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

update_scheduled_task_and_wait_for_state(namespace_name, scheduled_task_id, update_scheduled_task_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_scheduled_task() and waits for the ScheduledTask acted upon to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • scheduled_task_id (str) – (required) Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.

  • update_scheduled_task_details (oci.log_analytics.models.UpdateScheduledTaskDetails) – (required) Update details. Schedules may be updated only for taskType SAVED_SEARCH and PURGE.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_scheduled_task()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait

upsert_associations_and_wait_for_state(namespace_name, upsert_log_analytics_association_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls upsert_associations() and waits for the LogAnalyticsConfigWorkRequest to enter the given state(s).

Parameters
  • namespace_name (str) – (required) The Log Analytics namespace used for the request. The namespace can be obtained by running ‘oci os ns get’

  • upsert_log_analytics_association_details (oci.log_analytics.models.UpsertLogAnalyticsAssociationDetails) – (required) list of association details

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state

  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to upsert_associations()

  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait