import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myaccount = ovh.Me.getMe({}); * const mycart = ovh.Order.getCart({ * ovhSubsidiary: "fr", * }); * 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: "my ip block", * 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", * }, * { * label: "region", * value: "europe", * }, * { * label: "destination", * value: "parking", * }, * ], * }, * }); * ``` * * ## Import * * The resource can be imported using its `service_name`, E.g., * * terraform * * import { * * to = ovh_ip_service.ipblock * * id = "ip-xx.xx.xx.xx" * * } * * bash * * $ pulumi preview -generate-config-out=ipblock.tf * * $ pulumi up * * The file `ipblock.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class IpService extends pulumi.CustomResource { /** * Get an existing IpService 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?: IpServiceState, opts?: pulumi.CustomResourceOptions): IpService; /** * Returns true if the given object is an instance of IpService. 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 IpService; /** * can be terminated */ readonly canBeTerminated: pulumi.Output; /** * country */ readonly country: pulumi.Output; /** * Custom description on your ip. */ readonly description: pulumi.Output; /** * ip block */ readonly ip: pulumi.Output; /** * Details about an Order */ readonly orders: pulumi.Output; /** * IP block organisation Id */ readonly organisationId: pulumi.Output; /** * OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json) */ readonly ovhSubsidiary: pulumi.Output; /** * Ovh payment mode * * @deprecated This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */ readonly paymentMean: pulumi.Output; /** * Product Plan to order */ readonly plan: pulumi.Output; /** * Product Plan to order */ readonly planOptions: pulumi.Output; /** * Routage information */ readonly routedTos: pulumi.Output; /** * service name */ readonly serviceName: pulumi.Output; /** * Possible values for ip type */ readonly type: pulumi.Output; /** * Create a IpService 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?: IpServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpService resources. */ export interface IpServiceState { /** * can be terminated */ canBeTerminated?: pulumi.Input; /** * country */ country?: pulumi.Input; /** * Custom description on your ip. */ description?: pulumi.Input; /** * ip block */ ip?: pulumi.Input; /** * Details about an Order */ orders?: pulumi.Input[]>; /** * IP block organisation Id */ organisationId?: pulumi.Input; /** * OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json) */ ovhSubsidiary?: pulumi.Input; /** * Ovh payment mode * * @deprecated This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */ paymentMean?: pulumi.Input; /** * Product Plan to order */ plan?: pulumi.Input; /** * Product Plan to order */ planOptions?: pulumi.Input[]>; /** * Routage information */ routedTos?: pulumi.Input[]>; /** * service name */ serviceName?: pulumi.Input; /** * Possible values for ip type */ type?: pulumi.Input; } /** * The set of arguments for constructing a IpService resource. */ export interface IpServiceArgs { /** * Custom description on your ip. */ description?: pulumi.Input; /** * Details about an Order */ orders?: pulumi.Input[]>; /** * OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json) */ ovhSubsidiary?: pulumi.Input; /** * Ovh payment mode * * @deprecated This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */ paymentMean?: pulumi.Input; /** * Product Plan to order */ plan?: pulumi.Input; /** * Product Plan to order */ planOptions?: pulumi.Input[]>; }