oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.LogAnalytics.NamespaceScheduledTask

This resource provides the Namespace Scheduled Task resource in Oracle Cloud Infrastructure Log Analytics service.

Schedule a task as specified and return task info.

Example Usage

Coming soon!

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.NamespaceScheduledTask;
import com.pulumi.oci.LogAnalytics.NamespaceScheduledTaskArgs;
import com.pulumi.oci.LogAnalytics.inputs.NamespaceScheduledTaskActionArgs;
import com.pulumi.oci.LogAnalytics.inputs.NamespaceScheduledTaskSchedulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testNamespaceScheduledTask = new NamespaceScheduledTask("testNamespaceScheduledTask", NamespaceScheduledTaskArgs.builder()        
            .compartmentId(var_.compartment_id())
            .kind(var_.namespace_scheduled_task_kind())
            .namespace(var_.namespace_scheduled_task_namespace())
            .action(NamespaceScheduledTaskActionArgs.builder()
                .type(var_.namespace_scheduled_task_action_type())
                .compartmentIdInSubtree(var_.namespace_scheduled_task_action_compartment_id_in_subtree())
                .dataType(var_.namespace_scheduled_task_action_data_type())
                .purgeCompartmentId(oci_identity_compartment.test_compartment().id())
                .purgeDuration(var_.namespace_scheduled_task_action_purge_duration())
                .queryString(var_.namespace_scheduled_task_action_query_string())
                .savedSearchId(oci_log_analytics_saved_search.test_saved_search().id())
                .build())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .displayName(var_.namespace_scheduled_task_display_name())
            .freeformTags(Map.of("bar-key", "value"))
            .savedSearchId(oci_log_analytics_saved_search.test_saved_search().id())
            .schedules(NamespaceScheduledTaskSchedulesArgs.builder()
                .type(var_.namespace_scheduled_task_schedules_type())
                .expression(var_.namespace_scheduled_task_schedules_expression())
                .misfirePolicy(var_.namespace_scheduled_task_schedules_misfire_policy())
                .recurringInterval(var_.namespace_scheduled_task_schedules_recurring_interval())
                .repeatCount(var_.namespace_scheduled_task_schedules_repeat_count())
                .timeZone(var_.namespace_scheduled_task_schedules_time_zone())
                .build())
            .taskType(var_.namespace_scheduled_task_task_type())
            .build());

    }
}

Coming soon!

Coming soon!

resources:
  testNamespaceScheduledTask:
    type: oci:LogAnalytics:NamespaceScheduledTask
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      kind: ${var.namespace_scheduled_task_kind}
      namespace: ${var.namespace_scheduled_task_namespace}
      action:
        type: ${var.namespace_scheduled_task_action_type}
        compartmentIdInSubtree: ${var.namespace_scheduled_task_action_compartment_id_in_subtree}
        dataType: ${var.namespace_scheduled_task_action_data_type}
        purgeCompartmentId: ${oci_identity_compartment.test_compartment.id}
        purgeDuration: ${var.namespace_scheduled_task_action_purge_duration}
        queryString: ${var.namespace_scheduled_task_action_query_string}
        savedSearchId: ${oci_log_analytics_saved_search.test_saved_search.id}
      definedTags:
        foo-namespace.bar-key: value
      displayName: ${var.namespace_scheduled_task_display_name}
      freeformTags:
        bar-key: value
      savedSearchId: ${oci_log_analytics_saved_search.test_saved_search.id}
      schedules:
        type: ${var.namespace_scheduled_task_schedules_type}
        expression: ${var.namespace_scheduled_task_schedules_expression}
        misfirePolicy: ${var.namespace_scheduled_task_schedules_misfire_policy}
        recurringInterval: ${var.namespace_scheduled_task_schedules_recurring_interval}
        repeatCount: ${var.namespace_scheduled_task_schedules_repeat_count}
        timeZone: ${var.namespace_scheduled_task_schedules_time_zone}
      taskType: ${var.namespace_scheduled_task_task_type}

Create NamespaceScheduledTask Resource

new NamespaceScheduledTask(name: string, args: NamespaceScheduledTaskArgs, opts?: CustomResourceOptions);
@overload
def NamespaceScheduledTask(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           action: Optional[_loganalytics.NamespaceScheduledTaskActionArgs] = None,
                           compartment_id: Optional[str] = None,
                           defined_tags: Optional[Mapping[str, Any]] = None,
                           display_name: Optional[str] = None,
                           freeform_tags: Optional[Mapping[str, Any]] = None,
                           kind: Optional[str] = None,
                           namespace: Optional[str] = None,
                           saved_search_id: Optional[str] = None,
                           schedules: Optional[_loganalytics.NamespaceScheduledTaskSchedulesArgs] = None,
                           task_type: Optional[str] = None)
@overload
def NamespaceScheduledTask(resource_name: str,
                           args: NamespaceScheduledTaskArgs,
                           opts: Optional[ResourceOptions] = None)
func NewNamespaceScheduledTask(ctx *Context, name string, args NamespaceScheduledTaskArgs, opts ...ResourceOption) (*NamespaceScheduledTask, error)
public NamespaceScheduledTask(string name, NamespaceScheduledTaskArgs args, CustomResourceOptions? opts = null)
public NamespaceScheduledTask(String name, NamespaceScheduledTaskArgs args)
public NamespaceScheduledTask(String name, NamespaceScheduledTaskArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:NamespaceScheduledTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NamespaceScheduledTaskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args NamespaceScheduledTaskArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NamespaceScheduledTaskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NamespaceScheduledTaskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NamespaceScheduledTaskArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NamespaceScheduledTask Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The NamespaceScheduledTask resource accepts the following input properties:

Action NamespaceScheduledTaskActionArgs

Action for scheduled task.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Kind string

Discriminator.

Namespace string

The Logging Analytics namespace used for the request.

Schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

TaskType string

Task type.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

SavedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

Action NamespaceScheduledTaskActionArgs

Action for scheduled task.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Kind string

Discriminator.

Namespace string

The Logging Analytics namespace used for the request.

Schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

TaskType string

Task type.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

SavedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

action NamespaceScheduledTaskActionArgs

Action for scheduled task.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

kind String

Discriminator.

namespace String

The Logging Analytics namespace used for the request.

schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

taskType String

Task type.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

savedSearchId String

The ManagementSavedSearch id [OCID] to be accelerated.

action NamespaceScheduledTaskActionArgs

Action for scheduled task.

compartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

kind string

Discriminator.

namespace string

The Logging Analytics namespace used for the request.

schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

taskType string

Task type.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

savedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

action NamespaceScheduledTaskActionArgs

Action for scheduled task.

compartment_id str

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

kind str

Discriminator.

namespace str

The Logging Analytics namespace used for the request.

schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

task_type str

Task type.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

saved_search_id str

The ManagementSavedSearch id [OCID] to be accelerated.

action Property Map

Action for scheduled task.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

kind String

Discriminator.

namespace String

The Logging Analytics namespace used for the request.

schedules Property Map

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

taskType String

Task type.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

savedSearchId String

The ManagementSavedSearch id [OCID] to be accelerated.

Outputs

All input properties are implicitly available as output properties. Additionally, the NamespaceScheduledTask resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

NumOccurrences string

Number of execution occurrences.

ScheduledTaskId string
State string

The current state of the scheduled task.

TaskStatus string

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

TimeCreated string

The date and time the scheduled task was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the scheduled task was last updated, in the format defined by RFC3339.

WorkRequestId string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

Id string

The provider-assigned unique ID for this managed resource.

NumOccurrences string

Number of execution occurrences.

ScheduledTaskId string
State string

The current state of the scheduled task.

TaskStatus string

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

TimeCreated string

The date and time the scheduled task was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the scheduled task was last updated, in the format defined by RFC3339.

WorkRequestId string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

id String

The provider-assigned unique ID for this managed resource.

numOccurrences String

Number of execution occurrences.

scheduledTaskId String
state String

The current state of the scheduled task.

taskStatus String

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

timeCreated String

The date and time the scheduled task was created, in the format defined by RFC3339.

timeUpdated String

The date and time the scheduled task was last updated, in the format defined by RFC3339.

workRequestId String

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

id string

The provider-assigned unique ID for this managed resource.

numOccurrences string

Number of execution occurrences.

scheduledTaskId string
state string

The current state of the scheduled task.

taskStatus string

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

timeCreated string

The date and time the scheduled task was created, in the format defined by RFC3339.

timeUpdated string

The date and time the scheduled task was last updated, in the format defined by RFC3339.

workRequestId string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

id str

The provider-assigned unique ID for this managed resource.

num_occurrences str

Number of execution occurrences.

scheduled_task_id str
state str

The current state of the scheduled task.

task_status str

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

time_created str

The date and time the scheduled task was created, in the format defined by RFC3339.

time_updated str

The date and time the scheduled task was last updated, in the format defined by RFC3339.

work_request_id str

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

id String

The provider-assigned unique ID for this managed resource.

numOccurrences String

Number of execution occurrences.

scheduledTaskId String
state String

The current state of the scheduled task.

taskStatus String

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

timeCreated String

The date and time the scheduled task was created, in the format defined by RFC3339.

timeUpdated String

The date and time the scheduled task was last updated, in the format defined by RFC3339.

workRequestId String

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

Look up Existing NamespaceScheduledTask Resource

Get an existing NamespaceScheduledTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NamespaceScheduledTaskState, opts?: CustomResourceOptions): NamespaceScheduledTask
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[_loganalytics.NamespaceScheduledTaskActionArgs] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        kind: Optional[str] = None,
        namespace: Optional[str] = None,
        num_occurrences: Optional[str] = None,
        saved_search_id: Optional[str] = None,
        scheduled_task_id: Optional[str] = None,
        schedules: Optional[_loganalytics.NamespaceScheduledTaskSchedulesArgs] = None,
        state: Optional[str] = None,
        task_status: Optional[str] = None,
        task_type: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        work_request_id: Optional[str] = None) -> NamespaceScheduledTask
