oci.FleetAppsManagement.Runbook
Explore with Pulumi AI
This resource provides the Runbook resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Creates a runbook.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRunbook = new oci.fleetappsmanagement.Runbook("test_runbook", {
compartmentId: compartmentId,
displayName: runbookDisplayName,
operation: runbookOperation,
runbookVersion: {
executionWorkflowDetails: {
workflows: [{
groupName: testGroup.name,
steps: [{
type: runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsType,
groupName: testGroup.name,
stepName: runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsStepName,
steps: runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsSteps,
}],
type: runbookRunbookVersionExecutionWorkflowDetailsWorkflowType,
}],
},
groups: [{
name: runbookRunbookVersionGroupsName,
type: runbookRunbookVersionGroupsType,
properties: {
actionOnFailure: runbookRunbookVersionGroupsPropertiesActionOnFailure,
notificationPreferences: {
shouldNotifyOnPause: runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnPause,
shouldNotifyOnTaskFailure: runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskFailure,
shouldNotifyOnTaskSuccess: runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess,
},
pauseDetails: {
kind: runbookRunbookVersionGroupsPropertiesPauseDetailsKind,
durationInMinutes: runbookRunbookVersionGroupsPropertiesPauseDetailsDurationInMinutes,
},
preCondition: runbookRunbookVersionGroupsPropertiesPreCondition,
runOn: {
kind: runbookRunbookVersionGroupsPropertiesRunOnKind,
condition: runbookRunbookVersionGroupsPropertiesRunOnCondition,
host: runbookRunbookVersionGroupsPropertiesRunOnHost,
previousTaskInstanceDetails: [{
outputVariableDetails: {
outputVariableName: runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName,
stepName: runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName,
},
resourceId: testResource.id,
resourceType: runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsResourceType,
}],
},
},
}],
tasks: [{
stepName: runbookRunbookVersionTasksStepName,
taskRecordDetails: {
scope: runbookRunbookVersionTasksTaskRecordDetailsScope,
description: runbookRunbookVersionTasksTaskRecordDetailsDescription,
executionDetails: {
executionType: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsExecutionType,
catalogId: testCatalog.id,
command: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCommand,
configFile: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsConfigFile,
content: {
sourceType: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentSourceType,
bucket: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentBucket,
catalogId: testCatalog.id,
checksum: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentChecksum,
namespace: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentNamespace,
object: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentObject,
},
credentials: [{
displayName: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsDisplayName,
id: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsId,
}],
endpoint: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsEndpoint,
isExecutableContent: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsExecutableContent,
isLocked: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsLocked,
isReadOutputVariableEnabled: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsReadOutputVariableEnabled,
targetCompartmentId: testCompartment.id,
variables: {
inputVariables: [{
description: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesDescription,
name: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesName,
type: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesType,
}],
outputVariables: runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesOutputVariables,
},
},
isApplySubjectTask: runbookRunbookVersionTasksTaskRecordDetailsIsApplySubjectTask,
isCopyToLibraryEnabled: runbookRunbookVersionTasksTaskRecordDetailsIsCopyToLibraryEnabled,
isDiscoveryOutputTask: runbookRunbookVersionTasksTaskRecordDetailsIsDiscoveryOutputTask,
name: runbookRunbookVersionTasksTaskRecordDetailsName,
osType: runbookRunbookVersionTasksTaskRecordDetailsOsType,
platform: runbookRunbookVersionTasksTaskRecordDetailsPlatform,
properties: {
numRetries: runbookRunbookVersionTasksTaskRecordDetailsPropertiesNumRetries,
timeoutInSeconds: runbookRunbookVersionTasksTaskRecordDetailsPropertiesTimeoutInSeconds,
},
taskRecordId: testTaskRecord.id,
},
outputVariableMappings: [{
name: runbookRunbookVersionTasksOutputVariableMappingsName,
outputVariableDetails: {
outputVariableName: runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsOutputVariableName,
stepName: runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsStepName,
},
}],
stepProperties: {
actionOnFailure: runbookRunbookVersionTasksStepPropertiesActionOnFailure,
notificationPreferences: {
shouldNotifyOnPause: runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnPause,
shouldNotifyOnTaskFailure: runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskFailure,
shouldNotifyOnTaskSuccess: runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess,
},
pauseDetails: {
kind: runbookRunbookVersionTasksStepPropertiesPauseDetailsKind,
durationInMinutes: runbookRunbookVersionTasksStepPropertiesPauseDetailsDurationInMinutes,
},
preCondition: runbookRunbookVersionTasksStepPropertiesPreCondition,
runOn: {
kind: runbookRunbookVersionTasksStepPropertiesRunOnKind,
condition: runbookRunbookVersionTasksStepPropertiesRunOnCondition,
host: runbookRunbookVersionTasksStepPropertiesRunOnHost,
previousTaskInstanceDetails: [{
outputVariableDetails: {
outputVariableName: runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName,
stepName: runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName,
},
resourceId: testResource.id,
resourceType: runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsResourceType,
}],
},
},
}],
isLatest: runbookRunbookVersionIsLatest,
rollbackWorkflowDetails: {
scope: runbookRunbookVersionRollbackWorkflowDetailsScope,
workflows: [{
groupName: testGroup.name,
steps: [{
type: runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsType,
groupName: testGroup.name,
stepName: runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsStepName,
steps: runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsSteps,
}],
type: runbookRunbookVersionRollbackWorkflowDetailsWorkflowType,
}],
},
version: runbookRunbookVersionVersion,
},
definedTags: {
"foo-namespace.bar-key": "value",
},
description: runbookDescription,
estimatedTime: runbookEstimatedTime,
freeformTags: {
"bar-key": "value",
},
isDefault: runbookIsDefault,
isSudoAccessNeeded: runbookIsSudoAccessNeeded,
osType: runbookOsType,
platform: runbookPlatform,
});
import pulumi
import pulumi_oci as oci
test_runbook = oci.fleet_apps_management.Runbook("test_runbook",
compartment_id=compartment_id,
display_name=runbook_display_name,
operation=runbook_operation,
runbook_version={
"execution_workflow_details": {
"workflows": [{
"group_name": test_group["name"],
"steps": [{
"type": runbook_runbook_version_execution_workflow_details_workflow_steps_type,
"group_name": test_group["name"],
"step_name": runbook_runbook_version_execution_workflow_details_workflow_steps_step_name,
"steps": runbook_runbook_version_execution_workflow_details_workflow_steps_steps,
}],
"type": runbook_runbook_version_execution_workflow_details_workflow_type,
}],
},
"groups": [{
"name": runbook_runbook_version_groups_name,
"type": runbook_runbook_version_groups_type,
"properties": {
"action_on_failure": runbook_runbook_version_groups_properties_action_on_failure,
"notification_preferences": {
"should_notify_on_pause": runbook_runbook_version_groups_properties_notification_preferences_should_notify_on_pause,
"should_notify_on_task_failure": runbook_runbook_version_groups_properties_notification_preferences_should_notify_on_task_failure,
"should_notify_on_task_success": runbook_runbook_version_groups_properties_notification_preferences_should_notify_on_task_success,
},
"pause_details": {
"kind": runbook_runbook_version_groups_properties_pause_details_kind,
"duration_in_minutes": runbook_runbook_version_groups_properties_pause_details_duration_in_minutes,
},
"pre_condition": runbook_runbook_version_groups_properties_pre_condition,
"run_on": {
"kind": runbook_runbook_version_groups_properties_run_on_kind,
"condition": runbook_runbook_version_groups_properties_run_on_condition,
"host": runbook_runbook_version_groups_properties_run_on_host,
"previous_task_instance_details": [{
"output_variable_details": {
"output_variable_name": runbook_runbook_version_groups_properties_run_on_previous_task_instance_details_output_variable_details_output_variable_name,
"step_name": runbook_runbook_version_groups_properties_run_on_previous_task_instance_details_output_variable_details_step_name,
},
"resource_id": test_resource["id"],
"resource_type": runbook_runbook_version_groups_properties_run_on_previous_task_instance_details_resource_type,
}],
},
},
}],
"tasks": [{
"step_name": runbook_runbook_version_tasks_step_name,
"task_record_details": {
"scope": runbook_runbook_version_tasks_task_record_details_scope,
"description": runbook_runbook_version_tasks_task_record_details_description,
"execution_details": {
"execution_type": runbook_runbook_version_tasks_task_record_details_execution_details_execution_type,
"catalog_id": test_catalog["id"],
"command": runbook_runbook_version_tasks_task_record_details_execution_details_command,
"config_file": runbook_runbook_version_tasks_task_record_details_execution_details_config_file,
"content": {
"source_type": runbook_runbook_version_tasks_task_record_details_execution_details_content_source_type,
"bucket": runbook_runbook_version_tasks_task_record_details_execution_details_content_bucket,
"catalog_id": test_catalog["id"],
"checksum": runbook_runbook_version_tasks_task_record_details_execution_details_content_checksum,
"namespace": runbook_runbook_version_tasks_task_record_details_execution_details_content_namespace,
"object": runbook_runbook_version_tasks_task_record_details_execution_details_content_object,
},
"credentials": [{
"display_name": runbook_runbook_version_tasks_task_record_details_execution_details_credentials_display_name,
"id": runbook_runbook_version_tasks_task_record_details_execution_details_credentials_id,
}],
"endpoint": runbook_runbook_version_tasks_task_record_details_execution_details_endpoint,
"is_executable_content": runbook_runbook_version_tasks_task_record_details_execution_details_is_executable_content,
"is_locked": runbook_runbook_version_tasks_task_record_details_execution_details_is_locked,
"is_read_output_variable_enabled": runbook_runbook_version_tasks_task_record_details_execution_details_is_read_output_variable_enabled,
"target_compartment_id": test_compartment["id"],
"variables": {
"input_variables": [{
"description": runbook_runbook_version_tasks_task_record_details_execution_details_variables_input_variables_description,
"name": runbook_runbook_version_tasks_task_record_details_execution_details_variables_input_variables_name,
"type": runbook_runbook_version_tasks_task_record_details_execution_details_variables_input_variables_type,
}],
"output_variables": runbook_runbook_version_tasks_task_record_details_execution_details_variables_output_variables,
},
},
"is_apply_subject_task": runbook_runbook_version_tasks_task_record_details_is_apply_subject_task,
"is_copy_to_library_enabled": runbook_runbook_version_tasks_task_record_details_is_copy_to_library_enabled,
"is_discovery_output_task": runbook_runbook_version_tasks_task_record_details_is_discovery_output_task,
"name": runbook_runbook_version_tasks_task_record_details_name,
"os_type": runbook_runbook_version_tasks_task_record_details_os_type,
"platform": runbook_runbook_version_tasks_task_record_details_platform,
"properties": {
"num_retries": runbook_runbook_version_tasks_task_record_details_properties_num_retries,
"timeout_in_seconds": runbook_runbook_version_tasks_task_record_details_properties_timeout_in_seconds,
},
"task_record_id": test_task_record["id"],
},
"output_variable_mappings": [{
"name": runbook_runbook_version_tasks_output_variable_mappings_name,
"output_variable_details": {
"output_variable_name": runbook_runbook_version_tasks_output_variable_mappings_output_variable_details_output_variable_name,
"step_name": runbook_runbook_version_tasks_output_variable_mappings_output_variable_details_step_name,
},
}],
"step_properties": {
"action_on_failure": runbook_runbook_version_tasks_step_properties_action_on_failure,
"notification_preferences": {
"should_notify_on_pause": runbook_runbook_version_tasks_step_properties_notification_preferences_should_notify_on_pause,
"should_notify_on_task_failure": runbook_runbook_version_tasks_step_properties_notification_preferences_should_notify_on_task_failure,
"should_notify_on_task_success": runbook_runbook_version_tasks_step_properties_notification_preferences_should_notify_on_task_success,
},
"pause_details": {
"kind": runbook_runbook_version_tasks_step_properties_pause_details_kind,
"duration_in_minutes": runbook_runbook_version_tasks_step_properties_pause_details_duration_in_minutes,
},
"pre_condition": runbook_runbook_version_tasks_step_properties_pre_condition,
"run_on": {
"kind": runbook_runbook_version_tasks_step_properties_run_on_kind,
"condition": runbook_runbook_version_tasks_step_properties_run_on_condition,
"host": runbook_runbook_version_tasks_step_properties_run_on_host,
"previous_task_instance_details": [{
"output_variable_details": {
"output_variable_name": runbook_runbook_version_tasks_step_properties_run_on_previous_task_instance_details_output_variable_details_output_variable_name,
"step_name": runbook_runbook_version_tasks_step_properties_run_on_previous_task_instance_details_output_variable_details_step_name,
},
"resource_id": test_resource["id"],
"resource_type": runbook_runbook_version_tasks_step_properties_run_on_previous_task_instance_details_resource_type,
}],
},
},
}],
"is_latest": runbook_runbook_version_is_latest,
"rollback_workflow_details": {
"scope": runbook_runbook_version_rollback_workflow_details_scope,
"workflows": [{
"group_name": test_group["name"],
"steps": [{
"type": runbook_runbook_version_rollback_workflow_details_workflow_steps_type,
"group_name": test_group["name"],
"step_name": runbook_runbook_version_rollback_workflow_details_workflow_steps_step_name,
"steps": runbook_runbook_version_rollback_workflow_details_workflow_steps_steps,
}],
"type": runbook_runbook_version_rollback_workflow_details_workflow_type,
}],
},
"version": runbook_runbook_version_version,
},
defined_tags={
"foo-namespace.bar-key": "value",
},
description=runbook_description,
estimated_time=runbook_estimated_time,
freeform_tags={
"bar-key": "value",
},
is_default=runbook_is_default,
is_sudo_access_needed=runbook_is_sudo_access_needed,
os_type=runbook_os_type,
platform=runbook_platform)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetappsmanagement.NewRunbook(ctx, "test_runbook", &fleetappsmanagement.RunbookArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(runbookDisplayName),
Operation: pulumi.Any(runbookOperation),
RunbookVersion: &fleetappsmanagement.RunbookRunbookVersionArgs{
ExecutionWorkflowDetails: &fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsArgs{
Workflows: fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArray{
&fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs{
GroupName: pulumi.Any(testGroup.Name),
Steps: fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArray{
&fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs{
Type: pulumi.Any(runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsType),
GroupName: pulumi.Any(testGroup.Name),
StepName: pulumi.Any(runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsStepName),
Steps: pulumi.Any(runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsSteps),
},
},
Type: pulumi.Any(runbookRunbookVersionExecutionWorkflowDetailsWorkflowType),
},
},
},
Groups: fleetappsmanagement.RunbookRunbookVersionGroupArray{
&fleetappsmanagement.RunbookRunbookVersionGroupArgs{
Name: pulumi.Any(runbookRunbookVersionGroupsName),
Type: pulumi.Any(runbookRunbookVersionGroupsType),
Properties: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesArgs{
ActionOnFailure: pulumi.Any(runbookRunbookVersionGroupsPropertiesActionOnFailure),
NotificationPreferences: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs{
ShouldNotifyOnPause: pulumi.Any(runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnPause),
ShouldNotifyOnTaskFailure: pulumi.Any(runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskFailure),
ShouldNotifyOnTaskSuccess: pulumi.Any(runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess),
},
PauseDetails: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesPauseDetailsArgs{
Kind: pulumi.Any(runbookRunbookVersionGroupsPropertiesPauseDetailsKind),
DurationInMinutes: pulumi.Any(runbookRunbookVersionGroupsPropertiesPauseDetailsDurationInMinutes),
},
PreCondition: pulumi.Any(runbookRunbookVersionGroupsPropertiesPreCondition),
RunOn: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnArgs{
Kind: pulumi.Any(runbookRunbookVersionGroupsPropertiesRunOnKind),
Condition: pulumi.Any(runbookRunbookVersionGroupsPropertiesRunOnCondition),
Host: pulumi.Any(runbookRunbookVersionGroupsPropertiesRunOnHost),
PreviousTaskInstanceDetails: fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArray{
&fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs{
OutputVariableDetails: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs{
OutputVariableName: pulumi.Any(runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName),
StepName: pulumi.Any(runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName),
},
ResourceId: pulumi.Any(testResource.Id),
ResourceType: pulumi.Any(runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsResourceType),
},
},
},
},
},
},
Tasks: fleetappsmanagement.RunbookRunbookVersionTaskArray{
&fleetappsmanagement.RunbookRunbookVersionTaskArgs{
StepName: pulumi.Any(runbookRunbookVersionTasksStepName),
TaskRecordDetails: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsArgs{
Scope: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsScope),
Description: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsDescription),
ExecutionDetails: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs{
ExecutionType: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsExecutionType),
CatalogId: pulumi.Any(testCatalog.Id),
Command: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCommand),
ConfigFile: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsConfigFile),
Content: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs{
SourceType: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentSourceType),
Bucket: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentBucket),
CatalogId: pulumi.Any(testCatalog.Id),
Checksum: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentChecksum),
Namespace: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentNamespace),
Object: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentObject),
},
Credentials: fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArray{
&fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs{
DisplayName: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsDisplayName),
Id: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsId),
},
},
Endpoint: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsEndpoint),
IsExecutableContent: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsExecutableContent),
IsLocked: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsLocked),
IsReadOutputVariableEnabled: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsReadOutputVariableEnabled),
TargetCompartmentId: pulumi.Any(testCompartment.Id),
Variables: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs{
InputVariables: fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArray{
&fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs{
Description: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesDescription),
Name: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesName),
Type: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesType),
},
},
OutputVariables: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesOutputVariables),
},
},
IsApplySubjectTask: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsIsApplySubjectTask),
IsCopyToLibraryEnabled: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsIsCopyToLibraryEnabled),
IsDiscoveryOutputTask: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsIsDiscoveryOutputTask),
Name: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsName),
OsType: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsOsType),
Platform: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsPlatform),
Properties: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs{
NumRetries: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsPropertiesNumRetries),
TimeoutInSeconds: pulumi.Any(runbookRunbookVersionTasksTaskRecordDetailsPropertiesTimeoutInSeconds),
},
TaskRecordId: pulumi.Any(testTaskRecord.Id),
},
OutputVariableMappings: fleetappsmanagement.RunbookRunbookVersionTaskOutputVariableMappingArray{
&fleetappsmanagement.RunbookRunbookVersionTaskOutputVariableMappingArgs{
Name: pulumi.Any(runbookRunbookVersionTasksOutputVariableMappingsName),
OutputVariableDetails: &fleetappsmanagement.RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs{
OutputVariableName: pulumi.Any(runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsOutputVariableName),
StepName: pulumi.Any(runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsStepName),
},
},
},
StepProperties: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesArgs{
ActionOnFailure: pulumi.Any(runbookRunbookVersionTasksStepPropertiesActionOnFailure),
NotificationPreferences: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs{
ShouldNotifyOnPause: pulumi.Any(runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnPause),
ShouldNotifyOnTaskFailure: pulumi.Any(runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskFailure),
ShouldNotifyOnTaskSuccess: pulumi.Any(runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess),
},
PauseDetails: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs{
Kind: pulumi.Any(runbookRunbookVersionTasksStepPropertiesPauseDetailsKind),
DurationInMinutes: pulumi.Any(runbookRunbookVersionTasksStepPropertiesPauseDetailsDurationInMinutes),
},
PreCondition: pulumi.Any(runbookRunbookVersionTasksStepPropertiesPreCondition),
RunOn: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnArgs{
Kind: pulumi.Any(runbookRunbookVersionTasksStepPropertiesRunOnKind),
Condition: pulumi.Any(runbookRunbookVersionTasksStepPropertiesRunOnCondition),
Host: pulumi.Any(runbookRunbookVersionTasksStepPropertiesRunOnHost),
PreviousTaskInstanceDetails: fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArray{
&fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs{
OutputVariableDetails: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs{
OutputVariableName: pulumi.Any(runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName),
StepName: pulumi.Any(runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName),
},
ResourceId: pulumi.Any(testResource.Id),
ResourceType: pulumi.Any(runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsResourceType),
},
},
},
},
},
},
IsLatest: pulumi.Any(runbookRunbookVersionIsLatest),
RollbackWorkflowDetails: &fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsArgs{
Scope: pulumi.Any(runbookRunbookVersionRollbackWorkflowDetailsScope),
Workflows: fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArray{
&fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs{
GroupName: pulumi.Any(testGroup.Name),
Steps: fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArray{
&fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs{
Type: pulumi.Any(runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsType),
GroupName: pulumi.Any(testGroup.Name),
StepName: pulumi.Any(runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsStepName),
Steps: pulumi.Any(runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsSteps),
},
},
Type: pulumi.Any(runbookRunbookVersionRollbackWorkflowDetailsWorkflowType),
},
},
},
Version: pulumi.Any(runbookRunbookVersionVersion),
},
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(runbookDescription),
EstimatedTime: pulumi.Any(runbookEstimatedTime),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
IsDefault: pulumi.Any(runbookIsDefault),
IsSudoAccessNeeded: pulumi.Any(runbookIsSudoAccessNeeded),
OsType: pulumi.Any(runbookOsType),
Platform: pulumi.Any(runbookPlatform),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRunbook = new Oci.FleetAppsManagement.Runbook("test_runbook", new()
{
CompartmentId = compartmentId,
DisplayName = runbookDisplayName,
Operation = runbookOperation,
RunbookVersion = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionArgs
{
ExecutionWorkflowDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionExecutionWorkflowDetailsArgs
{
Workflows = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs
{
GroupName = testGroup.Name,
Steps = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs
{
Type = runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsType,
GroupName = testGroup.Name,
StepName = runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsStepName,
Steps = runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsSteps,
},
},
Type = runbookRunbookVersionExecutionWorkflowDetailsWorkflowType,
},
},
},
Groups = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupArgs
{
Name = runbookRunbookVersionGroupsName,
Type = runbookRunbookVersionGroupsType,
Properties = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesArgs
{
ActionOnFailure = runbookRunbookVersionGroupsPropertiesActionOnFailure,
NotificationPreferences = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs
{
ShouldNotifyOnPause = runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnPause,
ShouldNotifyOnTaskFailure = runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskFailure,
ShouldNotifyOnTaskSuccess = runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess,
},
PauseDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesPauseDetailsArgs
{
Kind = runbookRunbookVersionGroupsPropertiesPauseDetailsKind,
DurationInMinutes = runbookRunbookVersionGroupsPropertiesPauseDetailsDurationInMinutes,
},
PreCondition = runbookRunbookVersionGroupsPropertiesPreCondition,
RunOn = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesRunOnArgs
{
Kind = runbookRunbookVersionGroupsPropertiesRunOnKind,
Condition = runbookRunbookVersionGroupsPropertiesRunOnCondition,
Host = runbookRunbookVersionGroupsPropertiesRunOnHost,
PreviousTaskInstanceDetails = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs
{
OutputVariableDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs
{
OutputVariableName = runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName,
StepName = runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName,
},
ResourceId = testResource.Id,
ResourceType = runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsResourceType,
},
},
},
},
},
},
Tasks = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskArgs
{
StepName = runbookRunbookVersionTasksStepName,
TaskRecordDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsArgs
{
Scope = runbookRunbookVersionTasksTaskRecordDetailsScope,
Description = runbookRunbookVersionTasksTaskRecordDetailsDescription,
ExecutionDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs
{
ExecutionType = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsExecutionType,
CatalogId = testCatalog.Id,
Command = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCommand,
ConfigFile = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsConfigFile,
Content = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs
{
SourceType = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentSourceType,
Bucket = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentBucket,
CatalogId = testCatalog.Id,
Checksum = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentChecksum,
Namespace = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentNamespace,
Object = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentObject,
},
Credentials = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs
{
DisplayName = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsDisplayName,
Id = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsId,
},
},
Endpoint = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsEndpoint,
IsExecutableContent = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsExecutableContent,
IsLocked = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsLocked,
IsReadOutputVariableEnabled = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsReadOutputVariableEnabled,
TargetCompartmentId = testCompartment.Id,
Variables = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs
{
InputVariables = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs
{
Description = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesDescription,
Name = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesName,
Type = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesType,
},
},
OutputVariables = runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesOutputVariables,
},
},
IsApplySubjectTask = runbookRunbookVersionTasksTaskRecordDetailsIsApplySubjectTask,
IsCopyToLibraryEnabled = runbookRunbookVersionTasksTaskRecordDetailsIsCopyToLibraryEnabled,
IsDiscoveryOutputTask = runbookRunbookVersionTasksTaskRecordDetailsIsDiscoveryOutputTask,
Name = runbookRunbookVersionTasksTaskRecordDetailsName,
OsType = runbookRunbookVersionTasksTaskRecordDetailsOsType,
Platform = runbookRunbookVersionTasksTaskRecordDetailsPlatform,
Properties = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs
{
NumRetries = runbookRunbookVersionTasksTaskRecordDetailsPropertiesNumRetries,
TimeoutInSeconds = runbookRunbookVersionTasksTaskRecordDetailsPropertiesTimeoutInSeconds,
},
TaskRecordId = testTaskRecord.Id,
},
OutputVariableMappings = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskOutputVariableMappingArgs
{
Name = runbookRunbookVersionTasksOutputVariableMappingsName,
OutputVariableDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs
{
OutputVariableName = runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsOutputVariableName,
StepName = runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsStepName,
},
},
},
StepProperties = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesArgs
{
ActionOnFailure = runbookRunbookVersionTasksStepPropertiesActionOnFailure,
NotificationPreferences = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs
{
ShouldNotifyOnPause = runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnPause,
ShouldNotifyOnTaskFailure = runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskFailure,
ShouldNotifyOnTaskSuccess = runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess,
},
PauseDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs
{
Kind = runbookRunbookVersionTasksStepPropertiesPauseDetailsKind,
DurationInMinutes = runbookRunbookVersionTasksStepPropertiesPauseDetailsDurationInMinutes,
},
PreCondition = runbookRunbookVersionTasksStepPropertiesPreCondition,
RunOn = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesRunOnArgs
{
Kind = runbookRunbookVersionTasksStepPropertiesRunOnKind,
Condition = runbookRunbookVersionTasksStepPropertiesRunOnCondition,
Host = runbookRunbookVersionTasksStepPropertiesRunOnHost,
PreviousTaskInstanceDetails = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs
{
OutputVariableDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs
{
OutputVariableName = runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName,
StepName = runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName,
},
ResourceId = testResource.Id,
ResourceType = runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsResourceType,
},
},
},
},
},
},
IsLatest = runbookRunbookVersionIsLatest,
RollbackWorkflowDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionRollbackWorkflowDetailsArgs
{
Scope = runbookRunbookVersionRollbackWorkflowDetailsScope,
Workflows = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs
{
GroupName = testGroup.Name,
Steps = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs
{
Type = runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsType,
GroupName = testGroup.Name,
StepName = runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsStepName,
Steps = runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsSteps,
},
},
Type = runbookRunbookVersionRollbackWorkflowDetailsWorkflowType,
},
},
},
Version = runbookRunbookVersionVersion,
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = runbookDescription,
EstimatedTime = runbookEstimatedTime,
FreeformTags =
{
{ "bar-key", "value" },
},
IsDefault = runbookIsDefault,
IsSudoAccessNeeded = runbookIsSudoAccessNeeded,
OsType = runbookOsType,
Platform = runbookPlatform,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.Runbook;
import com.pulumi.oci.FleetAppsManagement.RunbookArgs;
import com.pulumi.oci.FleetAppsManagement.inputs.RunbookRunbookVersionArgs;
import com.pulumi.oci.FleetAppsManagement.inputs.RunbookRunbookVersionExecutionWorkflowDetailsArgs;
import com.pulumi.oci.FleetAppsManagement.inputs.RunbookRunbookVersionRollbackWorkflowDetailsArgs;
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 testRunbook = new Runbook("testRunbook", RunbookArgs.builder()
.compartmentId(compartmentId)
.displayName(runbookDisplayName)
.operation(runbookOperation)
.runbookVersion(RunbookRunbookVersionArgs.builder()
.executionWorkflowDetails(RunbookRunbookVersionExecutionWorkflowDetailsArgs.builder()
.workflows(RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs.builder()
.groupName(testGroup.name())
.steps(RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs.builder()
.type(runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsType)
.groupName(testGroup.name())
.stepName(runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsStepName)
.steps(runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsSteps)
.build())
.type(runbookRunbookVersionExecutionWorkflowDetailsWorkflowType)
.build())
.build())
.groups(RunbookRunbookVersionGroupArgs.builder()
.name(runbookRunbookVersionGroupsName)
.type(runbookRunbookVersionGroupsType)
.properties(RunbookRunbookVersionGroupPropertiesArgs.builder()
.actionOnFailure(runbookRunbookVersionGroupsPropertiesActionOnFailure)
.notificationPreferences(RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs.builder()
.shouldNotifyOnPause(runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnPause)
.shouldNotifyOnTaskFailure(runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskFailure)
.shouldNotifyOnTaskSuccess(runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess)
.build())
.pauseDetails(RunbookRunbookVersionGroupPropertiesPauseDetailsArgs.builder()
.kind(runbookRunbookVersionGroupsPropertiesPauseDetailsKind)
.durationInMinutes(runbookRunbookVersionGroupsPropertiesPauseDetailsDurationInMinutes)
.build())
.preCondition(runbookRunbookVersionGroupsPropertiesPreCondition)
.runOn(RunbookRunbookVersionGroupPropertiesRunOnArgs.builder()
.kind(runbookRunbookVersionGroupsPropertiesRunOnKind)
.condition(runbookRunbookVersionGroupsPropertiesRunOnCondition)
.host(runbookRunbookVersionGroupsPropertiesRunOnHost)
.previousTaskInstanceDetails(RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs.builder()
.outputVariableDetails(RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs.builder()
.outputVariableName(runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName)
.stepName(runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName)
.build())
.resourceId(testResource.id())
.resourceType(runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsResourceType)
.build())
.build())
.build())
.build())
.tasks(RunbookRunbookVersionTaskArgs.builder()
.stepName(runbookRunbookVersionTasksStepName)
.taskRecordDetails(RunbookRunbookVersionTaskTaskRecordDetailsArgs.builder()
.scope(runbookRunbookVersionTasksTaskRecordDetailsScope)
.description(runbookRunbookVersionTasksTaskRecordDetailsDescription)
.executionDetails(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs.builder()
.executionType(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsExecutionType)
.catalogId(testCatalog.id())
.command(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCommand)
.configFile(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsConfigFile)
.content(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs.builder()
.sourceType(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentSourceType)
.bucket(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentBucket)
.catalogId(testCatalog.id())
.checksum(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentChecksum)
.namespace(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentNamespace)
.object(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentObject)
.build())
.credentials(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs.builder()
.displayName(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsDisplayName)
.id(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsId)
.build())
.endpoint(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsEndpoint)
.isExecutableContent(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsExecutableContent)
.isLocked(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsLocked)
.isReadOutputVariableEnabled(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsReadOutputVariableEnabled)
.targetCompartmentId(testCompartment.id())
.variables(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs.builder()
.inputVariables(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs.builder()
.description(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesDescription)
.name(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesName)
.type(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesType)
.build())
.outputVariables(runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesOutputVariables)
.build())
.build())
.isApplySubjectTask(runbookRunbookVersionTasksTaskRecordDetailsIsApplySubjectTask)
.isCopyToLibraryEnabled(runbookRunbookVersionTasksTaskRecordDetailsIsCopyToLibraryEnabled)
.isDiscoveryOutputTask(runbookRunbookVersionTasksTaskRecordDetailsIsDiscoveryOutputTask)
.name(runbookRunbookVersionTasksTaskRecordDetailsName)
.osType(runbookRunbookVersionTasksTaskRecordDetailsOsType)
.platform(runbookRunbookVersionTasksTaskRecordDetailsPlatform)
.properties(RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs.builder()
.numRetries(runbookRunbookVersionTasksTaskRecordDetailsPropertiesNumRetries)
.timeoutInSeconds(runbookRunbookVersionTasksTaskRecordDetailsPropertiesTimeoutInSeconds)
.build())
.taskRecordId(testTaskRecord.id())
.build())
.outputVariableMappings(RunbookRunbookVersionTaskOutputVariableMappingArgs.builder()
.name(runbookRunbookVersionTasksOutputVariableMappingsName)
.outputVariableDetails(RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs.builder()
.outputVariableName(runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsOutputVariableName)
.stepName(runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsStepName)
.build())
.build())
.stepProperties(RunbookRunbookVersionTaskStepPropertiesArgs.builder()
.actionOnFailure(runbookRunbookVersionTasksStepPropertiesActionOnFailure)
.notificationPreferences(RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs.builder()
.shouldNotifyOnPause(runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnPause)
.shouldNotifyOnTaskFailure(runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskFailure)
.shouldNotifyOnTaskSuccess(runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess)
.build())
.pauseDetails(RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs.builder()
.kind(runbookRunbookVersionTasksStepPropertiesPauseDetailsKind)
.durationInMinutes(runbookRunbookVersionTasksStepPropertiesPauseDetailsDurationInMinutes)
.build())
.preCondition(runbookRunbookVersionTasksStepPropertiesPreCondition)
.runOn(RunbookRunbookVersionTaskStepPropertiesRunOnArgs.builder()
.kind(runbookRunbookVersionTasksStepPropertiesRunOnKind)
.condition(runbookRunbookVersionTasksStepPropertiesRunOnCondition)
.host(runbookRunbookVersionTasksStepPropertiesRunOnHost)
.previousTaskInstanceDetails(RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs.builder()
.outputVariableDetails(RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs.builder()
.outputVariableName(runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName)
.stepName(runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName)
.build())
.resourceId(testResource.id())
.resourceType(runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsResourceType)
.build())
.build())
.build())
.build())
.isLatest(runbookRunbookVersionIsLatest)
.rollbackWorkflowDetails(RunbookRunbookVersionRollbackWorkflowDetailsArgs.builder()
.scope(runbookRunbookVersionRollbackWorkflowDetailsScope)
.workflows(RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs.builder()
.groupName(testGroup.name())
.steps(RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs.builder()
.type(runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsType)
.groupName(testGroup.name())
.stepName(runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsStepName)
.steps(runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsSteps)
.build())
.type(runbookRunbookVersionRollbackWorkflowDetailsWorkflowType)
.build())
.build())
.version(runbookRunbookVersionVersion)
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(runbookDescription)
.estimatedTime(runbookEstimatedTime)
.freeformTags(Map.of("bar-key", "value"))
.isDefault(runbookIsDefault)
.isSudoAccessNeeded(runbookIsSudoAccessNeeded)
.osType(runbookOsType)
.platform(runbookPlatform)
.build());
}
}
resources:
testRunbook:
type: oci:FleetAppsManagement:Runbook
name: test_runbook
properties:
compartmentId: ${compartmentId}
displayName: ${runbookDisplayName}
operation: ${runbookOperation}
runbookVersion:
executionWorkflowDetails:
workflows:
- groupName: ${testGroup.name}
steps:
- type: ${runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsType}
groupName: ${testGroup.name}
stepName: ${runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsStepName}
steps: ${runbookRunbookVersionExecutionWorkflowDetailsWorkflowStepsSteps}
type: ${runbookRunbookVersionExecutionWorkflowDetailsWorkflowType}
groups:
- name: ${runbookRunbookVersionGroupsName}
type: ${runbookRunbookVersionGroupsType}
properties:
actionOnFailure: ${runbookRunbookVersionGroupsPropertiesActionOnFailure}
notificationPreferences:
shouldNotifyOnPause: ${runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnPause}
shouldNotifyOnTaskFailure: ${runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskFailure}
shouldNotifyOnTaskSuccess: ${runbookRunbookVersionGroupsPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess}
pauseDetails:
kind: ${runbookRunbookVersionGroupsPropertiesPauseDetailsKind}
durationInMinutes: ${runbookRunbookVersionGroupsPropertiesPauseDetailsDurationInMinutes}
preCondition: ${runbookRunbookVersionGroupsPropertiesPreCondition}
runOn:
kind: ${runbookRunbookVersionGroupsPropertiesRunOnKind}
condition: ${runbookRunbookVersionGroupsPropertiesRunOnCondition}
host: ${runbookRunbookVersionGroupsPropertiesRunOnHost}
previousTaskInstanceDetails:
- outputVariableDetails:
outputVariableName: ${runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName}
stepName: ${runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName}
resourceId: ${testResource.id}
resourceType: ${runbookRunbookVersionGroupsPropertiesRunOnPreviousTaskInstanceDetailsResourceType}
tasks:
- stepName: ${runbookRunbookVersionTasksStepName}
taskRecordDetails:
scope: ${runbookRunbookVersionTasksTaskRecordDetailsScope}
description: ${runbookRunbookVersionTasksTaskRecordDetailsDescription}
executionDetails:
executionType: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsExecutionType}
catalogId: ${testCatalog.id}
command: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCommand}
configFile: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsConfigFile}
content:
sourceType: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentSourceType}
bucket: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentBucket}
catalogId: ${testCatalog.id}
checksum: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentChecksum}
namespace: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentNamespace}
object: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsContentObject}
credentials:
- displayName: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsDisplayName}
id: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsCredentialsId}
endpoint: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsEndpoint}
isExecutableContent: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsExecutableContent}
isLocked: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsLocked}
isReadOutputVariableEnabled: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsIsReadOutputVariableEnabled}
targetCompartmentId: ${testCompartment.id}
variables:
inputVariables:
- description: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesDescription}
name: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesName}
type: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesInputVariablesType}
outputVariables: ${runbookRunbookVersionTasksTaskRecordDetailsExecutionDetailsVariablesOutputVariables}
isApplySubjectTask: ${runbookRunbookVersionTasksTaskRecordDetailsIsApplySubjectTask}
isCopyToLibraryEnabled: ${runbookRunbookVersionTasksTaskRecordDetailsIsCopyToLibraryEnabled}
isDiscoveryOutputTask: ${runbookRunbookVersionTasksTaskRecordDetailsIsDiscoveryOutputTask}
name: ${runbookRunbookVersionTasksTaskRecordDetailsName}
osType: ${runbookRunbookVersionTasksTaskRecordDetailsOsType}
platform: ${runbookRunbookVersionTasksTaskRecordDetailsPlatform}
properties:
numRetries: ${runbookRunbookVersionTasksTaskRecordDetailsPropertiesNumRetries}
timeoutInSeconds: ${runbookRunbookVersionTasksTaskRecordDetailsPropertiesTimeoutInSeconds}
taskRecordId: ${testTaskRecord.id}
outputVariableMappings:
- name: ${runbookRunbookVersionTasksOutputVariableMappingsName}
outputVariableDetails:
outputVariableName: ${runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsOutputVariableName}
stepName: ${runbookRunbookVersionTasksOutputVariableMappingsOutputVariableDetailsStepName}
stepProperties:
actionOnFailure: ${runbookRunbookVersionTasksStepPropertiesActionOnFailure}
notificationPreferences:
shouldNotifyOnPause: ${runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnPause}
shouldNotifyOnTaskFailure: ${runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskFailure}
shouldNotifyOnTaskSuccess: ${runbookRunbookVersionTasksStepPropertiesNotificationPreferencesShouldNotifyOnTaskSuccess}
pauseDetails:
kind: ${runbookRunbookVersionTasksStepPropertiesPauseDetailsKind}
durationInMinutes: ${runbookRunbookVersionTasksStepPropertiesPauseDetailsDurationInMinutes}
preCondition: ${runbookRunbookVersionTasksStepPropertiesPreCondition}
runOn:
kind: ${runbookRunbookVersionTasksStepPropertiesRunOnKind}
condition: ${runbookRunbookVersionTasksStepPropertiesRunOnCondition}
host: ${runbookRunbookVersionTasksStepPropertiesRunOnHost}
previousTaskInstanceDetails:
- outputVariableDetails:
outputVariableName: ${runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsOutputVariableName}
stepName: ${runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsOutputVariableDetailsStepName}
resourceId: ${testResource.id}
resourceType: ${runbookRunbookVersionTasksStepPropertiesRunOnPreviousTaskInstanceDetailsResourceType}
isLatest: ${runbookRunbookVersionIsLatest}
rollbackWorkflowDetails:
scope: ${runbookRunbookVersionRollbackWorkflowDetailsScope}
workflows:
- groupName: ${testGroup.name}
steps:
- type: ${runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsType}
groupName: ${testGroup.name}
stepName: ${runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsStepName}
steps: ${runbookRunbookVersionRollbackWorkflowDetailsWorkflowStepsSteps}
type: ${runbookRunbookVersionRollbackWorkflowDetailsWorkflowType}
version: ${runbookRunbookVersionVersion}
definedTags:
foo-namespace.bar-key: value
description: ${runbookDescription}
estimatedTime: ${runbookEstimatedTime}
freeformTags:
bar-key: value
isDefault: ${runbookIsDefault}
isSudoAccessNeeded: ${runbookIsSudoAccessNeeded}
osType: ${runbookOsType}
platform: ${runbookPlatform}
Create Runbook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Runbook(name: string, args: RunbookArgs, opts?: CustomResourceOptions);
@overload
def Runbook(resource_name: str,
args: RunbookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Runbook(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
operation: Optional[str] = None,
runbook_version: Optional[RunbookRunbookVersionArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
estimated_time: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_default: Optional[bool] = None,
is_sudo_access_needed: Optional[bool] = None,
os_type: Optional[str] = None,
platform: Optional[str] = None)
func NewRunbook(ctx *Context, name string, args RunbookArgs, opts ...ResourceOption) (*Runbook, error)
public Runbook(string name, RunbookArgs args, CustomResourceOptions? opts = null)
public Runbook(String name, RunbookArgs args)
public Runbook(String name, RunbookArgs args, CustomResourceOptions options)
type: oci:FleetAppsManagement:Runbook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RunbookArgs
- 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 RunbookArgs
- 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 RunbookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RunbookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RunbookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var runbookResource = new Oci.FleetAppsManagement.Runbook("runbookResource", new()
{
CompartmentId = "string",
DisplayName = "string",
Operation = "string",
RunbookVersion = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionArgs
{
ExecutionWorkflowDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionExecutionWorkflowDetailsArgs
{
Workflows = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs
{
GroupName = "string",
Steps = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs
{
Type = "string",
GroupName = "string",
StepName = "string",
Steps = new[]
{
"string",
},
},
},
Type = "string",
},
},
},
Groups = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupArgs
{
Name = "string",
Type = "string",
Properties = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesArgs
{
ActionOnFailure = "string",
NotificationPreferences = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs
{
ShouldNotifyOnPause = false,
ShouldNotifyOnTaskFailure = false,
ShouldNotifyOnTaskSuccess = false,
},
PauseDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesPauseDetailsArgs
{
Kind = "string",
DurationInMinutes = 0,
},
PreCondition = "string",
RunOn = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesRunOnArgs
{
Kind = "string",
Condition = "string",
Host = "string",
PreviousTaskInstanceDetails = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs
{
OutputVariableDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs
{
OutputVariableName = "string",
StepName = "string",
},
ResourceId = "string",
ResourceType = "string",
},
},
},
},
},
},
Tasks = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskArgs
{
StepName = "string",
TaskRecordDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsArgs
{
Scope = "string",
Description = "string",
ExecutionDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs
{
ExecutionType = "string",
CatalogId = "string",
Command = "string",
ConfigFile = "string",
Content = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs
{
SourceType = "string",
Bucket = "string",
CatalogId = "string",
Checksum = "string",
Namespace = "string",
Object = "string",
},
Credentials = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs
{
DisplayName = "string",
Id = "string",
},
},
Endpoint = "string",
IsExecutableContent = false,
IsLocked = false,
IsReadOutputVariableEnabled = false,
TargetCompartmentId = "string",
Variables = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs
{
InputVariables = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs
{
Description = "string",
Name = "string",
Type = "string",
},
},
OutputVariables = new[]
{
"string",
},
},
},
IsApplySubjectTask = false,
IsCopyToLibraryEnabled = false,
IsDiscoveryOutputTask = false,
Name = "string",
OsType = "string",
Platform = "string",
Properties = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs
{
NumRetries = 0,
TimeoutInSeconds = 0,
},
TaskRecordId = "string",
},
OutputVariableMappings = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskOutputVariableMappingArgs
{
Name = "string",
OutputVariableDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs
{
OutputVariableName = "string",
StepName = "string",
},
},
},
StepProperties = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesArgs
{
ActionOnFailure = "string",
NotificationPreferences = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs
{
ShouldNotifyOnPause = false,
ShouldNotifyOnTaskFailure = false,
ShouldNotifyOnTaskSuccess = false,
},
PauseDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs
{
Kind = "string",
DurationInMinutes = 0,
},
PreCondition = "string",
RunOn = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesRunOnArgs
{
Kind = "string",
Condition = "string",
Host = "string",
PreviousTaskInstanceDetails = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs
{
OutputVariableDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs
{
OutputVariableName = "string",
StepName = "string",
},
ResourceId = "string",
ResourceType = "string",
},
},
},
},
},
},
IsLatest = false,
RollbackWorkflowDetails = new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionRollbackWorkflowDetailsArgs
{
Scope = "string",
Workflows = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs
{
GroupName = "string",
Steps = new[]
{
new Oci.FleetAppsManagement.Inputs.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs
{
Type = "string",
GroupName = "string",
StepName = "string",
Steps = new[]
{
"string",
},
},
},
Type = "string",
},
},
},
Version = "string",
},
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
EstimatedTime = "string",
FreeformTags =
{
{ "string", "string" },
},
IsDefault = false,
IsSudoAccessNeeded = false,
OsType = "string",
Platform = "string",
});
example, err := fleetappsmanagement.NewRunbook(ctx, "runbookResource", &fleetappsmanagement.RunbookArgs{
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Operation: pulumi.String("string"),
RunbookVersion: &fleetappsmanagement.RunbookRunbookVersionArgs{
ExecutionWorkflowDetails: &fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsArgs{
Workflows: fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArray{
&fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs{
GroupName: pulumi.String("string"),
Steps: fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArray{
&fleetappsmanagement.RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs{
Type: pulumi.String("string"),
GroupName: pulumi.String("string"),
StepName: pulumi.String("string"),
Steps: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Type: pulumi.String("string"),
},
},
},
Groups: fleetappsmanagement.RunbookRunbookVersionGroupArray{
&fleetappsmanagement.RunbookRunbookVersionGroupArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Properties: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesArgs{
ActionOnFailure: pulumi.String("string"),
NotificationPreferences: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs{
ShouldNotifyOnPause: pulumi.Bool(false),
ShouldNotifyOnTaskFailure: pulumi.Bool(false),
ShouldNotifyOnTaskSuccess: pulumi.Bool(false),
},
PauseDetails: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesPauseDetailsArgs{
Kind: pulumi.String("string"),
DurationInMinutes: pulumi.Int(0),
},
PreCondition: pulumi.String("string"),
RunOn: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnArgs{
Kind: pulumi.String("string"),
Condition: pulumi.String("string"),
Host: pulumi.String("string"),
PreviousTaskInstanceDetails: fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArray{
&fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs{
OutputVariableDetails: &fleetappsmanagement.RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs{
OutputVariableName: pulumi.String("string"),
StepName: pulumi.String("string"),
},
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
},
},
},
},
},
Tasks: fleetappsmanagement.RunbookRunbookVersionTaskArray{
&fleetappsmanagement.RunbookRunbookVersionTaskArgs{
StepName: pulumi.String("string"),
TaskRecordDetails: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsArgs{
Scope: pulumi.String("string"),
Description: pulumi.String("string"),
ExecutionDetails: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs{
ExecutionType: pulumi.String("string"),
CatalogId: pulumi.String("string"),
Command: pulumi.String("string"),
ConfigFile: pulumi.String("string"),
Content: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs{
SourceType: pulumi.String("string"),
Bucket: pulumi.String("string"),
CatalogId: pulumi.String("string"),
Checksum: pulumi.String("string"),
Namespace: pulumi.String("string"),
Object: pulumi.String("string"),
},
Credentials: fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArray{
&fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs{
DisplayName: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
Endpoint: pulumi.String("string"),
IsExecutableContent: pulumi.Bool(false),
IsLocked: pulumi.Bool(false),
IsReadOutputVariableEnabled: pulumi.Bool(false),
TargetCompartmentId: pulumi.String("string"),
Variables: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs{
InputVariables: fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArray{
&fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
OutputVariables: pulumi.StringArray{
pulumi.String("string"),
},
},
},
IsApplySubjectTask: pulumi.Bool(false),
IsCopyToLibraryEnabled: pulumi.Bool(false),
IsDiscoveryOutputTask: pulumi.Bool(false),
Name: pulumi.String("string"),
OsType: pulumi.String("string"),
Platform: pulumi.String("string"),
Properties: &fleetappsmanagement.RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs{
NumRetries: pulumi.Int(0),
TimeoutInSeconds: pulumi.Int(0),
},
TaskRecordId: pulumi.String("string"),
},
OutputVariableMappings: fleetappsmanagement.RunbookRunbookVersionTaskOutputVariableMappingArray{
&fleetappsmanagement.RunbookRunbookVersionTaskOutputVariableMappingArgs{
Name: pulumi.String("string"),
OutputVariableDetails: &fleetappsmanagement.RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs{
OutputVariableName: pulumi.String("string"),
StepName: pulumi.String("string"),
},
},
},
StepProperties: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesArgs{
ActionOnFailure: pulumi.String("string"),
NotificationPreferences: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs{
ShouldNotifyOnPause: pulumi.Bool(false),
ShouldNotifyOnTaskFailure: pulumi.Bool(false),
ShouldNotifyOnTaskSuccess: pulumi.Bool(false),
},
PauseDetails: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs{
Kind: pulumi.String("string"),
DurationInMinutes: pulumi.Int(0),
},
PreCondition: pulumi.String("string"),
RunOn: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnArgs{
Kind: pulumi.String("string"),
Condition: pulumi.String("string"),
Host: pulumi.String("string"),
PreviousTaskInstanceDetails: fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArray{
&fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs{
OutputVariableDetails: &fleetappsmanagement.RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs{
OutputVariableName: pulumi.String("string"),
StepName: pulumi.String("string"),
},
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
},
},
},
},
},
IsLatest: pulumi.Bool(false),
RollbackWorkflowDetails: &fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsArgs{
Scope: pulumi.String("string"),
Workflows: fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArray{
&fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs{
GroupName: pulumi.String("string"),
Steps: fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArray{
&fleetappsmanagement.RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs{
Type: pulumi.String("string"),
GroupName: pulumi.String("string"),
StepName: pulumi.String("string"),
Steps: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Type: pulumi.String("string"),
},
},
},
Version: pulumi.String("string"),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
EstimatedTime: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
IsDefault: pulumi.Bool(false),
IsSudoAccessNeeded: pulumi.Bool(false),
OsType: pulumi.String("string"),
Platform: pulumi.String("string"),
})
var runbookResource = new Runbook("runbookResource", RunbookArgs.builder()
.compartmentId("string")
.displayName("string")
.operation("string")
.runbookVersion(RunbookRunbookVersionArgs.builder()
.executionWorkflowDetails(RunbookRunbookVersionExecutionWorkflowDetailsArgs.builder()
.workflows(RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs.builder()
.groupName("string")
.steps(RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs.builder()
.type("string")
.groupName("string")
.stepName("string")
.steps("string")
.build())
.type("string")
.build())
.build())
.groups(RunbookRunbookVersionGroupArgs.builder()
.name("string")
.type("string")
.properties(RunbookRunbookVersionGroupPropertiesArgs.builder()
.actionOnFailure("string")
.notificationPreferences(RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs.builder()
.shouldNotifyOnPause(false)
.shouldNotifyOnTaskFailure(false)
.shouldNotifyOnTaskSuccess(false)
.build())
.pauseDetails(RunbookRunbookVersionGroupPropertiesPauseDetailsArgs.builder()
.kind("string")
.durationInMinutes(0)
.build())
.preCondition("string")
.runOn(RunbookRunbookVersionGroupPropertiesRunOnArgs.builder()
.kind("string")
.condition("string")
.host("string")
.previousTaskInstanceDetails(RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs.builder()
.outputVariableDetails(RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs.builder()
.outputVariableName("string")
.stepName("string")
.build())
.resourceId("string")
.resourceType("string")
.build())
.build())
.build())
.build())
.tasks(RunbookRunbookVersionTaskArgs.builder()
.stepName("string")
.taskRecordDetails(RunbookRunbookVersionTaskTaskRecordDetailsArgs.builder()
.scope("string")
.description("string")
.executionDetails(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs.builder()
.executionType("string")
.catalogId("string")
.command("string")
.configFile("string")
.content(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs.builder()
.sourceType("string")
.bucket("string")
.catalogId("string")
.checksum("string")
.namespace("string")
.object("string")
.build())
.credentials(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs.builder()
.displayName("string")
.id("string")
.build())
.endpoint("string")
.isExecutableContent(false)
.isLocked(false)
.isReadOutputVariableEnabled(false)
.targetCompartmentId("string")
.variables(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs.builder()
.inputVariables(RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs.builder()
.description("string")
.name("string")
.type("string")
.build())
.outputVariables("string")
.build())
.build())
.isApplySubjectTask(false)
.isCopyToLibraryEnabled(false)
.isDiscoveryOutputTask(false)
.name("string")
.osType("string")
.platform("string")
.properties(RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs.builder()
.numRetries(0)
.timeoutInSeconds(0)
.build())
.taskRecordId("string")
.build())
.outputVariableMappings(RunbookRunbookVersionTaskOutputVariableMappingArgs.builder()
.name("string")
.outputVariableDetails(RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs.builder()
.outputVariableName("string")
.stepName("string")
.build())
.build())
.stepProperties(RunbookRunbookVersionTaskStepPropertiesArgs.builder()
.actionOnFailure("string")
.notificationPreferences(RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs.builder()
.shouldNotifyOnPause(false)
.shouldNotifyOnTaskFailure(false)
.shouldNotifyOnTaskSuccess(false)
.build())
.pauseDetails(RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs.builder()
.kind("string")
.durationInMinutes(0)
.build())
.preCondition("string")
.runOn(RunbookRunbookVersionTaskStepPropertiesRunOnArgs.builder()
.kind("string")
.condition("string")
.host("string")
.previousTaskInstanceDetails(RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs.builder()
.outputVariableDetails(RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs.builder()
.outputVariableName("string")
.stepName("string")
.build())
.resourceId("string")
.resourceType("string")
.build())
.build())
.build())
.build())
.isLatest(false)
.rollbackWorkflowDetails(RunbookRunbookVersionRollbackWorkflowDetailsArgs.builder()
.scope("string")
.workflows(RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs.builder()
.groupName("string")
.steps(RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs.builder()
.type("string")
.groupName("string")
.stepName("string")
.steps("string")
.build())
.type("string")
.build())
.build())
.version("string")
.build())
.definedTags(Map.of("string", "string"))
.description("string")
.estimatedTime("string")
.freeformTags(Map.of("string", "string"))
.isDefault(false)
.isSudoAccessNeeded(false)
.osType("string")
.platform("string")
.build());
runbook_resource = oci.fleetappsmanagement.Runbook("runbookResource",
compartment_id="string",
display_name="string",
operation="string",
runbook_version={
"execution_workflow_details": {
"workflows": [{
"group_name": "string",
"steps": [{
"type": "string",
"group_name": "string",
"step_name": "string",
"steps": ["string"],
}],
"type": "string",
}],
},
"groups": [{
"name": "string",
"type": "string",
"properties": {
"action_on_failure": "string",
"notification_preferences": {
"should_notify_on_pause": False,
"should_notify_on_task_failure": False,
"should_notify_on_task_success": False,
},
"pause_details": {
"kind": "string",
"duration_in_minutes": 0,
},
"pre_condition": "string",
"run_on": {
"kind": "string",
"condition": "string",
"host": "string",
"previous_task_instance_details": [{
"output_variable_details": {
"output_variable_name": "string",
"step_name": "string",
},
"resource_id": "string",
"resource_type": "string",
}],
},
},
}],
"tasks": [{
"step_name": "string",
"task_record_details": {
"scope": "string",
"description": "string",
"execution_details": {
"execution_type": "string",
"catalog_id": "string",
"command": "string",
"config_file": "string",
"content": {
"source_type": "string",
"bucket": "string",
"catalog_id": "string",
"checksum": "string",
"namespace": "string",
"object": "string",
},
"credentials": [{
"display_name": "string",
"id": "string",
}],
"endpoint": "string",
"is_executable_content": False,
"is_locked": False,
"is_read_output_variable_enabled": False,
"target_compartment_id": "string",
"variables": {
"input_variables": [{
"description": "string",
"name": "string",
"type": "string",
}],
"output_variables": ["string"],
},
},
"is_apply_subject_task": False,
"is_copy_to_library_enabled": False,
"is_discovery_output_task": False,
"name": "string",
"os_type": "string",
"platform": "string",
"properties": {
"num_retries": 0,
"timeout_in_seconds": 0,
},
"task_record_id": "string",
},
"output_variable_mappings": [{
"name": "string",
"output_variable_details": {
"output_variable_name": "string",
"step_name": "string",
},
}],
"step_properties": {
"action_on_failure": "string",
"notification_preferences": {
"should_notify_on_pause": False,
"should_notify_on_task_failure": False,
"should_notify_on_task_success": False,
},
"pause_details": {
"kind": "string",
"duration_in_minutes": 0,
},
"pre_condition": "string",
"run_on": {
"kind": "string",
"condition": "string",
"host": "string",
"previous_task_instance_details": [{
"output_variable_details": {
"output_variable_name": "string",
"step_name": "string",
},
"resource_id": "string",
"resource_type": "string",
}],
},
},
}],
"is_latest": False,
"rollback_workflow_details": {
"scope": "string",
"workflows": [{
"group_name": "string",
"steps": [{
"type": "string",
"group_name": "string",
"step_name": "string",
"steps": ["string"],
}],
"type": "string",
}],
},
"version": "string",
},
defined_tags={
"string": "string",
},
description="string",
estimated_time="string",
freeform_tags={
"string": "string",
},
is_default=False,
is_sudo_access_needed=False,
os_type="string",
platform="string")
const runbookResource = new oci.fleetappsmanagement.Runbook("runbookResource", {
compartmentId: "string",
displayName: "string",
operation: "string",
runbookVersion: {
executionWorkflowDetails: {
workflows: [{
groupName: "string",
steps: [{
type: "string",
groupName: "string",
stepName: "string",
steps: ["string"],
}],
type: "string",
}],
},
groups: [{
name: "string",
type: "string",
properties: {
actionOnFailure: "string",
notificationPreferences: {
shouldNotifyOnPause: false,
shouldNotifyOnTaskFailure: false,
shouldNotifyOnTaskSuccess: false,
},
pauseDetails: {
kind: "string",
durationInMinutes: 0,
},
preCondition: "string",
runOn: {
kind: "string",
condition: "string",
host: "string",
previousTaskInstanceDetails: [{
outputVariableDetails: {
outputVariableName: "string",
stepName: "string",
},
resourceId: "string",
resourceType: "string",
}],
},
},
}],
tasks: [{
stepName: "string",
taskRecordDetails: {
scope: "string",
description: "string",
executionDetails: {
executionType: "string",
catalogId: "string",
command: "string",
configFile: "string",
content: {
sourceType: "string",
bucket: "string",
catalogId: "string",
checksum: "string",
namespace: "string",
object: "string",
},
credentials: [{
displayName: "string",
id: "string",
}],
endpoint: "string",
isExecutableContent: false,
isLocked: false,
isReadOutputVariableEnabled: false,
targetCompartmentId: "string",
variables: {
inputVariables: [{
description: "string",
name: "string",
type: "string",
}],
outputVariables: ["string"],
},
},
isApplySubjectTask: false,
isCopyToLibraryEnabled: false,
isDiscoveryOutputTask: false,
name: "string",
osType: "string",
platform: "string",
properties: {
numRetries: 0,
timeoutInSeconds: 0,
},
taskRecordId: "string",
},
outputVariableMappings: [{
name: "string",
outputVariableDetails: {
outputVariableName: "string",
stepName: "string",
},
}],
stepProperties: {
actionOnFailure: "string",
notificationPreferences: {
shouldNotifyOnPause: false,
shouldNotifyOnTaskFailure: false,
shouldNotifyOnTaskSuccess: false,
},
pauseDetails: {
kind: "string",
durationInMinutes: 0,
},
preCondition: "string",
runOn: {
kind: "string",
condition: "string",
host: "string",
previousTaskInstanceDetails: [{
outputVariableDetails: {
outputVariableName: "string",
stepName: "string",
},
resourceId: "string",
resourceType: "string",
}],
},
},
}],
isLatest: false,
rollbackWorkflowDetails: {
scope: "string",
workflows: [{
groupName: "string",
steps: [{
type: "string",
groupName: "string",
stepName: "string",
steps: ["string"],
}],
type: "string",
}],
},
version: "string",
},
definedTags: {
string: "string",
},
description: "string",
estimatedTime: "string",
freeformTags: {
string: "string",
},
isDefault: false,
isSudoAccessNeeded: false,
osType: "string",
platform: "string",
});
type: oci:FleetAppsManagement:Runbook
properties:
compartmentId: string
definedTags:
string: string
description: string
displayName: string
estimatedTime: string
freeformTags:
string: string
isDefault: false
isSudoAccessNeeded: false
operation: string
osType: string
platform: string
runbookVersion:
executionWorkflowDetails:
workflows:
- groupName: string
steps:
- groupName: string
stepName: string
steps:
- string
type: string
type: string
groups:
- name: string
properties:
actionOnFailure: string
notificationPreferences:
shouldNotifyOnPause: false
shouldNotifyOnTaskFailure: false
shouldNotifyOnTaskSuccess: false
pauseDetails:
durationInMinutes: 0
kind: string
preCondition: string
runOn:
condition: string
host: string
kind: string
previousTaskInstanceDetails:
- outputVariableDetails:
outputVariableName: string
stepName: string
resourceId: string
resourceType: string
type: string
isLatest: false
rollbackWorkflowDetails:
scope: string
workflows:
- groupName: string
steps:
- groupName: string
stepName: string
steps:
- string
type: string
type: string
tasks:
- outputVariableMappings:
- name: string
outputVariableDetails:
outputVariableName: string
stepName: string
stepName: string
stepProperties:
actionOnFailure: string
notificationPreferences:
shouldNotifyOnPause: false
shouldNotifyOnTaskFailure: false
shouldNotifyOnTaskSuccess: false
pauseDetails:
durationInMinutes: 0
kind: string
preCondition: string
runOn:
condition: string
host: string
kind: string
previousTaskInstanceDetails:
- outputVariableDetails:
outputVariableName: string
stepName: string
resourceId: string
resourceType: string
taskRecordDetails:
description: string
executionDetails:
catalogId: string
command: string
configFile: string
content:
bucket: string
catalogId: string
checksum: string
namespace: string
object: string
sourceType: string
credentials:
- displayName: string
id: string
endpoint: string
executionType: string
isExecutableContent: false
isLocked: false
isReadOutputVariableEnabled: false
targetCompartmentId: string
variables:
inputVariables:
- description: string
name: string
type: string
outputVariables:
- string
isApplySubjectTask: false
isCopyToLibraryEnabled: false
isDiscoveryOutputTask: false
name: string
osType: string
platform: string
properties:
numRetries: 0
timeoutInSeconds: 0
scope: string
taskRecordId: string
version: string
Runbook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Runbook resource accepts the following input properties:
- Compartment
Id string - (Updatable)
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Operation string
- (Updatable) The lifecycle operation performed by the task.
- Runbook
Version RunbookRunbook Version - Version for the runbook.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- Estimated
Time string - (Updatable) Estimated time to successfully complete the runbook execution.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Default bool - (Updatable) Is the runbook default?
- Is
Sudo boolAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- Os
Type string - (Updatable) The OS type for the runbook.
- Platform string
- (Updatable) The platform of the runbook.
- Compartment
Id string - (Updatable)
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Operation string
- (Updatable) The lifecycle operation performed by the task.
- Runbook
Version RunbookRunbook Version Args - Version for the runbook.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- Estimated
Time string - (Updatable) Estimated time to successfully complete the runbook execution.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Default bool - (Updatable) Is the runbook default?
- Is
Sudo boolAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- Os
Type string - (Updatable) The OS type for the runbook.
- Platform string
- (Updatable) The platform of the runbook.
- compartment
Id String - (Updatable)
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- operation String
- (Updatable) The lifecycle operation performed by the task.
- runbook
Version RunbookRunbook Version - Version for the runbook.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- estimated
Time String - (Updatable) Estimated time to successfully complete the runbook execution.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Default Boolean - (Updatable) Is the runbook default?
- is
Sudo BooleanAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- os
Type String - (Updatable) The OS type for the runbook.
- platform String
- (Updatable) The platform of the runbook.
- compartment
Id string - (Updatable)
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- operation string
- (Updatable) The lifecycle operation performed by the task.
- runbook
Version RunbookRunbook Version - Version for the runbook.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- estimated
Time string - (Updatable) Estimated time to successfully complete the runbook execution.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Default boolean - (Updatable) Is the runbook default?
- is
Sudo booleanAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- os
Type string - (Updatable) The OS type for the runbook.
- platform string
- (Updatable) The platform of the runbook.
- compartment_
id str - (Updatable)
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- operation str
- (Updatable) The lifecycle operation performed by the task.
- runbook_
version RunbookRunbook Version Args - Version for the runbook.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- estimated_
time str - (Updatable) Estimated time to successfully complete the runbook execution.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is_
default bool - (Updatable) Is the runbook default?
- is_
sudo_ boolaccess_ needed - (Updatable) Does this runbook need SUDO access to execute?
- os_
type str - (Updatable) The OS type for the runbook.
- platform str
- (Updatable) The platform of the runbook.
- compartment
Id String - (Updatable)
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- operation String
- (Updatable) The lifecycle operation performed by the task.
- runbook
Version Property Map - Version for the runbook.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- estimated
Time String - (Updatable) Estimated time to successfully complete the runbook execution.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Default Boolean - (Updatable) Is the runbook default?
- is
Sudo BooleanAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- os
Type String - (Updatable) The OS type for the runbook.
- platform String
- (Updatable) The platform of the runbook.
Outputs
All input properties are implicitly available as output properties. Additionally, the Runbook resource produces the following output properties:
- Has
Draft boolVersion - Does this runbook has draft versions?
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version string - Latest runbook version
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Resource
Region string - Associated region
- State string
- The current state of the runbook.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- The type of the runbook.
- Has
Draft boolVersion - Does this runbook has draft versions?
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version string - Latest runbook version
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Resource
Region string - Associated region
- State string
- The current state of the runbook.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- The type of the runbook.
- has
Draft BooleanVersion - Does this runbook has draft versions?
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version String - Latest runbook version
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Region String - Associated region
- state String
- The current state of the runbook.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- The type of the runbook.
- has
Draft booleanVersion - Does this runbook has draft versions?
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version string - Latest runbook version
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Region string - Associated region
- state string
- The current state of the runbook.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- type string
- The type of the runbook.
- has_
draft_ boolversion - Does this runbook has draft versions?
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version str - Latest runbook version
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource_
region str - Associated region
- state str
- The current state of the runbook.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time this resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time this resource was last updated. An RFC3339 formatted datetime string.
- type str
- The type of the runbook.
- has
Draft BooleanVersion - Does this runbook has draft versions?
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version String - Latest runbook version
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Region String - Associated region
- state String
- The current state of the runbook.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- The type of the runbook.
Look up Existing Runbook Resource
Get an existing Runbook 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?: RunbookState, opts?: CustomResourceOptions): Runbook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
estimated_time: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
has_draft_version: Optional[bool] = None,
is_default: Optional[bool] = None,
is_sudo_access_needed: Optional[bool] = None,
latest_version: Optional[str] = None,
lifecycle_details: Optional[str] = None,
operation: Optional[str] = None,
os_type: Optional[str] = None,
platform: Optional[str] = None,
resource_region: Optional[str] = None,
runbook_version: Optional[RunbookRunbookVersionArgs] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
type: Optional[str] = None) -> Runbook
func GetRunbook(ctx *Context, name string, id IDInput, state *RunbookState, opts ...ResourceOption) (*Runbook, error)
public static Runbook Get(string name, Input<string> id, RunbookState? state, CustomResourceOptions? opts = null)
public static Runbook get(String name, Output<String> id, RunbookState state, CustomResourceOptions options)
resources: _: type: oci:FleetAppsManagement:Runbook get: id: ${id}
- 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.
- Compartment
Id string - (Updatable)
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Estimated
Time string - (Updatable) Estimated time to successfully complete the runbook execution.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Has
Draft boolVersion - Does this runbook has draft versions?
- Is
Default bool - (Updatable) Is the runbook default?
- Is
Sudo boolAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- Latest
Version string - Latest runbook version
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Operation string
- (Updatable) The lifecycle operation performed by the task.
- Os
Type string - (Updatable) The OS type for the runbook.
- Platform string
- (Updatable) The platform of the runbook.
- Resource
Region string - Associated region
- Runbook
Version RunbookRunbook Version - Version for the runbook.
- State string
- The current state of the runbook.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- The type of the runbook.
- Compartment
Id string - (Updatable)
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Estimated
Time string - (Updatable) Estimated time to successfully complete the runbook execution.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Has
Draft boolVersion - Does this runbook has draft versions?
- Is
Default bool - (Updatable) Is the runbook default?
- Is
Sudo boolAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- Latest
Version string - Latest runbook version
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Operation string
- (Updatable) The lifecycle operation performed by the task.
- Os
Type string - (Updatable) The OS type for the runbook.
- Platform string
- (Updatable) The platform of the runbook.
- Resource
Region string - Associated region
- Runbook
Version RunbookRunbook Version Args - Version for the runbook.
- State string
- The current state of the runbook.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- The type of the runbook.
- compartment
Id String - (Updatable)
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- estimated
Time String - (Updatable) Estimated time to successfully complete the runbook execution.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- has
Draft BooleanVersion - Does this runbook has draft versions?
- is
Default Boolean - (Updatable) Is the runbook default?
- is
Sudo BooleanAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- latest
Version String - Latest runbook version
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- operation String
- (Updatable) The lifecycle operation performed by the task.
- os
Type String - (Updatable) The OS type for the runbook.
- platform String
- (Updatable) The platform of the runbook.
- resource
Region String - Associated region
- runbook
Version RunbookRunbook Version - Version for the runbook.
- state String
- The current state of the runbook.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- The type of the runbook.
- compartment
Id string - (Updatable)
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- estimated
Time string - (Updatable) Estimated time to successfully complete the runbook execution.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- has
Draft booleanVersion - Does this runbook has draft versions?
- is
Default boolean - (Updatable) Is the runbook default?
- is
Sudo booleanAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- latest
Version string - Latest runbook version
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- operation string
- (Updatable) The lifecycle operation performed by the task.
- os
Type string - (Updatable) The OS type for the runbook.
- platform string
- (Updatable) The platform of the runbook.
- resource
Region string - Associated region
- runbook
Version RunbookRunbook Version - Version for the runbook.
- state string
- The current state of the runbook.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- type string
- The type of the runbook.
- compartment_
id str - (Updatable)
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- estimated_
time str - (Updatable) Estimated time to successfully complete the runbook execution.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- has_
draft_ boolversion - Does this runbook has draft versions?
- is_
default bool - (Updatable) Is the runbook default?
- is_
sudo_ boolaccess_ needed - (Updatable) Does this runbook need SUDO access to execute?
- latest_
version str - Latest runbook version
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- operation str
- (Updatable) The lifecycle operation performed by the task.
- os_
type str - (Updatable) The OS type for the runbook.
- platform str
- (Updatable) The platform of the runbook.
- resource_
region str - Associated region
- runbook_
version RunbookRunbook Version Args - Version for the runbook.
- state str
- The current state of the runbook.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time this resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time this resource was last updated. An RFC3339 formatted datetime string.
- type str
- The type of the runbook.
- compartment
Id String - (Updatable)
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- estimated
Time String - (Updatable) Estimated time to successfully complete the runbook execution.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- has
Draft BooleanVersion - Does this runbook has draft versions?
- is
Default Boolean - (Updatable) Is the runbook default?
- is
Sudo BooleanAccess Needed - (Updatable) Does this runbook need SUDO access to execute?
- latest
Version String - Latest runbook version
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- operation String
- (Updatable) The lifecycle operation performed by the task.
- os
Type String - (Updatable) The OS type for the runbook.
- platform String
- (Updatable) The platform of the runbook.
- resource
Region String - Associated region
- runbook
Version Property Map - Version for the runbook.
- state String
- The current state of the runbook.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- The type of the runbook.
Supporting Types
RunbookRunbookVersion, RunbookRunbookVersionArgs
- Execution
Workflow RunbookDetails Runbook Version Execution Workflow Details - Execution Workflow details.
- Groups
List<Runbook
Runbook Version Group> - The groups of the runbook.
- Tasks
List<Runbook
Runbook Version Task> - A set of tasks to execute in the runbook.
- Is
Latest bool - Is this version the latest?
- Rollback
Workflow RunbookDetails Runbook Version Rollback Workflow Details - Rollback Workflow details.
- Version string
The version of the runbook.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Execution
Workflow RunbookDetails Runbook Version Execution Workflow Details - Execution Workflow details.
- Groups
[]Runbook
Runbook Version Group - The groups of the runbook.
- Tasks
[]Runbook
Runbook Version Task - A set of tasks to execute in the runbook.
- Is
Latest bool - Is this version the latest?
- Rollback
Workflow RunbookDetails Runbook Version Rollback Workflow Details - Rollback Workflow details.
- Version string
The version of the runbook.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- execution
Workflow RunbookDetails Runbook Version Execution Workflow Details - Execution Workflow details.
- groups
List<Runbook
Runbook Version Group> - The groups of the runbook.
- tasks
List<Runbook
Runbook Version Task> - A set of tasks to execute in the runbook.
- is
Latest Boolean - Is this version the latest?
- rollback
Workflow RunbookDetails Runbook Version Rollback Workflow Details - Rollback Workflow details.
- version String
The version of the runbook.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- execution
Workflow RunbookDetails Runbook Version Execution Workflow Details - Execution Workflow details.
- groups
Runbook
Runbook Version Group[] - The groups of the runbook.
- tasks
Runbook
Runbook Version Task[] - A set of tasks to execute in the runbook.
- is
Latest boolean - Is this version the latest?
- rollback
Workflow RunbookDetails Runbook Version Rollback Workflow Details - Rollback Workflow details.
- version string
The version of the runbook.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- execution_
workflow_ Runbookdetails Runbook Version Execution Workflow Details - Execution Workflow details.
- groups
Sequence[Runbook
Runbook Version Group] - The groups of the runbook.
- tasks
Sequence[Runbook
Runbook Version Task] - A set of tasks to execute in the runbook.
- is_
latest bool - Is this version the latest?
- rollback_
workflow_ Runbookdetails Runbook Version Rollback Workflow Details - Rollback Workflow details.
- version str
The version of the runbook.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- execution
Workflow Property MapDetails - Execution Workflow details.
- groups List<Property Map>
- The groups of the runbook.
- tasks List<Property Map>
- A set of tasks to execute in the runbook.
- is
Latest Boolean - Is this version the latest?
- rollback
Workflow Property MapDetails - Rollback Workflow details.
- version String
The version of the runbook.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
RunbookRunbookVersionExecutionWorkflowDetails, RunbookRunbookVersionExecutionWorkflowDetailsArgs
- Workflows
List<Runbook
Runbook Version Execution Workflow Details Workflow> - Execution Workflow for the runbook.
- Workflows
[]Runbook
Runbook Version Execution Workflow Details Workflow - Execution Workflow for the runbook.
- workflows
List<Runbook
Runbook Version Execution Workflow Details Workflow> - Execution Workflow for the runbook.
- workflows
Runbook
Runbook Version Execution Workflow Details Workflow[] - Execution Workflow for the runbook.
- workflows
Sequence[Runbook
Runbook Version Execution Workflow Details Workflow] - Execution Workflow for the runbook.
- workflows List<Property Map>
- Execution Workflow for the runbook.
RunbookRunbookVersionExecutionWorkflowDetailsWorkflow, RunbookRunbookVersionExecutionWorkflowDetailsWorkflowArgs
- Group
Name string - Name of the group.
- Steps
List<Runbook
Runbook Version Execution Workflow Details Workflow Step> - Steps within the Group.
- Type string
- Workflow Group Details.
- Group
Name string - Name of the group.
- Steps
[]Runbook
Runbook Version Execution Workflow Details Workflow Step - Steps within the Group.
- Type string
- Workflow Group Details.
- group
Name String - Name of the group.
- steps
List<Runbook
Runbook Version Execution Workflow Details Workflow Step> - Steps within the Group.
- type String
- Workflow Group Details.
- group
Name string - Name of the group.
- steps
Runbook
Runbook Version Execution Workflow Details Workflow Step[] - Steps within the Group.
- type string
- Workflow Group Details.
- group_
name str - Name of the group.
- steps
Sequence[Runbook
Runbook Version Execution Workflow Details Workflow Step] - Steps within the Group.
- type str
- Workflow Group Details.
- group
Name String - Name of the group.
- steps List<Property Map>
- Steps within the Group.
- type String
- Workflow Group Details.
RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStep, RunbookRunbookVersionExecutionWorkflowDetailsWorkflowStepArgs
- type str
- Content Source Details.
- group_
name str - Name of the group.
- step_
name str - Provide StepName for the Task.
- steps Sequence[str]
- Tasks within the Group. Provide the stepName for all applicable tasks.
RunbookRunbookVersionGroup, RunbookRunbookVersionGroupArgs
- Name string
- The name of the group.
- Type string
- The type of the group. PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order.
- Properties
Runbook
Runbook Version Group Properties - The properties of the component.
- Name string
- The name of the group.
- Type string
- The type of the group. PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order.
- Properties
Runbook
Runbook Version Group Properties - The properties of the component.
- name String
- The name of the group.
- type String
- The type of the group. PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order.
- properties
Runbook
Runbook Version Group Properties - The properties of the component.
- name string
- The name of the group.
- type string
- The type of the group. PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order.
- properties
Runbook
Runbook Version Group Properties - The properties of the component.
- name str
- The name of the group.
- type str
- The type of the group. PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order.
- properties
Runbook
Runbook Version Group Properties - The properties of the component.
- name String
- The name of the group.
- type String
- The type of the group. PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order.
- properties Property Map
- The properties of the component.
RunbookRunbookVersionGroupProperties, RunbookRunbookVersionGroupPropertiesArgs
- Action
On stringFailure - The action to be taken in case of a failure.
- Notification
Preferences RunbookRunbook Version Group Properties Notification Preferences - Preferences to send notifications on the task activities.
- Pause
Details RunbookRunbook Version Group Properties Pause Details - Pause Details
- Pre
Condition string - Build control flow conditions that determine the relevance of the task execution.
- Run
On RunbookRunbook Version Group Properties Run On - The runon conditions
- Action
On stringFailure - The action to be taken in case of a failure.
- Notification
Preferences RunbookRunbook Version Group Properties Notification Preferences - Preferences to send notifications on the task activities.
- Pause
Details RunbookRunbook Version Group Properties Pause Details - Pause Details
- Pre
Condition string - Build control flow conditions that determine the relevance of the task execution.
- Run
On RunbookRunbook Version Group Properties Run On - The runon conditions
- action
On StringFailure - The action to be taken in case of a failure.
- notification
Preferences RunbookRunbook Version Group Properties Notification Preferences - Preferences to send notifications on the task activities.
- pause
Details RunbookRunbook Version Group Properties Pause Details - Pause Details
- pre
Condition String - Build control flow conditions that determine the relevance of the task execution.
- run
On RunbookRunbook Version Group Properties Run On - The runon conditions
- action
On stringFailure - The action to be taken in case of a failure.
- notification
Preferences RunbookRunbook Version Group Properties Notification Preferences - Preferences to send notifications on the task activities.
- pause
Details RunbookRunbook Version Group Properties Pause Details - Pause Details
- pre
Condition string - Build control flow conditions that determine the relevance of the task execution.
- run
On RunbookRunbook Version Group Properties Run On - The runon conditions
- action_
on_ strfailure - The action to be taken in case of a failure.
- notification_
preferences RunbookRunbook Version Group Properties Notification Preferences - Preferences to send notifications on the task activities.
- pause_
details RunbookRunbook Version Group Properties Pause Details - Pause Details
- pre_
condition str - Build control flow conditions that determine the relevance of the task execution.
- run_
on RunbookRunbook Version Group Properties Run On - The runon conditions
- action
On StringFailure - The action to be taken in case of a failure.
- notification
Preferences Property Map - Preferences to send notifications on the task activities.
- pause
Details Property Map - Pause Details
- pre
Condition String - Build control flow conditions that determine the relevance of the task execution.
- run
On Property Map - The runon conditions
RunbookRunbookVersionGroupPropertiesNotificationPreferences, RunbookRunbookVersionGroupPropertiesNotificationPreferencesArgs
- Should
Notify boolOn Pause - Enables notification on pause.
- Should
Notify boolOn Task Failure - Enables or disables notification on Task Failures.
- Should
Notify boolOn Task Success - Enables or disables notification on Task Success.
- Should
Notify boolOn Pause - Enables notification on pause.
- Should
Notify boolOn Task Failure - Enables or disables notification on Task Failures.
- Should
Notify boolOn Task Success - Enables or disables notification on Task Success.
- should
Notify BooleanOn Pause - Enables notification on pause.
- should
Notify BooleanOn Task Failure - Enables or disables notification on Task Failures.
- should
Notify BooleanOn Task Success - Enables or disables notification on Task Success.
- should
Notify booleanOn Pause - Enables notification on pause.
- should
Notify booleanOn Task Failure - Enables or disables notification on Task Failures.
- should
Notify booleanOn Task Success - Enables or disables notification on Task Success.
- should_
notify_ boolon_ pause - Enables notification on pause.
- should_
notify_ boolon_ task_ failure - Enables or disables notification on Task Failures.
- should_
notify_ boolon_ task_ success - Enables or disables notification on Task Success.
- should
Notify BooleanOn Pause - Enables notification on pause.
- should
Notify BooleanOn Task Failure - Enables or disables notification on Task Failures.
- should
Notify BooleanOn Task Success - Enables or disables notification on Task Success.
RunbookRunbookVersionGroupPropertiesPauseDetails, RunbookRunbookVersionGroupPropertiesPauseDetailsArgs
- Kind string
- Pause based On.
- Duration
In intMinutes - Time in minutes to apply Pause.
- Kind string
- Pause based On.
- Duration
In intMinutes - Time in minutes to apply Pause.
- kind String
- Pause based On.
- duration
In IntegerMinutes - Time in minutes to apply Pause.
- kind string
- Pause based On.
- duration
In numberMinutes - Time in minutes to apply Pause.
- kind str
- Pause based On.
- duration_
in_ intminutes - Time in minutes to apply Pause.
- kind String
- Pause based On.
- duration
In NumberMinutes - Time in minutes to apply Pause.
RunbookRunbookVersionGroupPropertiesRunOn, RunbookRunbookVersionGroupPropertiesRunOnArgs
- Kind string
- Run on based On.
- Condition string
- Build control flow conditions that determine the relevance of the task execution.
- Host string
- OCID of the self hosted instance.
- Previous
Task List<RunbookInstance Details Runbook Version Group Properties Run On Previous Task Instance Detail> - Previous Task Instance Details
- Kind string
- Run on based On.
- Condition string
- Build control flow conditions that determine the relevance of the task execution.
- Host string
- OCID of the self hosted instance.
- Previous
Task []RunbookInstance Details Runbook Version Group Properties Run On Previous Task Instance Detail - Previous Task Instance Details
- kind String
- Run on based On.
- condition String
- Build control flow conditions that determine the relevance of the task execution.
- host String
- OCID of the self hosted instance.
- previous
Task List<RunbookInstance Details Runbook Version Group Properties Run On Previous Task Instance Detail> - Previous Task Instance Details
- kind string
- Run on based On.
- condition string
- Build control flow conditions that determine the relevance of the task execution.
- host string
- OCID of the self hosted instance.
- previous
Task RunbookInstance Details Runbook Version Group Properties Run On Previous Task Instance Detail[] - Previous Task Instance Details
- kind str
- Run on based On.
- condition str
- Build control flow conditions that determine the relevance of the task execution.
- host str
- OCID of the self hosted instance.
- previous_
task_ Sequence[Runbookinstance_ details Runbook Version Group Properties Run On Previous Task Instance Detail] - Previous Task Instance Details
- kind String
- Run on based On.
- condition String
- Build control flow conditions that determine the relevance of the task execution.
- host String
- OCID of the self hosted instance.
- previous
Task List<Property Map>Instance Details - Previous Task Instance Details
RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetail, RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailArgs
- Output
Variable RunbookDetails Runbook Version Group Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- Resource
Id string - Resource Ocid.
- Resource
Type string - Resource Type.
- Output
Variable RunbookDetails Runbook Version Group Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- Resource
Id string - Resource Ocid.
- Resource
Type string - Resource Type.
- output
Variable RunbookDetails Runbook Version Group Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- resource
Id String - Resource Ocid.
- resource
Type String - Resource Type.
- output
Variable RunbookDetails Runbook Version Group Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- resource
Id string - Resource Ocid.
- resource
Type string - Resource Type.
- output_
variable_ Runbookdetails Runbook Version Group Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- resource_
id str - Resource Ocid.
- resource_
type str - Resource Type.
- output
Variable Property MapDetails - The details of the output variable that will be used for mapping.
- resource
Id String - Resource Ocid.
- resource
Type String - Resource Type.
RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetails, RunbookRunbookVersionGroupPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs
- Output
Variable stringName - The name of the output variable whose value has to be mapped.
- Step
Name string - The name of the task step the output variable belongs to.
- Output
Variable stringName - The name of the output variable whose value has to be mapped.
- Step
Name string - The name of the task step the output variable belongs to.
- output
Variable StringName - The name of the output variable whose value has to be mapped.
- step
Name String - The name of the task step the output variable belongs to.
- output
Variable stringName - The name of the output variable whose value has to be mapped.
- step
Name string - The name of the task step the output variable belongs to.
- output_
variable_ strname - The name of the output variable whose value has to be mapped.
- step_
name str - The name of the task step the output variable belongs to.
- output
Variable StringName - The name of the output variable whose value has to be mapped.
- step
Name String - The name of the task step the output variable belongs to.
RunbookRunbookVersionRollbackWorkflowDetails, RunbookRunbookVersionRollbackWorkflowDetailsArgs
- Scope string
- rollback Scope
- Workflows
List<Runbook
Runbook Version Rollback Workflow Details Workflow> - Rollback Workflow for the runbook.
- Scope string
- rollback Scope
- Workflows
[]Runbook
Runbook Version Rollback Workflow Details Workflow - Rollback Workflow for the runbook.
- scope String
- rollback Scope
- workflows
List<Runbook
Runbook Version Rollback Workflow Details Workflow> - Rollback Workflow for the runbook.
- scope string
- rollback Scope
- workflows
Runbook
Runbook Version Rollback Workflow Details Workflow[] - Rollback Workflow for the runbook.
- scope str
- rollback Scope
- workflows
Sequence[Runbook
Runbook Version Rollback Workflow Details Workflow] - Rollback Workflow for the runbook.
- scope String
- rollback Scope
- workflows List<Property Map>
- Rollback Workflow for the runbook.
RunbookRunbookVersionRollbackWorkflowDetailsWorkflow, RunbookRunbookVersionRollbackWorkflowDetailsWorkflowArgs
- Group
Name string - Name of the group.
- Steps
List<Runbook
Runbook Version Rollback Workflow Details Workflow Step> - Steps within the Group.
- Type string
- Workflow Group Details.
- Group
Name string - Name of the group.
- Steps
[]Runbook
Runbook Version Rollback Workflow Details Workflow Step - Steps within the Group.
- Type string
- Workflow Group Details.
- group
Name String - Name of the group.
- steps
List<Runbook
Runbook Version Rollback Workflow Details Workflow Step> - Steps within the Group.
- type String
- Workflow Group Details.
- group
Name string - Name of the group.
- steps
Runbook
Runbook Version Rollback Workflow Details Workflow Step[] - Steps within the Group.
- type string
- Workflow Group Details.
- group_
name str - Name of the group.
- steps
Sequence[Runbook
Runbook Version Rollback Workflow Details Workflow Step] - Steps within the Group.
- type str
- Workflow Group Details.
- group
Name String - Name of the group.
- steps List<Property Map>
- Steps within the Group.
- type String
- Workflow Group Details.
RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStep, RunbookRunbookVersionRollbackWorkflowDetailsWorkflowStepArgs
- type str
- Content Source Details.
- group_
name str - Name of the group.
- step_
name str - Provide StepName for the Task.
- steps Sequence[str]
- Tasks within the Group. Provide the stepName for all applicable tasks.
RunbookRunbookVersionTask, RunbookRunbookVersionTaskArgs
- Step
Name string - The name of the task step.
- Task
Record RunbookDetails Runbook Version Task Task Record Details - The details of the task.
- Output
Variable List<RunbookMappings Runbook Version Task Output Variable Mapping> - Mapping output variables of previous tasks to the input variables of the current task.
- Step
Properties RunbookRunbook Version Task Step Properties - The properties of the component.
- Step
Name string - The name of the task step.
- Task
Record RunbookDetails Runbook Version Task Task Record Details - The details of the task.
- Output
Variable []RunbookMappings Runbook Version Task Output Variable Mapping - Mapping output variables of previous tasks to the input variables of the current task.
- Step
Properties RunbookRunbook Version Task Step Properties - The properties of the component.
- step
Name String - The name of the task step.
- task
Record RunbookDetails Runbook Version Task Task Record Details - The details of the task.
- output
Variable List<RunbookMappings Runbook Version Task Output Variable Mapping> - Mapping output variables of previous tasks to the input variables of the current task.
- step
Properties RunbookRunbook Version Task Step Properties - The properties of the component.
- step
Name string - The name of the task step.
- task
Record RunbookDetails Runbook Version Task Task Record Details - The details of the task.
- output
Variable RunbookMappings Runbook Version Task Output Variable Mapping[] - Mapping output variables of previous tasks to the input variables of the current task.
- step
Properties RunbookRunbook Version Task Step Properties - The properties of the component.
- step_
name str - The name of the task step.
- task_
record_ Runbookdetails Runbook Version Task Task Record Details - The details of the task.
- output_
variable_ Sequence[Runbookmappings Runbook Version Task Output Variable Mapping] - Mapping output variables of previous tasks to the input variables of the current task.
- step_
properties RunbookRunbook Version Task Step Properties - The properties of the component.
- step
Name String - The name of the task step.
- task
Record Property MapDetails - The details of the task.
- output
Variable List<Property Map>Mappings - Mapping output variables of previous tasks to the input variables of the current task.
- step
Properties Property Map - The properties of the component.
RunbookRunbookVersionTaskOutputVariableMapping, RunbookRunbookVersionTaskOutputVariableMappingArgs
- Name string
- The name of the input variable.
- Output
Variable RunbookDetails Runbook Version Task Output Variable Mapping Output Variable Details - The details of the output variable that will be used for mapping.
- Name string
- The name of the input variable.
- Output
Variable RunbookDetails Runbook Version Task Output Variable Mapping Output Variable Details - The details of the output variable that will be used for mapping.
- name String
- The name of the input variable.
- output
Variable RunbookDetails Runbook Version Task Output Variable Mapping Output Variable Details - The details of the output variable that will be used for mapping.
- name string
- The name of the input variable.
- output
Variable RunbookDetails Runbook Version Task Output Variable Mapping Output Variable Details - The details of the output variable that will be used for mapping.
- name str
- The name of the input variable.
- output_
variable_ Runbookdetails Runbook Version Task Output Variable Mapping Output Variable Details - The details of the output variable that will be used for mapping.
- name String
- The name of the input variable.
- output
Variable Property MapDetails - The details of the output variable that will be used for mapping.
RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetails, RunbookRunbookVersionTaskOutputVariableMappingOutputVariableDetailsArgs
- Output
Variable stringName - The name of the output variable whose value has to be mapped.
- Step
Name string - The name of the task step the output variable belongs to.
- Output
Variable stringName - The name of the output variable whose value has to be mapped.
- Step
Name string - The name of the task step the output variable belongs to.
- output
Variable StringName - The name of the output variable whose value has to be mapped.
- step
Name String - The name of the task step the output variable belongs to.
- output
Variable stringName - The name of the output variable whose value has to be mapped.
- step
Name string - The name of the task step the output variable belongs to.
- output_
variable_ strname - The name of the output variable whose value has to be mapped.
- step_
name str - The name of the task step the output variable belongs to.
- output
Variable StringName - The name of the output variable whose value has to be mapped.
- step
Name String - The name of the task step the output variable belongs to.
RunbookRunbookVersionTaskStepProperties, RunbookRunbookVersionTaskStepPropertiesArgs
- Action
On stringFailure - The action to be taken in case of a failure.
- Notification
Preferences RunbookRunbook Version Task Step Properties Notification Preferences - Preferences to send notifications on the task activities.
- Pause
Details RunbookRunbook Version Task Step Properties Pause Details - Pause Details
- Pre
Condition string - Build control flow conditions that determine the relevance of the task execution.
- Run
On RunbookRunbook Version Task Step Properties Run On - The runon conditions
- Action
On stringFailure - The action to be taken in case of a failure.
- Notification
Preferences RunbookRunbook Version Task Step Properties Notification Preferences - Preferences to send notifications on the task activities.
- Pause
Details RunbookRunbook Version Task Step Properties Pause Details - Pause Details
- Pre
Condition string - Build control flow conditions that determine the relevance of the task execution.
- Run
On RunbookRunbook Version Task Step Properties Run On - The runon conditions
- action
On StringFailure - The action to be taken in case of a failure.
- notification
Preferences RunbookRunbook Version Task Step Properties Notification Preferences - Preferences to send notifications on the task activities.
- pause
Details RunbookRunbook Version Task Step Properties Pause Details - Pause Details
- pre
Condition String - Build control flow conditions that determine the relevance of the task execution.
- run
On RunbookRunbook Version Task Step Properties Run On - The runon conditions
- action
On stringFailure - The action to be taken in case of a failure.
- notification
Preferences RunbookRunbook Version Task Step Properties Notification Preferences - Preferences to send notifications on the task activities.
- pause
Details RunbookRunbook Version Task Step Properties Pause Details - Pause Details
- pre
Condition string - Build control flow conditions that determine the relevance of the task execution.
- run
On RunbookRunbook Version Task Step Properties Run On - The runon conditions
- action_
on_ strfailure - The action to be taken in case of a failure.
- notification_
preferences RunbookRunbook Version Task Step Properties Notification Preferences - Preferences to send notifications on the task activities.
- pause_
details RunbookRunbook Version Task Step Properties Pause Details - Pause Details
- pre_
condition str - Build control flow conditions that determine the relevance of the task execution.
- run_
on RunbookRunbook Version Task Step Properties Run On - The runon conditions
- action
On StringFailure - The action to be taken in case of a failure.
- notification
Preferences Property Map - Preferences to send notifications on the task activities.
- pause
Details Property Map - Pause Details
- pre
Condition String - Build control flow conditions that determine the relevance of the task execution.
- run
On Property Map - The runon conditions
RunbookRunbookVersionTaskStepPropertiesNotificationPreferences, RunbookRunbookVersionTaskStepPropertiesNotificationPreferencesArgs
- Should
Notify boolOn Pause - Enables notification on pause.
- Should
Notify boolOn Task Failure - Enables or disables notification on Task Failures.
- Should
Notify boolOn Task Success - Enables or disables notification on Task Success.
- Should
Notify boolOn Pause - Enables notification on pause.
- Should
Notify boolOn Task Failure - Enables or disables notification on Task Failures.
- Should
Notify boolOn Task Success - Enables or disables notification on Task Success.
- should
Notify BooleanOn Pause - Enables notification on pause.
- should
Notify BooleanOn Task Failure - Enables or disables notification on Task Failures.
- should
Notify BooleanOn Task Success - Enables or disables notification on Task Success.
- should
Notify booleanOn Pause - Enables notification on pause.
- should
Notify booleanOn Task Failure - Enables or disables notification on Task Failures.
- should
Notify booleanOn Task Success - Enables or disables notification on Task Success.
- should_
notify_ boolon_ pause - Enables notification on pause.
- should_
notify_ boolon_ task_ failure - Enables or disables notification on Task Failures.
- should_
notify_ boolon_ task_ success - Enables or disables notification on Task Success.
- should
Notify BooleanOn Pause - Enables notification on pause.
- should
Notify BooleanOn Task Failure - Enables or disables notification on Task Failures.
- should
Notify BooleanOn Task Success - Enables or disables notification on Task Success.
RunbookRunbookVersionTaskStepPropertiesPauseDetails, RunbookRunbookVersionTaskStepPropertiesPauseDetailsArgs
- Kind string
- Pause based On.
- Duration
In intMinutes - Time in minutes to apply Pause.
- Kind string
- Pause based On.
- Duration
In intMinutes - Time in minutes to apply Pause.
- kind String
- Pause based On.
- duration
In IntegerMinutes - Time in minutes to apply Pause.
- kind string
- Pause based On.
- duration
In numberMinutes - Time in minutes to apply Pause.
- kind str
- Pause based On.
- duration_
in_ intminutes - Time in minutes to apply Pause.
- kind String
- Pause based On.
- duration
In NumberMinutes - Time in minutes to apply Pause.
RunbookRunbookVersionTaskStepPropertiesRunOn, RunbookRunbookVersionTaskStepPropertiesRunOnArgs
- Kind string
- Run on based On.
- Condition string
- Build control flow conditions that determine the relevance of the task execution.
- Host string
- OCID of the self hosted instance.
- Previous
Task List<RunbookInstance Details Runbook Version Task Step Properties Run On Previous Task Instance Detail> - Previous Task Instance Details
- Kind string
- Run on based On.
- Condition string
- Build control flow conditions that determine the relevance of the task execution.
- Host string
- OCID of the self hosted instance.
- Previous
Task []RunbookInstance Details Runbook Version Task Step Properties Run On Previous Task Instance Detail - Previous Task Instance Details
- kind String
- Run on based On.
- condition String
- Build control flow conditions that determine the relevance of the task execution.
- host String
- OCID of the self hosted instance.
- previous
Task List<RunbookInstance Details Runbook Version Task Step Properties Run On Previous Task Instance Detail> - Previous Task Instance Details
- kind string
- Run on based On.
- condition string
- Build control flow conditions that determine the relevance of the task execution.
- host string
- OCID of the self hosted instance.
- previous
Task RunbookInstance Details Runbook Version Task Step Properties Run On Previous Task Instance Detail[] - Previous Task Instance Details
- kind str
- Run on based On.
- condition str
- Build control flow conditions that determine the relevance of the task execution.
- host str
- OCID of the self hosted instance.
- previous_
task_ Sequence[Runbookinstance_ details Runbook Version Task Step Properties Run On Previous Task Instance Detail] - Previous Task Instance Details
- kind String
- Run on based On.
- condition String
- Build control flow conditions that determine the relevance of the task execution.
- host String
- OCID of the self hosted instance.
- previous
Task List<Property Map>Instance Details - Previous Task Instance Details
RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetail, RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailArgs
- Output
Variable RunbookDetails Runbook Version Task Step Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- Resource
Id string - Resource Ocid.
- Resource
Type string - Resource Type.
- Output
Variable RunbookDetails Runbook Version Task Step Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- Resource
Id string - Resource Ocid.
- Resource
Type string - Resource Type.
- output
Variable RunbookDetails Runbook Version Task Step Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- resource
Id String - Resource Ocid.
- resource
Type String - Resource Type.
- output
Variable RunbookDetails Runbook Version Task Step Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- resource
Id string - Resource Ocid.
- resource
Type string - Resource Type.
- output_
variable_ Runbookdetails Runbook Version Task Step Properties Run On Previous Task Instance Detail Output Variable Details - The details of the output variable that will be used for mapping.
- resource_
id str - Resource Ocid.
- resource_
type str - Resource Type.
- output
Variable Property MapDetails - The details of the output variable that will be used for mapping.
- resource
Id String - Resource Ocid.
- resource
Type String - Resource Type.
RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetails, RunbookRunbookVersionTaskStepPropertiesRunOnPreviousTaskInstanceDetailOutputVariableDetailsArgs
- Output
Variable stringName - The name of the output variable whose value has to be mapped.
- Step
Name string - The name of the task step the output variable belongs to.
- Output
Variable stringName - The name of the output variable whose value has to be mapped.
- Step
Name string - The name of the task step the output variable belongs to.
- output
Variable StringName - The name of the output variable whose value has to be mapped.
- step
Name String - The name of the task step the output variable belongs to.
- output
Variable stringName - The name of the output variable whose value has to be mapped.
- step
Name string - The name of the task step the output variable belongs to.
- output_
variable_ strname - The name of the output variable whose value has to be mapped.
- step_
name str - The name of the task step the output variable belongs to.
- output
Variable StringName - The name of the output variable whose value has to be mapped.
- step
Name String - The name of the task step the output variable belongs to.
RunbookRunbookVersionTaskTaskRecordDetails, RunbookRunbookVersionTaskTaskRecordDetailsArgs
- Scope string
- The scope of the task.
- Description string
- The description of the task.
- Execution
Details RunbookRunbook Version Task Task Record Details Execution Details - Execution details.
- Is
Apply boolSubject Task - Is this an Apply Subject Task? Ex. Patch Execution Task
- Is
Copy boolTo Library Enabled - Make a copy of this task in Library
- Is
Discovery boolOutput Task - Is this a discovery output task?
- Name string
- The name of the task
- Os
Type string - The OS for the task.
- Platform string
- The platform of the runbook.
- Properties
Runbook
Runbook Version Task Task Record Details Properties - The properties of the task.
- Task
Record stringId - The ID of taskRecord.
- Scope string
- The scope of the task.
- Description string
- The description of the task.
- Execution
Details RunbookRunbook Version Task Task Record Details Execution Details - Execution details.
- Is
Apply boolSubject Task - Is this an Apply Subject Task? Ex. Patch Execution Task
- Is
Copy boolTo Library Enabled - Make a copy of this task in Library
- Is
Discovery boolOutput Task - Is this a discovery output task?
- Name string
- The name of the task
- Os
Type string - The OS for the task.
- Platform string
- The platform of the runbook.
- Properties
Runbook
Runbook Version Task Task Record Details Properties - The properties of the task.
- Task
Record stringId - The ID of taskRecord.
- scope String
- The scope of the task.
- description String
- The description of the task.
- execution
Details RunbookRunbook Version Task Task Record Details Execution Details - Execution details.
- is
Apply BooleanSubject Task - Is this an Apply Subject Task? Ex. Patch Execution Task
- is
Copy BooleanTo Library Enabled - Make a copy of this task in Library
- is
Discovery BooleanOutput Task - Is this a discovery output task?
- name String
- The name of the task
- os
Type String - The OS for the task.
- platform String
- The platform of the runbook.
- properties
Runbook
Runbook Version Task Task Record Details Properties - The properties of the task.
- task
Record StringId - The ID of taskRecord.
- scope string
- The scope of the task.
- description string
- The description of the task.
- execution
Details RunbookRunbook Version Task Task Record Details Execution Details - Execution details.
- is
Apply booleanSubject Task - Is this an Apply Subject Task? Ex. Patch Execution Task
- is
Copy booleanTo Library Enabled - Make a copy of this task in Library
- is
Discovery booleanOutput Task - Is this a discovery output task?
- name string
- The name of the task
- os
Type string - The OS for the task.
- platform string
- The platform of the runbook.
- properties
Runbook
Runbook Version Task Task Record Details Properties - The properties of the task.
- task
Record stringId - The ID of taskRecord.
- scope str
- The scope of the task.
- description str
- The description of the task.
- execution_
details RunbookRunbook Version Task Task Record Details Execution Details - Execution details.
- is_
apply_ boolsubject_ task - Is this an Apply Subject Task? Ex. Patch Execution Task
- is_
copy_ boolto_ library_ enabled - Make a copy of this task in Library
- is_
discovery_ booloutput_ task - Is this a discovery output task?
- name str
- The name of the task
- os_
type str - The OS for the task.
- platform str
- The platform of the runbook.
- properties
Runbook
Runbook Version Task Task Record Details Properties - The properties of the task.
- task_
record_ strid - The ID of taskRecord.
- scope String
- The scope of the task.
- description String
- The description of the task.
- execution
Details Property Map - Execution details.
- is
Apply BooleanSubject Task - Is this an Apply Subject Task? Ex. Patch Execution Task
- is
Copy BooleanTo Library Enabled - Make a copy of this task in Library
- is
Discovery BooleanOutput Task - Is this a discovery output task?
- name String
- The name of the task
- os
Type String - The OS for the task.
- platform String
- The platform of the runbook.
- properties Property Map
- The properties of the task.
- task
Record StringId - The ID of taskRecord.
RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetails, RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsArgs
- Execution
Type string - The action type of the task
- Catalog
Id string - Command string
- Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
- Config
File string - Catalog Id having config file.
- Content
Runbook
Runbook Version Task Task Record Details Execution Details Content - Content Source details.
- Credentials
List<Runbook
Runbook Version Task Task Record Details Execution Details Credential> - Credentials required for executing the task.
- Endpoint string
- Endpoint to be invoked.
- Is
Executable boolContent - Is the Content an executable file?
- Is
Locked bool - Is the script locked to prevent changes directly in Object Storage?
- Is
Read boolOutput Variable Enabled - Is read output variable enabled
- Target
Compartment stringId - OCID of the compartment to which the resource belongs to.
- Variables
Runbook
Runbook Version Task Task Record Details Execution Details Variables - The variable of the task. At least one of the dynamicArguments or output needs to be provided.
- Execution
Type string - The action type of the task
- Catalog
Id string - Command string
- Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
- Config
File string - Catalog Id having config file.
- Content
Runbook
Runbook Version Task Task Record Details Execution Details Content - Content Source details.
- Credentials
[]Runbook
Runbook Version Task Task Record Details Execution Details Credential - Credentials required for executing the task.
- Endpoint string
- Endpoint to be invoked.
- Is
Executable boolContent - Is the Content an executable file?
- Is
Locked bool - Is the script locked to prevent changes directly in Object Storage?
- Is
Read boolOutput Variable Enabled - Is read output variable enabled
- Target
Compartment stringId - OCID of the compartment to which the resource belongs to.
- Variables
Runbook
Runbook Version Task Task Record Details Execution Details Variables - The variable of the task. At least one of the dynamicArguments or output needs to be provided.
- execution
Type String - The action type of the task
- catalog
Id String - command String
- Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
- config
File String - Catalog Id having config file.
- content
Runbook
Runbook Version Task Task Record Details Execution Details Content - Content Source details.
- credentials
List<Runbook
Runbook Version Task Task Record Details Execution Details Credential> - Credentials required for executing the task.
- endpoint String
- Endpoint to be invoked.
- is
Executable BooleanContent - Is the Content an executable file?
- is
Locked Boolean - Is the script locked to prevent changes directly in Object Storage?
- is
Read BooleanOutput Variable Enabled - Is read output variable enabled
- target
Compartment StringId - OCID of the compartment to which the resource belongs to.
- variables
Runbook
Runbook Version Task Task Record Details Execution Details Variables - The variable of the task. At least one of the dynamicArguments or output needs to be provided.
- execution
Type string - The action type of the task
- catalog
Id string - command string
- Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
- config
File string - Catalog Id having config file.
- content
Runbook
Runbook Version Task Task Record Details Execution Details Content - Content Source details.
- credentials
Runbook
Runbook Version Task Task Record Details Execution Details Credential[] - Credentials required for executing the task.
- endpoint string
- Endpoint to be invoked.
- is
Executable booleanContent - Is the Content an executable file?
- is
Locked boolean - Is the script locked to prevent changes directly in Object Storage?
- is
Read booleanOutput Variable Enabled - Is read output variable enabled
- target
Compartment stringId - OCID of the compartment to which the resource belongs to.
- variables
Runbook
Runbook Version Task Task Record Details Execution Details Variables - The variable of the task. At least one of the dynamicArguments or output needs to be provided.
- execution_
type str - The action type of the task
- catalog_
id str - command str
- Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
- config_
file str - Catalog Id having config file.
- content
Runbook
Runbook Version Task Task Record Details Execution Details Content - Content Source details.
- credentials
Sequence[Runbook
Runbook Version Task Task Record Details Execution Details Credential] - Credentials required for executing the task.
- endpoint str
- Endpoint to be invoked.
- is_
executable_ boolcontent - Is the Content an executable file?
- is_
locked bool - Is the script locked to prevent changes directly in Object Storage?
- is_
read_ booloutput_ variable_ enabled - Is read output variable enabled
- target_
compartment_ strid - OCID of the compartment to which the resource belongs to.
- variables
Runbook
Runbook Version Task Task Record Details Execution Details Variables - The variable of the task. At least one of the dynamicArguments or output needs to be provided.
- execution
Type String - The action type of the task
- catalog
Id String - command String
- Optional command to execute the content. You can provide any commands/arguments that can't be part of the script.
- config
File String - Catalog Id having config file.
- content Property Map
- Content Source details.
- credentials List<Property Map>
- Credentials required for executing the task.
- endpoint String
- Endpoint to be invoked.
- is
Executable BooleanContent - Is the Content an executable file?
- is
Locked Boolean - Is the script locked to prevent changes directly in Object Storage?
- is
Read BooleanOutput Variable Enabled - Is read output variable enabled
- target
Compartment StringId - OCID of the compartment to which the resource belongs to.
- variables Property Map
- The variable of the task. At least one of the dynamicArguments or output needs to be provided.
RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContent, RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsContentArgs
- source_
type str - Content Source type details.
- bucket str
- Bucket Name.
- catalog_
id str - checksum str
- md5 checksum of the artifact.
- namespace str
- Namespace.
- object str
- Object Name.
RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredential, RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsCredentialArgs
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Id string
- The OCID of the resource.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Id string
- The OCID of the resource.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id String
- The OCID of the resource.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id string
- The OCID of the resource.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id str
- The OCID of the resource.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id String
- The OCID of the resource.
RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariables, RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesArgs
- Input
Variables List<RunbookRunbook Version Task Task Record Details Execution Details Variables Input Variable> - The input variables for the task.
- Output
Variables List<string> - The list of output variables.
- Input
Variables []RunbookRunbook Version Task Task Record Details Execution Details Variables Input Variable - The input variables for the task.
- Output
Variables []string - The list of output variables.
- input
Variables List<RunbookRunbook Version Task Task Record Details Execution Details Variables Input Variable> - The input variables for the task.
- output
Variables List<String> - The list of output variables.
- input
Variables RunbookRunbook Version Task Task Record Details Execution Details Variables Input Variable[] - The input variables for the task.
- output
Variables string[] - The list of output variables.
- input_
variables Sequence[RunbookRunbook Version Task Task Record Details Execution Details Variables Input Variable] - The input variables for the task.
- output_
variables Sequence[str] - The list of output variables.
- input
Variables List<Property Map> - The input variables for the task.
- output
Variables List<String> - The list of output variables.
RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariable, RunbookRunbookVersionTaskTaskRecordDetailsExecutionDetailsVariablesInputVariableArgs
- Description string
- The description of the argument.
- Name string
- The name of the argument.
- Type string
- Input argument Type.
- Description string
- The description of the argument.
- Name string
- The name of the argument.
- Type string
- Input argument Type.
- description String
- The description of the argument.
- name String
- The name of the argument.
- type String
- Input argument Type.
- description string
- The description of the argument.
- name string
- The name of the argument.
- type string
- Input argument Type.
- description str
- The description of the argument.
- name str
- The name of the argument.
- type str
- Input argument Type.
- description String
- The description of the argument.
- name String
- The name of the argument.
- type String
- Input argument Type.
RunbookRunbookVersionTaskTaskRecordDetailsProperties, RunbookRunbookVersionTaskTaskRecordDetailsPropertiesArgs
- Num
Retries int - The number of retries allowed.
- Timeout
In intSeconds - The timeout in seconds for the task.
- Num
Retries int - The number of retries allowed.
- Timeout
In intSeconds - The timeout in seconds for the task.
- num
Retries Integer - The number of retries allowed.
- timeout
In IntegerSeconds - The timeout in seconds for the task.
- num
Retries number - The number of retries allowed.
- timeout
In numberSeconds - The timeout in seconds for the task.
- num_
retries int - The number of retries allowed.
- timeout_
in_ intseconds - The timeout in seconds for the task.
- num
Retries Number - The number of retries allowed.
- timeout
In NumberSeconds - The timeout in seconds for the task.
Import
Runbooks can be imported using the id
, e.g.
$ pulumi import oci:FleetAppsManagement/runbook:Runbook test_runbook "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.