import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Moves a given IP to a different service, or inversely, parks it if empty service is given * * ## Example Usage * * ### Move IP `1.2.3.4` to service loadbalancer-XXXXX * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const moveIpToLoadBalancerXxxxx = new ovh.ip.Move("move_ip_to_load_balancer_xxxxx", { * ip: "1.2.3.4", * routedTo: { * serviceName: "loadbalancer-XXXXX", * }, * }); * ``` * * ### Park IP/Detach IP `1.2.3.4` from any service * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const parkIp = new ovh.ip.Move("park_ip", { * ip: "1.2.3.4", * routedTo: { * serviceName: "", * }, * }); * ``` * * ## Import * * The resource can be imported using the `ip` field, e.g., * * bash * * ```sh * $ pulumi import ovh:Ip/move:Move mv '1.2.3.4/32' * ``` */ export declare class Move extends pulumi.CustomResource { /** * Get an existing Move 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?: MoveState, opts?: pulumi.CustomResourceOptions): Move; /** * Returns true if the given object is an instance of Move. 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 Move; /** * Whether IP service can be terminated */ readonly canBeTerminated: pulumi.Output; /** * Country */ readonly country: pulumi.Output; /** * Description attached to the IP */ readonly description: pulumi.Output; /** * IP block that we want to attach to a different service */ readonly ip: pulumi.Output; /** * IP block organisation Id */ readonly organisationId: pulumi.Output; /** * Service to route the IP to. If null, the IP will be [parked](https://api.ovh.com/console/#/ip/%7Bip%7D/park~POST) instead of [moved](https://api.ovh.com/console/#/ip/%7Bip%7D/move~POST) */ readonly routedTo: pulumi.Output; /** * Service name in the form of `ip-...` */ readonly serviceName: pulumi.Output; /** * Starting date and time field of the current IP task that is in charge of changing the service the IP is attached to */ readonly taskStartDate: pulumi.Output; /** * Status field of the current IP task that is in charge of changing the service the IP is attached to */ readonly taskStatus: pulumi.Output; /** * Possible values for ip type */ readonly type: pulumi.Output; /** * Create a Move 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: MoveArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Move resources. */ export interface MoveState { /** * Whether IP service can be terminated */ canBeTerminated?: pulumi.Input; /** * Country */ country?: pulumi.Input; /** * Description attached to the IP */ description?: pulumi.Input; /** * IP block that we want to attach to a different service */ ip?: pulumi.Input; /** * IP block organisation Id */ organisationId?: pulumi.Input; /** * Service to route the IP to. If null, the IP will be [parked](https://api.ovh.com/console/#/ip/%7Bip%7D/park~POST) instead of [moved](https://api.ovh.com/console/#/ip/%7Bip%7D/move~POST) */ routedTo?: pulumi.Input; /** * Service name in the form of `ip-...` */ serviceName?: pulumi.Input; /** * Starting date and time field of the current IP task that is in charge of changing the service the IP is attached to */ taskStartDate?: pulumi.Input; /** * Status field of the current IP task that is in charge of changing the service the IP is attached to */ taskStatus?: pulumi.Input; /** * Possible values for ip type */ type?: pulumi.Input; } /** * The set of arguments for constructing a Move resource. */ export interface MoveArgs { /** * Description attached to the IP */ description?: pulumi.Input; /** * IP block that we want to attach to a different service */ ip: pulumi.Input; /** * Service to route the IP to. If null, the IP will be [parked](https://api.ovh.com/console/#/ip/%7Bip%7D/park~POST) instead of [moved](https://api.ovh.com/console/#/ip/%7Bip%7D/move~POST) */ routedTo: pulumi.Input; }