func GetNamespaceScheduledTask(ctx *Context, name string, id IDInput, state *NamespaceScheduledTaskState, opts ...ResourceOption) (*NamespaceScheduledTask, error)
public static NamespaceScheduledTask Get(string name, Input<string> id, NamespaceScheduledTaskState? state, CustomResourceOptions? opts = null)
public static NamespaceScheduledTask get(String name, Output<String> id, NamespaceScheduledTaskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Action NamespaceScheduledTaskActionArgs

Action for scheduled task.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Kind string

Discriminator.

Namespace string

The Logging Analytics namespace used for the request.

NumOccurrences string

Number of execution occurrences.

SavedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

ScheduledTaskId string
Schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

State string

The current state of the scheduled task.

TaskStatus string

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

TaskType string

Task type.

TimeCreated string

The date and time the scheduled task was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the scheduled task was last updated, in the format defined by RFC3339.

WorkRequestId string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

Action NamespaceScheduledTaskActionArgs

Action for scheduled task.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Kind string

Discriminator.

Namespace string

The Logging Analytics namespace used for the request.

NumOccurrences string

Number of execution occurrences.

SavedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

ScheduledTaskId string
Schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

State string

The current state of the scheduled task.

TaskStatus string

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

TaskType string

Task type.

TimeCreated string

The date and time the scheduled task was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the scheduled task was last updated, in the format defined by RFC3339.

WorkRequestId string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

action NamespaceScheduledTaskActionArgs

Action for scheduled task.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

kind String

Discriminator.

namespace String

The Logging Analytics namespace used for the request.

numOccurrences String

Number of execution occurrences.

savedSearchId String

The ManagementSavedSearch id [OCID] to be accelerated.

scheduledTaskId String
schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

state String

The current state of the scheduled task.

taskStatus String

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

taskType String

Task type.

timeCreated String

The date and time the scheduled task was created, in the format defined by RFC3339.

timeUpdated String

The date and time the scheduled task was last updated, in the format defined by RFC3339.

workRequestId String

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

action NamespaceScheduledTaskActionArgs

Action for scheduled task.

compartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

kind string

Discriminator.

namespace string

The Logging Analytics namespace used for the request.

numOccurrences string

Number of execution occurrences.

savedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

scheduledTaskId string
schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

state string

The current state of the scheduled task.

taskStatus string

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

taskType string

Task type.

timeCreated string

The date and time the scheduled task was created, in the format defined by RFC3339.

timeUpdated string

The date and time the scheduled task was last updated, in the format defined by RFC3339.

workRequestId string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

action NamespaceScheduledTaskActionArgs

Action for scheduled task.

compartment_id str

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

kind str

Discriminator.

namespace str

The Logging Analytics namespace used for the request.

num_occurrences str

Number of execution occurrences.

saved_search_id str

The ManagementSavedSearch id [OCID] to be accelerated.

scheduled_task_id str
schedules NamespaceScheduledTaskSchedulesArgs

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

state str

The current state of the scheduled task.

task_status str

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

task_type str

Task type.

time_created str

The date and time the scheduled task was created, in the format defined by RFC3339.

time_updated str

The date and time the scheduled task was last updated, in the format defined by RFC3339.

work_request_id str

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

action Property Map

Action for scheduled task.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

kind String

Discriminator.

namespace String

The Logging Analytics namespace used for the request.

numOccurrences String

Number of execution occurrences.

savedSearchId String

The ManagementSavedSearch id [OCID] to be accelerated.

scheduledTaskId String
schedules Property Map

(Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.

state String

The current state of the scheduled task.

taskStatus String

Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND

taskType String

Task type.

timeCreated String

The date and time the scheduled task was created, in the format defined by RFC3339.

timeUpdated String

The date and time the scheduled task was last updated, in the format defined by RFC3339.

workRequestId String

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

Supporting Types

NamespaceScheduledTaskAction

Type string

(Updatable) Schedule type discriminator.

CompartmentIdInSubtree bool

if true, purge child compartments data

DataType string

the type of the log data to be purged

PurgeCompartmentId string

the compartment OCID under which the data will be purged

PurgeDuration string

The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

QueryString string

Purge query string.

SavedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

Type string

(Updatable) Schedule type discriminator.

CompartmentIdInSubtree bool

if true, purge child compartments data

DataType string

the type of the log data to be purged

PurgeCompartmentId string

the compartment OCID under which the data will be purged

PurgeDuration string

The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

QueryString string

Purge query string.

SavedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

type String

(Updatable) Schedule type discriminator.

compartmentIdInSubtree Boolean

if true, purge child compartments data

dataType String

the type of the log data to be purged

purgeCompartmentId String

the compartment OCID under which the data will be purged

purgeDuration String

The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

queryString String

Purge query string.

savedSearchId String

The ManagementSavedSearch id [OCID] to be accelerated.

type string

(Updatable) Schedule type discriminator.

compartmentIdInSubtree boolean

if true, purge child compartments data

dataType string

the type of the log data to be purged

purgeCompartmentId string

the compartment OCID under which the data will be purged

purgeDuration string

The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

queryString string

Purge query string.

savedSearchId string

The ManagementSavedSearch id [OCID] to be accelerated.

type str

(Updatable) Schedule type discriminator.

compartment_id_in_subtree bool

if true, purge child compartments data

data_type str

the type of the log data to be purged

purge_compartment_id str

the compartment OCID under which the data will be purged

purge_duration str

The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

query_string str

Purge query string.

saved_search_id str

The ManagementSavedSearch id [OCID] to be accelerated.

type String

(Updatable) Schedule type discriminator.

compartmentIdInSubtree Boolean

if true, purge child compartments data

dataType String

the type of the log data to be purged

purgeCompartmentId String

the compartment OCID under which the data will be purged

purgeDuration String

The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

queryString String

Purge query string.

savedSearchId String

The ManagementSavedSearch id [OCID] to be accelerated.

NamespaceScheduledTaskSchedules

NamespaceScheduledTaskSchedulesSchedule

Type string

(Updatable) Schedule type discriminator.

Expression string

(Updatable) Value in cron format.

MisfirePolicy string

(Updatable) Schedule misfire retry policy.

RecurringInterval string

(Updatable) Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).

RepeatCount int

(Updatable) Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.

TimeZone string

(Updatable) Time zone, by default UTC.

Type string

(Updatable) Schedule type discriminator.

Expression string

(Updatable) Value in cron format.

MisfirePolicy string

(Updatable) Schedule misfire retry policy.

RecurringInterval string

(Updatable) Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).

