oracle.oci.oci_logging_unified_agent_configuration_actions – Perform actions on an UnifiedAgentConfiguration resource in Oracle Cloud Infrastructure¶
Note
This plugin is part of the oracle.oci collection (version 5.2.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install oracle.oci
.
To use it in a playbook, specify: oracle.oci.oci_logging_unified_agent_configuration_actions
.
New in version 2.9.0: of oracle.oci
Synopsis¶
Perform actions on an UnifiedAgentConfiguration resource in Oracle Cloud Infrastructure
For action=change_compartment, moves the unified agent configuration into a different compartment within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. For information about moving resources between compartments, see Moving Resources Between Compartments.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 3.6
Python SDK for Oracle Cloud Infrastructure https://oracle-cloud-infrastructure-python-sdk.readthedocs.io
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
action
string
/ required
|
|
The action to perform on the UnifiedAgentConfiguration.
|
api_user
string
|
The OCID of the user, on whose behalf, OCI APIs are invoked. If not set, then the value of the OCI_USER_ID environment variable, if any, is used. This option is required if the user is not specified through a configuration file (See
config_file_location ). To get the user's OCID, please refer https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm. |
|
api_user_fingerprint
string
|
Fingerprint for the key pair being used. If not set, then the value of the OCI_USER_FINGERPRINT environment variable, if any, is used. This option is required if the key fingerprint is not specified through a configuration file (See
config_file_location ). To get the key pair's fingerprint value please refer https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm. |
|
api_user_key_file
string
|
Full path and filename of the private key (in PEM format). If not set, then the value of the OCI_USER_KEY_FILE variable, if any, is used. This option is required if the private key is not specified through a configuration file (See
config_file_location ). If the key is encrypted with a pass-phrase, the api_user_key_pass_phrase option must also be provided. |
|
api_user_key_pass_phrase
string
|
Passphrase used by the key referenced in
api_user_key_file , if it is encrypted. If not set, then the value of the OCI_USER_KEY_PASS_PHRASE variable, if any, is used. This option is required if the key passphrase is not specified through a configuration file (See config_file_location ). |
|
auth_purpose
string
|
|
The auth purpose which can be used in conjunction with 'auth_type=instance_principal'. The default auth_purpose for instance_principal is None.
|
auth_type
string
|
|
The type of authentication to use for making API requests. By default
auth_type="api_key" based authentication is performed and the API key (see api_user_key_file) in your config file will be used. If this 'auth_type' module option is not specified, the value of the OCI_ANSIBLE_AUTH_TYPE, if any, is used. Use auth_type="instance_principal" to use instance principal based authentication when running ansible playbooks within an OCI compute instance. |
cert_bundle
string
|
The full path to a CA certificate bundle to be used for SSL verification. This will override the default CA certificate bundle. If not set, then the value of the OCI_ANSIBLE_CERT_BUNDLE variable, if any, is used.
|
|
compartment_id
string
|
The OCID the compartment into which the resource should be moved.
|
|
config_file_location
string
|
Path to configuration file. If not set then the value of the OCI_CONFIG_FILE environment variable, if any, is used. Otherwise, defaults to ~/.oci/config.
|
|
config_profile_name
string
|
The profile to load from the config file referenced by
config_file_location . If not set, then the value of the OCI_CONFIG_PROFILE environment variable, if any, is used. Otherwise, defaults to the "DEFAULT" profile in config_file_location . |
|
realm_specific_endpoint_template_enabled
boolean
|
|
Enable/Disable realm specific endpoint template for service client. By Default, realm specific endpoint template is disabled. If not set, then the value of the OCI_REALM_SPECIFIC_SERVICE_ENDPOINT_TEMPLATE_ENABLED variable, if any, is used.
|
region
string
|
The Oracle Cloud Infrastructure region to use for all OCI API requests. If not set, then the value of the OCI_REGION variable, if any, is used. This option is required if the region is not specified through a configuration file (See
config_file_location ). Please refer to https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm for more information on OCI regions. |
|
tenancy
string
|
OCID of your tenancy. If not set, then the value of the OCI_TENANCY variable, if any, is used. This option is required if the tenancy OCID is not specified through a configuration file (See
config_file_location ). To get the tenancy OCID, please refer https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm |
|
unified_agent_configuration_id
string
/ required
|
The OCID of the Unified Agent configuration.
aliases: id |
|
wait
boolean
|
|
Whether to wait for create or delete operation to complete.
|
wait_timeout
integer
|
Time, in seconds, to wait when wait=yes. Defaults to 1200 for most of the services but some services might have a longer wait timeout.
|
Notes¶
Note
For OCI python sdk configuration, please refer to https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/configuration.html
Examples¶
- name: Perform action change_compartment on unified_agent_configuration
oci_logging_unified_agent_configuration_actions:
# required
unified_agent_configuration_id: "ocid1.unifiedagentconfiguration.oc1..xxxxxxEXAMPLExxxxxx"
action: change_compartment
# optional
compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description | ||||||
---|---|---|---|---|---|---|---|---|
unified_agent_configuration
complex
|
on success |
Details of the UnifiedAgentConfiguration resource acted upon by the current operation
Sample:
{'compartment_id': 'ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx', 'configuration_state': 'VALID', 'defined_tags': {'Operations': {'CostCenter': 'US'}}, 'description': 'description_example', 'display_name': 'display_name_example', 'freeform_tags': {'Department': 'Finance'}, 'group_association': {'group_list': []}, 'id': 'ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx', 'is_enabled': True, 'lifecycle_state': 'CREATING', 'service_configuration': {'configuration_type': 'LOGGING', 'destination': {'log_object_id': 'ocid1.logobject.oc1..xxxxxxEXAMPLExxxxxx', 'operational_metrics_configuration': {'destination': {'compartment_id': 'ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx'}, 'source': {'metrics': [], 'record_input': {'namespace': 'namespace_example', 'resource_group': 'resource_group_example'}, 'type': 'UMA_METRICS'}}}, 'sources': [{'channels': [], 'name': 'name_example', 'parser': {'delimiter': 'delimiter_example', 'expression': 'expression_example', 'field_time_key': 'field_time_key_example', 'format': [], 'format_firstline': 'format_firstline_example', 'grok_failure_key': 'grok_failure_key_example', 'grok_name_key': 'grok_name_key_example', 'is_estimate_current_event': True, 'is_keep_time_key': True, 'is_merge_cri_fields': True, 'is_null_empty_string': True, 'is_support_colonless_ident': True, 'is_with_priority': True, 'keys': [], 'message_format': 'RFC3164', 'message_key': 'message_key_example', 'multi_line_start_regexp': 'multi_line_start_regexp_example', 'nested_parser': {'field_time_key': 'field_time_key_example', 'is_estimate_current_event': True, 'is_keep_time_key': True, 'is_null_empty_string': True, 'null_value_pattern': 'null_value_pattern_example', 'parser_type': 'AUDITD', 'time_format': 'time_format_example', 'time_type': 'FLOAT', 'timeout_in_milliseconds': 56, 'types': {}}, 'null_value_pattern': 'null_value_pattern_example', 'parser_type': 'AUDITD', 'patterns': [{'field_time_format': 'field_time_format_example', 'field_time_key': 'field_time_key_example', 'field_time_zone': 'field_time_zone_example', 'name': 'name_example', 'pattern': 'pattern_example'}], 'rfc5424_time_format': 'rfc5424_time_format_example', 'syslog_parser_type': 'STRING', 'time_format': 'time_format_example', 'time_type': 'FLOAT', 'timeout_in_milliseconds': 56, 'types': {}}, 'paths': [], 'source_type': 'LOG_TAIL'}]}, 'time_created': '2013-10-20T19:20:30+01:00', 'time_last_modified': '2013-10-20T19:20:30+01:00'}
|
||||||
compartment_id
string
|
on success |
The OCID of the compartment that the resource belongs to.
Sample:
ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
|
||||||
configuration_state
string
|
on success |
State of unified agent service configuration.
Sample:
VALID
|
||||||
defined_tags
dictionary
|
on success |
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: `{"Operations": {"CostCenter": "42"}}`
Sample:
{'Operations': {'CostCenter': 'US'}}
|
||||||
description
string
|
on success |
Description for this resource.
Sample:
description_example
|
||||||
display_name
string
|
on success |
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
Sample:
display_name_example
|
||||||
freeform_tags
dictionary
|
on success |
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: `{"Department": "Finance"}`
Sample:
{'Department': 'Finance'}
|
||||||
group_association
complex
|
on success |
|
||||||
group_list
list
/ elements=string
|
on success |
list of group/dynamic group ids associated with this configuration.
|
||||||
id
string
|
on success |
The OCID of the resource.
Sample:
ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
|
||||||
is_enabled
boolean
|
on success |
Whether or not this resource is currently enabled.
Sample:
True
|
||||||
lifecycle_state
string
|
on success |
The pipeline state.
Sample:
CREATING
|
||||||
service_configuration
complex
|
on success |
|
||||||
configuration_type
string
|
on success |
Type of Unified Agent service configuration.
Sample:
LOGGING
|
||||||
destination
complex
|
on success |
|
||||||
log_object_id
string
|
on success |
The OCID of the resource.
Sample:
ocid1.logobject.oc1..xxxxxxEXAMPLExxxxxx
|
||||||
operational_metrics_configuration
complex
|
on success |
|
||||||
destination
complex
|
on success |
|
||||||
compartment_id
string
|
on success |
The OCID of the compartment that the resource belongs to.
Sample:
ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
|
||||||
source
complex
|
on success |
|
||||||
metrics
list
/ elements=string
|
on success |
List of unified monitoring agent operational metrics.
|
||||||
record_input
complex
|
on success |
|
||||||
namespace
string
|
on success |
Namespace to emit the operational metrics.
Sample:
namespace_example
|
||||||
resource_group
string
|
on success |
Resource group to emit the operational metrics.
Sample:
resource_group_example
|
||||||
type
string
|
on success |
Type of the unified monitoring agent operational metrics source object.
Sample:
UMA_METRICS
|
||||||
sources
complex
|
on success |
Logging source object.
|
||||||
channels
list
/ elements=string
|
on success |
Windows event log channels.
|
||||||
name
string
|
on success |
Unique name for the source.
Sample:
name_example
|
||||||
parser
complex
|
on success |
|
||||||
delimiter
string
|
on success |
CSV delimiter.
Sample:
delimiter_example
|
||||||
expression
string
|
on success |
Regex pattern.
Sample:
expression_example
|
||||||
field_time_key
string
|
on success |
Specifies the time field for the event time. If the event doesn't have this field, the current time is used.
Sample:
field_time_key_example
|
||||||
format
list
/ elements=string
|
on success |
Mutiline pattern format.
|
||||||
format_firstline
string
|
on success |
First line pattern format.
Sample:
format_firstline_example
|
||||||
grok_failure_key
string
|
on success |
Grok failure key.
Sample:
grok_failure_key_example
|
||||||
grok_name_key
string
|
on success |
Grok name key.
Sample:
grok_name_key_example
|
||||||
is_estimate_current_event
boolean
|
on success |
If true, use Fluent::EventTime.now(current time) as a timestamp when the time_key is specified.
Sample:
True
|
||||||
is_keep_time_key
boolean
|
on success |
If true, keep the time field in the record.
Sample:
True
|
||||||
is_merge_cri_fields
boolean
|
on success |
If you don't need stream or logtag fields, set this to false.
Sample:
True
|
||||||
is_null_empty_string
boolean
|
on success |
If true, an empty string field is replaced with a null value.
Sample:
True
|
||||||
is_support_colonless_ident
boolean
|
on success |
Specifies whether or not to support colonless ident. Corresponds to the Fluentd support_colonless_ident parameter.
Sample:
True
|
||||||
is_with_priority
boolean
|
on success |
Specifies with priority or not. Corresponds to the Fluentd with_priority parameter.
Sample:
True
|
||||||
keys
list
/ elements=string
|
on success |
CSV keys.
|
||||||
message_format
string
|
on success |
Syslog message format.
Sample:
RFC3164
|
||||||
message_key
string
|
on success |
Specifies the field name to contain logs.
Sample:
message_key_example
|
||||||
multi_line_start_regexp
string
|
on success |
Multiline start regexp pattern.
Sample:
multi_line_start_regexp_example
|
||||||
nested_parser
complex
|
on success |
Optional nested JSON Parser for CRI. Supported fields are fieldTimeKey, timeFormat, and isKeepTimeKey.
|
||||||
field_time_key
string
|
on success |
Specifies the time field for the event time. If the event doesn't have this field, the current time is used.
Sample:
field_time_key_example
|
||||||
is_estimate_current_event
boolean
|
on success |
If true, use Fluent::EventTime.now(current time) as a timestamp when the time_key is specified.
Sample:
True
|
||||||
is_keep_time_key
boolean
|
on success |
If true, keep the time field in the record.
Sample:
True
|
||||||
is_null_empty_string
boolean
|
on success |
If true, an empty string field is replaced with a null value.
Sample:
True
|
||||||
null_value_pattern
string
|
on success |
Specify the null value pattern.
Sample:
null_value_pattern_example
|
||||||
parser_type
string
|
on success |
Type of fluent parser.
Sample:
AUDITD
|
||||||
time_format
string
|
on success |
Process time value using the specified format.
Sample:
time_format_example
|
||||||
time_type
string
|
on success |
JSON parser time type.
Sample:
FLOAT
|
||||||
timeout_in_milliseconds
integer
|
on success |
Specify the timeout for parse processing. This is mainly for detecting an incorrect regexp pattern.
Sample:
56
|
||||||
types
dictionary
|
on success |
Specify types for converting a field into another type. For example, With this configuration: <parse> @type csv keys time,host,req_id,user time_key time </parse>
This incoming event: "2013/02/28 12:00:00,192.168.0.1,111,-"
is parsed as: 1362020400 (2013/02/28/ 12:00:00)
" record:
{
\"host\" : \"192.168.0.1\",
\"req_id\" : \"111\",
\"user\" : \"-\"
}"
|
||||||
null_value_pattern
string
|
on success |
Specify the null value pattern.
Sample:
null_value_pattern_example
|
||||||
parser_type
string
|
on success |
Type of fluent parser.
Sample:
AUDITD
|
||||||
patterns
complex
|
on success |
Grok pattern object.
|
||||||
field_time_format
string
|
on success |
Process value using the specified format. This is available only when time_type is a string.
Sample:
field_time_format_example
|
||||||
field_time_key
string
|
on success |
Specify the time field for the event time. If the event doesn't have this field, the current time is used.
Sample:
field_time_key_example
|
||||||
field_time_zone
string
|
on success |
Use the specified time zone. The time value can be parsed or formatted in the specified time zone.
Sample:
field_time_zone_example
|
||||||
name
string
|
on success |
The name key to tag this Grok pattern.
Sample:
name_example
|
||||||
pattern
string
|
on success |
The Grok pattern.
Sample:
pattern_example
|
||||||
rfc5424_time_format
string
|
on success |
RFC 5424 time format.
Sample:
rfc5424_time_format_example
|
||||||
syslog_parser_type
string
|
on success |
Syslog parser type.
Sample:
STRING
|
||||||
time_format
string
|
on success |
Process time value using the specified format.
Sample:
time_format_example
|
||||||
time_type
string
|
on success |
JSON parser time type.
Sample:
FLOAT
|
||||||
timeout_in_milliseconds
integer
|
on success |
Specify the timeout for parse processing. This is mainly for detecting an incorrect regexp pattern.
Sample:
56
|
||||||
types
dictionary
|
on success |
Specify types for converting a field into another type. For example, With this configuration: <parse> @type csv keys time,host,req_id,user time_key time </parse>
This incoming event: "2013/02/28 12:00:00,192.168.0.1,111,-"
is parsed as: 1362020400 (2013/02/28/ 12:00:00)
" record:
{
\"host\" : \"192.168.0.1\",
\"req_id\" : \"111\",
\"user\" : \"-\"
}"
|
||||||
paths
list
/ elements=string
|
on success |
Absolute paths for log source files. Wildcards can be used.
|
||||||
source_type
string
|
on success |
Unified schema logging source type.
Sample:
LOG_TAIL
|
||||||
time_created
string
|
on success |
Time the resource was created.
Sample:
2013-10-20T19:20:30+01:00
|
||||||
time_last_modified
string
|
on success |
Time the resource was last modified.
Sample:
2013-10-20T19:20:30+01:00
|
Authors¶
Oracle (@oracle)