oci.Core.InstanceMaintenanceEvent
This resource provides the Instance Maintenance Event resource in Oracle Cloud Infrastructure Core service.
Updates the maintenance event for the given instance.
Create InstanceMaintenanceEvent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceMaintenanceEvent(name: string, args: InstanceMaintenanceEventArgs, opts?: CustomResourceOptions);@overload
def InstanceMaintenanceEvent(resource_name: str,
                             args: InstanceMaintenanceEventArgs,
                             opts: Optional[ResourceOptions] = None)
@overload
def InstanceMaintenanceEvent(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             instance_maintenance_event_id: Optional[str] = None,
                             alternative_resolution_action: Optional[str] = None,
                             can_delete_local_storage: Optional[bool] = None,
                             defined_tags: Optional[Mapping[str, str]] = None,
                             display_name: Optional[str] = None,
                             freeform_tags: Optional[Mapping[str, str]] = None,
                             time_window_start: Optional[str] = None)func NewInstanceMaintenanceEvent(ctx *Context, name string, args InstanceMaintenanceEventArgs, opts ...ResourceOption) (*InstanceMaintenanceEvent, error)public InstanceMaintenanceEvent(string name, InstanceMaintenanceEventArgs args, CustomResourceOptions? opts = null)
public InstanceMaintenanceEvent(String name, InstanceMaintenanceEventArgs args)
public InstanceMaintenanceEvent(String name, InstanceMaintenanceEventArgs args, CustomResourceOptions options)
type: oci:Core:InstanceMaintenanceEvent
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 InstanceMaintenanceEventArgs
- 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 InstanceMaintenanceEventArgs
- 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 InstanceMaintenanceEventArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceMaintenanceEventArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceMaintenanceEventArgs
- 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 instanceMaintenanceEventResource = new Oci.Core.InstanceMaintenanceEvent("instanceMaintenanceEventResource", new()
{
    InstanceMaintenanceEventId = "string",
    AlternativeResolutionAction = "string",
    CanDeleteLocalStorage = false,
    DefinedTags = 
    {
        { "string", "string" },
    },
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    TimeWindowStart = "string",
});
example, err := core.NewInstanceMaintenanceEvent(ctx, "instanceMaintenanceEventResource", &core.InstanceMaintenanceEventArgs{
	InstanceMaintenanceEventId:  pulumi.String("string"),
	AlternativeResolutionAction: pulumi.String("string"),
	CanDeleteLocalStorage:       pulumi.Bool(false),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TimeWindowStart: pulumi.String("string"),
})
var instanceMaintenanceEventResource = new InstanceMaintenanceEvent("instanceMaintenanceEventResource", InstanceMaintenanceEventArgs.builder()
    .instanceMaintenanceEventId("string")
    .alternativeResolutionAction("string")
    .canDeleteLocalStorage(false)
    .definedTags(Map.of("string", "string"))
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .timeWindowStart("string")
    .build());
instance_maintenance_event_resource = oci.core.InstanceMaintenanceEvent("instanceMaintenanceEventResource",
    instance_maintenance_event_id="string",
    alternative_resolution_action="string",
    can_delete_local_storage=False,
    defined_tags={
        "string": "string",
    },
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    time_window_start="string")
const instanceMaintenanceEventResource = new oci.core.InstanceMaintenanceEvent("instanceMaintenanceEventResource", {
    instanceMaintenanceEventId: "string",
    alternativeResolutionAction: "string",
    canDeleteLocalStorage: false,
    definedTags: {
        string: "string",
    },
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    timeWindowStart: "string",
});
type: oci:Core:InstanceMaintenanceEvent
properties:
    alternativeResolutionAction: string
    canDeleteLocalStorage: false
    definedTags:
        string: string
    displayName: string
    freeformTags:
        string: string
    instanceMaintenanceEventId: string
    timeWindowStart: string
InstanceMaintenanceEvent 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 InstanceMaintenanceEvent resource accepts the following input properties:
- InstanceMaintenance stringEvent Id 
- The OCID of the instance maintenance event.
- AlternativeResolution stringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- CanDelete boolLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- TimeWindow stringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- InstanceMaintenance stringEvent Id 
- The OCID of the instance maintenance event.
- AlternativeResolution stringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- CanDelete boolLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- TimeWindow stringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- instanceMaintenance StringEvent Id 
- The OCID of the instance maintenance event.
- alternativeResolution StringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- canDelete BooleanLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- timeWindow StringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- instanceMaintenance stringEvent Id 
- The OCID of the instance maintenance event.
- alternativeResolution stringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- canDelete booleanLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- timeWindow stringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- instance_maintenance_ strevent_ id 
- The OCID of the instance maintenance event.
- alternative_resolution_ straction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- can_delete_ boollocal_ storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- display_name str
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- time_window_ strstart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- instanceMaintenance StringEvent Id 
- The OCID of the instance maintenance event.
- alternativeResolution StringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- canDelete BooleanLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- timeWindow StringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceMaintenanceEvent resource produces the following output properties:
- AdditionalDetails Dictionary<string, string>
- Additional details of the maintenance in the form of json.
- AlternativeResolution List<string>Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- CanReschedule bool
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- CompartmentId string
- The OCID of the compartment that contains the instance.
- CorrelationToken string
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- CreatedBy string
- The creator of the maintenance event.
- Description string
- It is the descriptive information about the maintenance taking place on the customer instance.
- EstimatedDuration string
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceAction string
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- InstanceId string
- The OCID of the instance.
- MaintenanceCategory string
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- MaintenanceReason string
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- StartWindow stringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- State string
- The current state of the maintenance event.
- TimeCreated string
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TimeFinished string
- The time at which the Maintenance actually finished.
- TimeHard stringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- TimeStarted string
- The time at which the Maintenance actually started.
- AdditionalDetails map[string]string
- Additional details of the maintenance in the form of json.
- AlternativeResolution []stringActions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- CanReschedule bool
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- CompartmentId string
- The OCID of the compartment that contains the instance.
- CorrelationToken string
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- CreatedBy string
- The creator of the maintenance event.
- Description string
- It is the descriptive information about the maintenance taking place on the customer instance.
- EstimatedDuration string
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceAction string
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- InstanceId string
- The OCID of the instance.
- MaintenanceCategory string
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- MaintenanceReason string
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- StartWindow stringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- State string
- The current state of the maintenance event.
- TimeCreated string
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TimeFinished string
- The time at which the Maintenance actually finished.
- TimeHard stringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- TimeStarted string
- The time at which the Maintenance actually started.
- additionalDetails Map<String,String>
- Additional details of the maintenance in the form of json.
- alternativeResolution List<String>Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- canReschedule Boolean
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartmentId String
- The OCID of the compartment that contains the instance.
- correlationToken String
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- createdBy String
- The creator of the maintenance event.
- description String
- It is the descriptive information about the maintenance taking place on the customer instance.
- estimatedDuration String
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceAction String
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instanceId String
- The OCID of the instance.
- maintenanceCategory String
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenanceReason String
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- startWindow StringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- state String
- The current state of the maintenance event.
- timeCreated String
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeFinished String
- The time at which the Maintenance actually finished.
- timeHard StringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- timeStarted String
- The time at which the Maintenance actually started.
- additionalDetails {[key: string]: string}
- Additional details of the maintenance in the form of json.
- alternativeResolution string[]Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- canReschedule boolean
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartmentId string
- The OCID of the compartment that contains the instance.
- correlationToken string
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- createdBy string
- The creator of the maintenance event.
- description string
- It is the descriptive information about the maintenance taking place on the customer instance.
- estimatedDuration string
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- id string
- The provider-assigned unique ID for this managed resource.
- instanceAction string
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instanceId string
- The OCID of the instance.
- maintenanceCategory string
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenanceReason string
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- startWindow stringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- state string
- The current state of the maintenance event.
- timeCreated string
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeFinished string
- The time at which the Maintenance actually finished.
- timeHard stringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- timeStarted string
- The time at which the Maintenance actually started.
- additional_details Mapping[str, str]
- Additional details of the maintenance in the form of json.
- alternative_resolution_ Sequence[str]actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- can_reschedule bool
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartment_id str
- The OCID of the compartment that contains the instance.
- correlation_token str
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- created_by str
- The creator of the maintenance event.
- description str
- It is the descriptive information about the maintenance taking place on the customer instance.
- estimated_duration str
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_action str
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instance_id str
- The OCID of the instance.
- maintenance_category str
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenance_reason str
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- start_window_ strduration 
- The duration of the time window Maintenance is scheduled to begin within.
- state str
- The current state of the maintenance event.
- time_created str
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- time_finished str
- The time at which the Maintenance actually finished.
- time_hard_ strdue_ date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- time_started str
- The time at which the Maintenance actually started.
- additionalDetails Map<String>
- Additional details of the maintenance in the form of json.
- alternativeResolution List<String>Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- canReschedule Boolean
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartmentId String
- The OCID of the compartment that contains the instance.
- correlationToken String
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- createdBy String
- The creator of the maintenance event.
- description String
- It is the descriptive information about the maintenance taking place on the customer instance.
- estimatedDuration String
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceAction String
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instanceId String
- The OCID of the instance.
- maintenanceCategory String
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenanceReason String
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- startWindow StringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- state String
- The current state of the maintenance event.
- timeCreated String
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeFinished String
- The time at which the Maintenance actually finished.
- timeHard StringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- timeStarted String
- The time at which the Maintenance actually started.
Look up Existing InstanceMaintenanceEvent Resource
Get an existing InstanceMaintenanceEvent 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?: InstanceMaintenanceEventState, opts?: CustomResourceOptions): InstanceMaintenanceEvent@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        additional_details: Optional[Mapping[str, str]] = None,
        alternative_resolution_action: Optional[str] = None,
        alternative_resolution_actions: Optional[Sequence[str]] = None,
        can_delete_local_storage: Optional[bool] = None,
        can_reschedule: Optional[bool] = None,
        compartment_id: Optional[str] = None,
        correlation_token: Optional[str] = None,
        created_by: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        estimated_duration: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        instance_action: Optional[str] = None,
        instance_id: Optional[str] = None,
        instance_maintenance_event_id: Optional[str] = None,
        maintenance_category: Optional[str] = None,
        maintenance_reason: Optional[str] = None,
        start_window_duration: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_finished: Optional[str] = None,
        time_hard_due_date: Optional[str] = None,
        time_started: Optional[str] = None,
        time_window_start: Optional[str] = None) -> InstanceMaintenanceEventfunc GetInstanceMaintenanceEvent(ctx *Context, name string, id IDInput, state *InstanceMaintenanceEventState, opts ...ResourceOption) (*InstanceMaintenanceEvent, error)public static InstanceMaintenanceEvent Get(string name, Input<string> id, InstanceMaintenanceEventState? state, CustomResourceOptions? opts = null)public static InstanceMaintenanceEvent get(String name, Output<String> id, InstanceMaintenanceEventState state, CustomResourceOptions options)resources:  _:    type: oci:Core:InstanceMaintenanceEvent    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.