RepeatCount int

(Updatable) Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.

TimeZone string

(Updatable) Time zone, by default UTC.

type String

(Updatable) Schedule type discriminator.

expression String

(Updatable) Value in cron format.

misfirePolicy String

(Updatable) Schedule misfire retry policy.

recurringInterval String

(Updatable) Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).

repeatCount Integer

(Updatable) Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.

timeZone String

(Updatable) Time zone, by default UTC.

type string

(Updatable) Schedule type discriminator.

expression string

(Updatable) Value in cron format.

misfirePolicy string

(Updatable) Schedule misfire retry policy.

recurringInterval string

(Updatable) Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).

repeatCount number

(Updatable) Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.

timeZone string

(Updatable) Time zone, by default UTC.

type str

(Updatable) Schedule type discriminator.

expression str

(Updatable) Value in cron format.

misfire_policy str

(Updatable) Schedule misfire retry policy.

recurring_interval str

(Updatable) Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).

repeat_count int

(Updatable) Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.

time_zone str

(Updatable) Time zone, by default UTC.

type String

(Updatable) Schedule type discriminator.

expression String

(Updatable) Value in cron format.

misfirePolicy String

(Updatable) Schedule misfire retry policy.

recurringInterval String

(Updatable) Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).

repeatCount Number

(Updatable) Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.

timeZone String

(Updatable) Time zone, by default UTC.

Import

NamespaceScheduledTasks can be imported using the id, e.g.

 $ pulumi import oci:LogAnalytics/namespaceScheduledTask:NamespaceScheduledTask test_namespace_scheduled_task "namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.