import * as pulumi from "@pulumi/pulumi"; /** * Attach an IP block to a VRack. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myAccount = ovh.Me.getMe({}); * const myCart = myAccount.then(myAccount => ovh.Order.getCart({ * ovhSubsidiary: myAccount.ovhSubsidiary, * })); * const vrack = myCart.then(myCart => ovh.Order.getCartProductPlan({ * cartId: myCart.id, * priceCapacity: "renew", * product: "vrack", * planCode: "vrack", * })); * const vrackVrack = new ovh.vrack.Vrack("vrack", { * description: myCart.then(myCart => myCart.description), * name: myCart.then(myCart => myCart.description), * ovhSubsidiary: myCart.then(myCart => myCart.ovhSubsidiary), * plan: { * duration: vrack.then(vrack => vrack.selectedPrices?.[0]?.duration), * planCode: vrack.then(vrack => vrack.planCode), * pricingMode: vrack.then(vrack => vrack.selectedPrices?.[0]?.pricingMode), * }, * }); * const ipblock = myCart.then(myCart => ovh.Order.getCartProductPlan({ * cartId: myCart.id, * priceCapacity: "renew", * product: "ip", * planCode: "ip-v4-s30-ripe", * })); * const ipblockIpService = new ovh.ip.IpService("ipblock", { * ovhSubsidiary: myCart.then(myCart => myCart.ovhSubsidiary), * description: myCart.then(myCart => myCart.description), * plan: { * duration: ipblock.then(ipblock => ipblock.selectedPrices?.[0]?.duration), * planCode: ipblock.then(ipblock => ipblock.planCode), * pricingMode: ipblock.then(ipblock => ipblock.selectedPrices?.[0]?.pricingMode), * configurations: [{ * label: "country", * value: "FR", * }], * }, * }); * const vrackBlock = new ovh.vrack.IpAddress("vrack_block", { * serviceName: vrackVrack.serviceName, * block: ipblockIpService.ip, * }); * ``` * * ## Import * * A vRack IP block attachment can be imported using the `service_name` and `block`, separated by "," E.g., * * bash * * ```sh * $ pulumi import ovh:Vrack/ipAddress:IpAddress vrack_block service_name,ip_block * ``` */ export declare class IpAddress extends pulumi.CustomResource { /** * Get an existing IpAddress 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?: IpAddressState, opts?: pulumi.CustomResourceOptions): IpAddress; /** * Returns true if the given object is an instance of IpAddress. 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 IpAddress; /** * Your IP block. */ readonly block: pulumi.Output; /** * Your gateway */ readonly gateway: pulumi.Output; /** * Your IP block */ readonly ip: pulumi.Output; /** * The region (e.g: eu-west-gra) where want to route your block to. */ readonly region: pulumi.Output; /** * The internal name of your vrack */ readonly serviceName: pulumi.Output; /** * Where you want your block announced on the network */ readonly zone: pulumi.Output; /** * Create a IpAddress 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: IpAddressArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpAddress resources. */ export interface IpAddressState { /** * Your IP block. */ block?: pulumi.Input; /** * Your gateway */ gateway?: pulumi.Input; /** * Your IP block */ ip?: pulumi.Input; /** * The region (e.g: eu-west-gra) where want to route your block to. */ region?: pulumi.Input; /** * The internal name of your vrack */ serviceName?: pulumi.Input; /** * Where you want your block announced on the network */ zone?: pulumi.Input; } /** * The set of arguments for constructing a IpAddress resource. */ export interface IpAddressArgs { /** * Your IP block. */ block: pulumi.Input; /** * The region (e.g: eu-west-gra) where want to route your block to. */ region?: pulumi.Input; /** * The internal name of your vrack */ serviceName: pulumi.Input; }