OS Management Event Functions
Package: DBMS_CLOUD_OCI_OM_EVENT
DELETE_EVENT_CONTENT Function
Delete an event content ZIP archive from the service
Syntax
FUNCTION delete_event_content (
managed_instance_id varchar2,
event_id varchar2,
compartment_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
if_match varchar2 DEFAULT NULL,
opc_retry_token varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_delete_event_content_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) Unique Event identifier (OCID) |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) The client request ID for tracing. |
|
(optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
|
(optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
GET_EVENT Function
Gets an Event by identifier
Syntax
FUNCTION get_event (
managed_instance_id varchar2,
event_id varchar2,
compartment_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_get_event_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) Unique Event identifier (OCID) |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
GET_EVENT_CONTENT Function
Get additional data about a event as a ZIP archive. The archive content depends on the event eventType.
Syntax
FUNCTION get_event_content (
managed_instance_id varchar2,
event_id varchar2,
compartment_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_get_event_content_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) Unique Event identifier (OCID) |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
GET_EVENT_REPORT Function
Get summary information about events on this instance.
Syntax
FUNCTION get_event_report (
managed_instance_id varchar2,
compartment_id varchar2,
latest_timestamp_less_than timestamp with time zone DEFAULT NULL,
latest_timestamp_greater_than_or_equal_to timestamp with time zone DEFAULT NULL,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_get_event_report_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z |
|
(optional) filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_EVENTS Function
Returns a list of Events.
Syntax
FUNCTION list_events (
managed_instance_id varchar2,
compartment_id varchar2,
event_id varchar2 DEFAULT NULL,
limit number DEFAULT NULL,
page varchar2 DEFAULT NULL,
sort_order varchar2 DEFAULT NULL,
sort_by varchar2 DEFAULT NULL,
opc_request_id varchar2 DEFAULT NULL,
event_type varchar2 DEFAULT NULL,
latest_timestamp_less_than timestamp with time zone DEFAULT NULL,
latest_timestamp_greater_than_or_equal_to timestamp with time zone DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_list_events_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) Unique event identifier (OCID) |
|
(optional) The maximum number of items to return. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The sort order to use, either 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. Allowed values are: 'TIMECREATED', 'DISPLAYNAME' |
|
(optional) The client request ID for tracing. |
|
(optional) A filter to return only event of given type. Allowed values are: 'KERNEL_OOPS', 'KERNEL_CRASH', 'CRASH', 'EXPLOIT_ATTEMPT', 'COMPLIANCE', 'TUNING_SUGGESTION', 'TUNING_APPLIED', 'SECURITY', 'ERROR', 'WARNING' |
|
(optional) filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z |
|
(optional) filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_RELATED_EVENTS Function
Returns a list of related events. For now pagination is not implemented.
Syntax
FUNCTION list_related_events (
event_fingerprint varchar2,
compartment_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
limit number DEFAULT NULL,
page varchar2 DEFAULT NULL,
sort_order varchar2 DEFAULT NULL,
sort_by varchar2 DEFAULT NULL,
latest_timestamp_less_than timestamp with time zone DEFAULT NULL,
latest_timestamp_greater_than_or_equal_to timestamp with time zone DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_list_related_events_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Event fingerprint identifier |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) The client request ID for tracing. |
|
(optional) The maximum number of items to return. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The sort order to use, either 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order may be provided. Default order for id is descending. Allowed values are: 'instanceId', 'id', 'eventFingerprint' |
|
(optional) filter event occurrence. Selecting only those last occurred before given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z |
|
(optional) filter event occurrence. Selecting only those last occurred on or after given date in ISO 8601 format Example: 2017-07-14T02:40:00.000Z |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
UPDATE_EVENT Function
Updates an existing event associated to a managed instance
Syntax
FUNCTION update_event (
managed_instance_id varchar2,
event_id varchar2,
compartment_id varchar2,
update_event_details dbms_cloud_oci_os_management_update_event_details_t,
opc_request_id varchar2 DEFAULT NULL,
if_match varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_update_event_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) Unique Event identifier (OCID) |
|
(required) The ID of the compartment in which to list resources. |
|
(required) Details about the event to update |
|
(optional) The client request ID for tracing. |
|
(optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
UPLOAD_EVENT_CONTENT Function
Upload the event content as a ZIP archive from the managed instance to the service
Syntax
FUNCTION upload_event_content (
managed_instance_id varchar2,
event_id varchar2,
compartment_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
if_match varchar2 DEFAULT NULL,
opc_retry_token varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_om_event_upload_event_content_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Instance Oracle Cloud identifier (ocid) |
|
(required) Unique Event identifier (OCID) |
|
(required) The ID of the compartment in which to list resources. |
|
(optional) The client request ID for tracing. |
|
(optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
|
(optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://osms.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |