import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const rescue = ovh.Dedicated.getServerBoots({ * serviceName: "nsxxxxxxx.ip-xx-xx-xx.eu", * bootType: "rescue", * kernel: "rescue64-pro", * }); * const serverOnRescue = new ovh.dedicated.ServerUpdate("server_on_rescue", { * serviceName: "nsxxxxxxx.ip-xx-xx-xx.eu", * bootId: rescue.then(rescue => rescue.results?.[0]), * monitoring: true, * state: "ok", * }); * const serverReboot = new ovh.dedicated.ServerRebootTask("server_reboot", { * serviceName: rescue.then(rescue => rescue.serviceName), * keepers: [serverOnRescue.bootId], * }); * ``` */ export declare class ServerRebootTask extends pulumi.CustomResource { /** * Get an existing ServerRebootTask resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ServerRebootTaskState, opts?: pulumi.CustomResourceOptions): ServerRebootTask; /** * Returns true if the given object is an instance of ServerRebootTask. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ServerRebootTask; /** * Details of this task. (should be `Reboot asked`) */ readonly comment: pulumi.Output; /** * Completion date in RFC3339 format. */ readonly doneDate: pulumi.Output; /** * Function name (should be `hardReboot`). */ readonly function: pulumi.Output; /** * List of values tracked to trigger reboot, used also to form implicit dependencies. */ readonly keepers: pulumi.Output; /** * Last update in RFC3339 format. */ readonly lastUpdate: pulumi.Output; /** * The serviceName of your dedicated server. */ readonly serviceName: pulumi.Output; /** * Task creation date in RFC3339 format. */ readonly startDate: pulumi.Output; /** * Task status (should be `done`) */ readonly status: pulumi.Output; /** * Create a ServerRebootTask resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ServerRebootTaskArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServerRebootTask resources. */ export interface ServerRebootTaskState { /** * Details of this task. (should be `Reboot asked`) */ comment?: pulumi.Input; /** * Completion date in RFC3339 format. */ doneDate?: pulumi.Input; /** * Function name (should be `hardReboot`). */ function?: pulumi.Input; /** * List of values tracked to trigger reboot, used also to form implicit dependencies. */ keepers?: pulumi.Input[]>; /** * Last update in RFC3339 format. */ lastUpdate?: pulumi.Input; /** * The serviceName of your dedicated server. */ serviceName?: pulumi.Input; /** * Task creation date in RFC3339 format. */ startDate?: pulumi.Input; /** * Task status (should be `done`) */ status?: pulumi.Input; } /** * The set of arguments for constructing a ServerRebootTask resource. */ export interface ServerRebootTaskArgs { /** * List of values tracked to trigger reboot, used also to form implicit dependencies. */ keepers: pulumi.Input[]>; /** * The serviceName of your dedicated server. */ serviceName: pulumi.Input; }