1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getInstanceMaintenanceReboot
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getInstanceMaintenanceReboot

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Instance Maintenance Reboot resource in Oracle Cloud Infrastructure Core service.

    Gets the maximum possible date that a maintenance reboot can be extended. For more information, see Infrastructure Maintenance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstanceMaintenanceReboot = oci.Core.getInstanceMaintenanceReboot({
        instanceId: testInstance.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_maintenance_reboot = oci.Core.get_instance_maintenance_reboot(instance_id=test_instance["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetInstanceMaintenanceReboot(ctx, &core.GetInstanceMaintenanceRebootArgs{
    			InstanceId: testInstance.Id,
    		}, nil)
    		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 testInstanceMaintenanceReboot = Oci.Core.GetInstanceMaintenanceReboot.Invoke(new()
        {
            InstanceId = testInstance.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetInstanceMaintenanceRebootArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testInstanceMaintenanceReboot = CoreFunctions.getInstanceMaintenanceReboot(GetInstanceMaintenanceRebootArgs.builder()
                .instanceId(testInstance.id())
                .build());
    
        }
    }
    
    variables:
      testInstanceMaintenanceReboot:
        fn::invoke:
          Function: oci:Core:getInstanceMaintenanceReboot
          Arguments:
            instanceId: ${testInstance.id}
    

    Using getInstanceMaintenanceReboot

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getInstanceMaintenanceReboot(args: GetInstanceMaintenanceRebootArgs, opts?: InvokeOptions): Promise<GetInstanceMaintenanceRebootResult>
    function getInstanceMaintenanceRebootOutput(args: GetInstanceMaintenanceRebootOutputArgs, opts?: InvokeOptions): Output<GetInstanceMaintenanceRebootResult>
    def get_instance_maintenance_reboot(instance_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetInstanceMaintenanceRebootResult
    def get_instance_maintenance_reboot_output(instance_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetInstanceMaintenanceRebootResult]
    func GetInstanceMaintenanceReboot(ctx *Context, args *GetInstanceMaintenanceRebootArgs, opts ...InvokeOption) (*GetInstanceMaintenanceRebootResult, error)
    func GetInstanceMaintenanceRebootOutput(ctx *Context, args *GetInstanceMaintenanceRebootOutputArgs, opts ...InvokeOption) GetInstanceMaintenanceRebootResultOutput

    > Note: This function is named GetInstanceMaintenanceReboot in the Go SDK.

    public static class GetInstanceMaintenanceReboot 
    {
        public static Task<GetInstanceMaintenanceRebootResult> InvokeAsync(GetInstanceMaintenanceRebootArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceMaintenanceRebootResult> Invoke(GetInstanceMaintenanceRebootInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceMaintenanceRebootResult> getInstanceMaintenanceReboot(GetInstanceMaintenanceRebootArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getInstanceMaintenanceReboot:getInstanceMaintenanceReboot
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The OCID of the instance.
    InstanceId string
    The OCID of the instance.
    instanceId String
    The OCID of the instance.
    instanceId string
    The OCID of the instance.
    instance_id str
    The OCID of the instance.
    instanceId String
    The OCID of the instance.

    getInstanceMaintenanceReboot Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    TimeMaintenanceRebootDueMax string
    The maximum extension date and time for the maintenance reboot, in the format defined by RFC3339. The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. Example: 2018-05-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    TimeMaintenanceRebootDueMax string
    The maximum extension date and time for the maintenance reboot, in the format defined by RFC3339. The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. Example: 2018-05-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    timeMaintenanceRebootDueMax String
    The maximum extension date and time for the maintenance reboot, in the format defined by RFC3339. The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. Example: 2018-05-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    timeMaintenanceRebootDueMax string
    The maximum extension date and time for the maintenance reboot, in the format defined by RFC3339. The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. Example: 2018-05-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    time_maintenance_reboot_due_max str
    The maximum extension date and time for the maintenance reboot, in the format defined by RFC3339. The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. Example: 2018-05-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    timeMaintenanceRebootDueMax String
    The maximum extension date and time for the maintenance reboot, in the format defined by RFC3339. The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. Example: 2018-05-25T21:10:29.600Z

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi