oci.LogAnalytics.getNamespaceScheduledTask
This data source provides details about a specific Namespace Scheduled Task resource in Oracle Cloud Infrastructure Log Analytics service.
Get the scheduled task for the specified task identifier.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testNamespaceScheduledTask = Oci.LogAnalytics.GetNamespaceScheduledTask.Invoke(new()
{
Namespace = @var.Namespace_scheduled_task_namespace,
ScheduledTaskId = oci_log_analytics_scheduled_task.Test_scheduled_task.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/LogAnalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := LogAnalytics.GetNamespaceScheduledTask(ctx, &loganalytics.GetNamespaceScheduledTaskArgs{
Namespace: _var.Namespace_scheduled_task_namespace,
ScheduledTaskId: oci_log_analytics_scheduled_task.Test_scheduled_task.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceScheduledTaskArgs;
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) {
final var testNamespaceScheduledTask = LogAnalyticsFunctions.getNamespaceScheduledTask(GetNamespaceScheduledTaskArgs.builder()
.namespace(var_.namespace_scheduled_task_namespace())
.scheduledTaskId(oci_log_analytics_scheduled_task.test_scheduled_task().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_namespace_scheduled_task = oci.LogAnalytics.get_namespace_scheduled_task(namespace=var["namespace_scheduled_task_namespace"],
scheduled_task_id=oci_log_analytics_scheduled_task["test_scheduled_task"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceScheduledTask = oci.LogAnalytics.getNamespaceScheduledTask({
namespace: _var.namespace_scheduled_task_namespace,
scheduledTaskId: oci_log_analytics_scheduled_task.test_scheduled_task.id,
});
variables:
testNamespaceScheduledTask:
fn::invoke:
Function: oci:LogAnalytics:getNamespaceScheduledTask
Arguments:
namespace: ${var.namespace_scheduled_task_namespace}
scheduledTaskId: ${oci_log_analytics_scheduled_task.test_scheduled_task.id}
Using getNamespaceScheduledTask
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNamespaceScheduledTask(args: GetNamespaceScheduledTaskArgs, opts?: InvokeOptions): Promise<GetNamespaceScheduledTaskResult>
function getNamespaceScheduledTaskOutput(args: GetNamespaceScheduledTaskOutputArgs, opts?: InvokeOptions): Output<GetNamespaceScheduledTaskResult>
def get_namespace_scheduled_task(namespace: Optional[str] = None,
scheduled_task_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceScheduledTaskResult
def get_namespace_scheduled_task_output(namespace: Optional[pulumi.Input[str]] = None,
scheduled_task_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceScheduledTaskResult]
func GetNamespaceScheduledTask(ctx *Context, args *GetNamespaceScheduledTaskArgs, opts ...InvokeOption) (*GetNamespaceScheduledTaskResult, error)
func GetNamespaceScheduledTaskOutput(ctx *Context, args *GetNamespaceScheduledTaskOutputArgs, opts ...InvokeOption) GetNamespaceScheduledTaskResultOutput
> Note: This function is named GetNamespaceScheduledTask
in the Go SDK.
public static class GetNamespaceScheduledTask
{
public static Task<GetNamespaceScheduledTaskResult> InvokeAsync(GetNamespaceScheduledTaskArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceScheduledTaskResult> Invoke(GetNamespaceScheduledTaskInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceScheduledTaskResult> getNamespaceScheduledTask(GetNamespaceScheduledTaskArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LogAnalytics/getNamespaceScheduledTask:getNamespaceScheduledTask
arguments:
# arguments dictionary
The following arguments are supported:
- Namespace string
The Logging Analytics namespace used for the request.
- Scheduled
Task stringId Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.
- Namespace string
The Logging Analytics namespace used for the request.
- Scheduled
Task stringId Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.
- namespace String
The Logging Analytics namespace used for the request.
- scheduled
Task StringId Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.
- namespace string
The Logging Analytics namespace used for the request.
- scheduled
Task stringId Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.
- namespace str
The Logging Analytics namespace used for the request.
- scheduled_
task_ strid Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.
- namespace String
The Logging Analytics namespace used for the request.
- scheduled
Task StringId Unique scheduledTask id returned from task create. If invalid will lead to a 404 not found.
getNamespaceScheduledTask Result
The following output properties are available:
- Actions
List<Get
Namespace Scheduled Task Action> Action for scheduled task.
- Compartment
Id string Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string 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.
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The OCID of the data plane resource.
- Kind string
- Namespace string
- Num
Occurrences string Number of execution occurrences.
- Saved
Search stringId The ManagementSavedSearch id [OCID] utilized in the action.
- Scheduled
Task stringId - Schedules
List<Get
Namespace Scheduled Task Schedule> Schedules.
- State string
The current state of the scheduled task.
- Task
Status string Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND
- Task
Type string Task type.
- Time
Created string The date and time the scheduled task was created, in the format defined by RFC3339.
- Time
Updated string The date and time the scheduled task was last updated, in the format defined by RFC3339.
- Work
Request stringId most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
- Actions
[]Get
Namespace Scheduled Task Action Action for scheduled task.
- Compartment
Id string Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string 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.
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The OCID of the data plane resource.
- Kind string
- Namespace string
- Num
Occurrences string Number of execution occurrences.
- Saved
Search stringId The ManagementSavedSearch id [OCID] utilized in the action.
- Scheduled
Task stringId - Schedules
[]Get
Namespace Scheduled Task Schedule Schedules.
- State string
The current state of the scheduled task.
- Task
Status string Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND
- Task
Type string Task type.
- Time
Created string The date and time the scheduled task was created, in the format defined by RFC3339.
- Time
Updated string The date and time the scheduled task was last updated, in the format defined by RFC3339.
- Work
Request stringId most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
- actions
List<Get
Namespace Scheduled Task Action> Action for scheduled task.
- compartment
Id String Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String 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.
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The OCID of the data plane resource.
- kind String
- namespace String
- num
Occurrences String Number of execution occurrences.
- saved
Search StringId The ManagementSavedSearch id [OCID] utilized in the action.
- scheduled
Task StringId - schedules
List<Get
Namespace Scheduled Task Schedule> Schedules.
- state String
The current state of the scheduled task.
- task
Status String Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND
- task
Type String Task type.
- time
Created String The date and time the scheduled task was created, in the format defined by RFC3339.
- time
Updated String The date and time the scheduled task was last updated, in the format defined by RFC3339.
- work
Request StringId most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
- actions
Get
Namespace Scheduled Task Action[] Action for scheduled task.
- compartment
Id string Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string 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.
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
The OCID of the data plane resource.
- kind string
- namespace string
- num
Occurrences string Number of execution occurrences.
- saved
Search stringId The ManagementSavedSearch id [OCID] utilized in the action.
- scheduled
Task stringId - schedules
Get
Namespace Scheduled Task Schedule[] Schedules.
- state string
The current state of the scheduled task.
- task
Status string Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND
- task
Type string Task type.
- time
Created string The date and time the scheduled task was created, in the format defined by RFC3339.
- time
Updated string The date and time the scheduled task was last updated, in the format defined by RFC3339.
- work
Request stringId most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
- actions
Get
Namespace Scheduled Task Action] Action for scheduled task.
- compartment_
id str Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str 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.
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
The OCID of the data plane resource.
- kind str
- namespace str
- num_
occurrences str Number of execution occurrences.
- saved_
search_ strid The ManagementSavedSearch id [OCID] utilized in the action.
- scheduled_
task_ strid - schedules
Get
Namespace Scheduled Task Schedule] Schedules.
- 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_ strid most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
- actions List<Property Map>
Action for scheduled task.
- compartment
Id String Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String 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.
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The OCID of the data plane resource.
- kind String
- namespace String
- num
Occurrences String Number of execution occurrences.
- saved
Search StringId The ManagementSavedSearch id [OCID] utilized in the action.
- scheduled
Task StringId - schedules List<Property Map>
Schedules.
- state String
The current state of the scheduled task.
- task
Status String Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND
- task
Type String Task type.
- time
Created String The date and time the scheduled task was created, in the format defined by RFC3339.
- time
Updated String The date and time the scheduled task was last updated, in the format defined by RFC3339.
- work
Request StringId most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
Supporting Types
GetNamespaceScheduledTaskAction
- Compartment
Id boolIn Subtree if true, purge child compartments data
- Data
Type string the type of the log data to be purged
- Purge
Compartment stringId the compartment OCID under which the data will be purged
- Purge
Duration 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).
- Query
String string Purge query string.
- Saved
Search stringId The ManagementSavedSearch id [OCID] utilized in the action.
- Type string
Schedule type discriminator.
- Compartment
Id boolIn Subtree if true, purge child compartments data
- Data
Type string the type of the log data to be purged
- Purge
Compartment stringId the compartment OCID under which the data will be purged
- Purge
Duration 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).
- Query
String string Purge query string.
- Saved
Search stringId The ManagementSavedSearch id [OCID] utilized in the action.
- Type string
Schedule type discriminator.
- compartment
Id BooleanIn Subtree if true, purge child compartments data
- data
Type String the type of the log data to be purged
- purge
Compartment StringId the compartment OCID under which the data will be purged
- purge
Duration 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).
- query
String String Purge query string.
- saved
Search StringId The ManagementSavedSearch id [OCID] utilized in the action.
- type String
Schedule type discriminator.
- compartment
Id booleanIn Subtree if true, purge child compartments data
- data
Type string the type of the log data to be purged
- purge
Compartment stringId the compartment OCID under which the data will be purged
- purge
Duration 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).
- query
String string Purge query string.
- saved
Search stringId The ManagementSavedSearch id [OCID] utilized in the action.
- type string
Schedule type discriminator.
- compartment_
id_ boolin_ subtree if true, purge child compartments data
- data_
type str the type of the log data to be purged
- purge_
compartment_ strid 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_ strid The ManagementSavedSearch id [OCID] utilized in the action.
- type str
Schedule type discriminator.
- compartment
Id BooleanIn Subtree if true, purge child compartments data
- data
Type String the type of the log data to be purged
- purge
Compartment StringId the compartment OCID under which the data will be purged
- purge
Duration 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).
- query
String String Purge query string.
- saved
Search StringId The ManagementSavedSearch id [OCID] utilized in the action.
- type String
Schedule type discriminator.
GetNamespaceScheduledTaskSchedule
GetNamespaceScheduledTaskScheduleSchedule
- Expression string
Value in cron format.
- Misfire
Policy string Schedule misfire retry policy.
- Recurring
Interval string 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 Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
- Time
Zone string Time zone, by default UTC.
- Type string
Schedule type discriminator.
- Expression string
Value in cron format.
- Misfire
Policy string Schedule misfire retry policy.
- Recurring
Interval string 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 Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
- Time
Zone string Time zone, by default UTC.
- Type string
Schedule type discriminator.
- expression String
Value in cron format.
- misfire
Policy String Schedule misfire retry policy.
- recurring
Interval String 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 Integer Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
- time
Zone String Time zone, by default UTC.
- type String
Schedule type discriminator.
- expression string
Value in cron format.
- misfire
Policy string Schedule misfire retry policy.
- recurring
Interval string 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 number Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
- time
Zone string Time zone, by default UTC.
- type string
Schedule type discriminator.
- expression str
Value in cron format.
- misfire_
policy str Schedule misfire retry policy.
- recurring_
interval str 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 Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
- time_
zone str Time zone, by default UTC.
- type str
Schedule type discriminator.
- expression String
Value in cron format.
- misfire
Policy String Schedule misfire retry policy.
- recurring
Interval String 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 Number Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
- time
Zone String Time zone, by default UTC.
- type String
Schedule type discriminator.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.