- AdditionalDetails Dictionary<string, string>
- Additional details of the maintenance in the form of json.
- AlternativeResolution stringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- AlternativeResolution List<string>Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- CanDelete boolLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- CanReschedule bool
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- CompartmentId string
- The OCID of the compartment that contains the instance.
- CorrelationToken string
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- CreatedBy string
- The creator of the maintenance event.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- It is the descriptive information about the maintenance taking place on the customer instance.
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- EstimatedDuration string
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- InstanceAction string
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- InstanceId string
- The OCID of the instance.
- InstanceMaintenance stringEvent Id 
- The OCID of the instance maintenance event.
- MaintenanceCategory string
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- MaintenanceReason string
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- StartWindow stringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- State string
- The current state of the maintenance event.
- TimeCreated string
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TimeFinished string
- The time at which the Maintenance actually finished.
- TimeHard stringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- TimeStarted string
- The time at which the Maintenance actually started.
- TimeWindow stringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- AdditionalDetails map[string]string
- Additional details of the maintenance in the form of json.
- AlternativeResolution stringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- AlternativeResolution []stringActions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- CanDelete boolLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- CanReschedule bool
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- CompartmentId string
- The OCID of the compartment that contains the instance.
- CorrelationToken string
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- CreatedBy string
- The creator of the maintenance event.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- It is the descriptive information about the maintenance taking place on the customer instance.
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- EstimatedDuration string
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- InstanceAction string
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- InstanceId string
- The OCID of the instance.
- InstanceMaintenance stringEvent Id 
- The OCID of the instance maintenance event.
- MaintenanceCategory string
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- MaintenanceReason string
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- StartWindow stringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- State string
- The current state of the maintenance event.
- TimeCreated string
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TimeFinished string
- The time at which the Maintenance actually finished.
- TimeHard stringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- TimeStarted string
- The time at which the Maintenance actually started.
- TimeWindow stringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- additionalDetails Map<String,String>
- Additional details of the maintenance in the form of json.
- alternativeResolution StringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- alternativeResolution List<String>Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- canDelete BooleanLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- canReschedule Boolean
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartmentId String
- The OCID of the compartment that contains the instance.
- correlationToken String
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- createdBy String
- The creator of the maintenance event.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- It is the descriptive information about the maintenance taking place on the customer instance.
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- estimatedDuration String
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- instanceAction String
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instanceId String
- The OCID of the instance.
- instanceMaintenance StringEvent Id 
- The OCID of the instance maintenance event.
- maintenanceCategory String
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenanceReason String
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- startWindow StringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- state String
- The current state of the maintenance event.
- timeCreated String
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeFinished String
- The time at which the Maintenance actually finished.
- timeHard StringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- timeStarted String
- The time at which the Maintenance actually started.
- timeWindow StringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- additionalDetails {[key: string]: string}
- Additional details of the maintenance in the form of json.
- alternativeResolution stringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- alternativeResolution string[]Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- canDelete booleanLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- canReschedule boolean
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartmentId string
- The OCID of the compartment that contains the instance.
- correlationToken string
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- createdBy string
- The creator of the maintenance event.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description string
- It is the descriptive information about the maintenance taking place on the customer instance.
- displayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- estimatedDuration string
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- instanceAction string
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instanceId string
- The OCID of the instance.
- instanceMaintenance stringEvent Id 
- The OCID of the instance maintenance event.
- maintenanceCategory string
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenanceReason string
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- startWindow stringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- state string
- The current state of the maintenance event.
- timeCreated string
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeFinished string
- The time at which the Maintenance actually finished.
- timeHard stringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- timeStarted string
- The time at which the Maintenance actually started.
- timeWindow stringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- additional_details Mapping[str, str]
- Additional details of the maintenance in the form of json.
- alternative_resolution_ straction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- alternative_resolution_ Sequence[str]actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- can_delete_ boollocal_ storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- can_reschedule bool
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartment_id str
- The OCID of the compartment that contains the instance.
- correlation_token str
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- created_by str
- The creator of the maintenance event.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description str
- It is the descriptive information about the maintenance taking place on the customer instance.
- display_name str
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- estimated_duration str
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- instance_action str
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instance_id str
- The OCID of the instance.
- instance_maintenance_ strevent_ id 
- The OCID of the instance maintenance event.
- maintenance_category str
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenance_reason str
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- start_window_ strduration 
- The duration of the time window Maintenance is scheduled to begin within.
- state str
- The current state of the maintenance event.
- time_created str
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- time_finished str
- The time at which the Maintenance actually finished.
- time_hard_ strdue_ date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- time_started str
- The time at which the Maintenance actually started.
- time_window_ strstart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
- additionalDetails Map<String>
- Additional details of the maintenance in the form of json.
- alternativeResolution StringAction 
- (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.
- alternativeResolution List<String>Actions 
- These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.
- canDelete BooleanLocal Storage 
- (Updatable) This field is only applicable when setting the alternativeResolutionAction. - For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. - In cases where the local storage will be lost, this parameter must be set or the request will fail. 
- canReschedule Boolean
- Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
- compartmentId String
- The OCID of the compartment that contains the instance.
- correlationToken String
- A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- createdBy String
- The creator of the maintenance event.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- It is the descriptive information about the maintenance taking place on the customer instance.
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- estimatedDuration String
- This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- instanceAction String
- This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins.
- instanceId String
- The OCID of the instance.
- instanceMaintenance StringEvent Id 
- The OCID of the instance maintenance event.
- maintenanceCategory String
- This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- maintenanceReason String
- This is the reason that Maintenance is being performed. See Instance Maintenance documentation for details.
- startWindow StringDuration 
- The duration of the time window Maintenance is scheduled to begin within.
- state String
- The current state of the maintenance event.
- timeCreated String
- The date and time the maintenance event was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- timeFinished String
- The time at which the Maintenance actually finished.
- timeHard StringDue Date 
- It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended.
- timeStarted String
- The time at which the Maintenance actually started.
- timeWindow StringStart 
- (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. - The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. - ** 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 
Import
InstanceMaintenanceEvents can be imported using the id, e.g.
$ pulumi import oci:Core/instanceMaintenanceEvent:InstanceMaintenanceEvent test_instance_maintenance_event "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 ociTerraform Provider.
