1. Packages
  2. OVH
  3. API Docs
  4. Ip
  5. IpService
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.Ip.IpService

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    import * as ovh from "@pulumi/ovh";
    
    const myaccount = ovh.Me.getMe({});
    const mycart = ovh.Order.getCart({
        ovhSubsidiary: "fr",
    });
    const ipblockCartProductPlan = mycart.then(mycart => ovh.Order.getCartProductPlan({
        cartId: mycart.id,
        priceCapacity: "renew",
        product: "ip",
        planCode: "ip-v4-s30-ripe",
    }));
    const ipblockIpService = new ovh.ip.IpService("ipblockIpService", {
        ovhSubsidiary: mycart.then(mycart => mycart.ovhSubsidiary),
        description: "my ip block",
        plan: {
            duration: ipblockCartProductPlan.then(ipblockCartProductPlan => ipblockCartProductPlan.selectedPrices?.[0]?.duration),
            planCode: ipblockCartProductPlan.then(ipblockCartProductPlan => ipblockCartProductPlan.planCode),
            pricingMode: ipblockCartProductPlan.then(ipblockCartProductPlan => ipblockCartProductPlan.selectedPrices?.[0]?.pricingMode),
            configurations: [{
                label: "country",
                value: "FR",
            }],
        },
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    myaccount = ovh.Me.get_me()
    mycart = ovh.Order.get_cart(ovh_subsidiary="fr")
    ipblock_cart_product_plan = ovh.Order.get_cart_product_plan(cart_id=mycart.id,
        price_capacity="renew",
        product="ip",
        plan_code="ip-v4-s30-ripe")
    ipblock_ip_service = ovh.ip.IpService("ipblockIpService",
        ovh_subsidiary=mycart.ovh_subsidiary,
        description="my ip block",
        plan=ovh.ip.IpServicePlanArgs(
            duration=ipblock_cart_product_plan.selected_prices[0].duration,
            plan_code=ipblock_cart_product_plan.plan_code,
            pricing_mode=ipblock_cart_product_plan.selected_prices[0].pricing_mode,
            configurations=[ovh.ip.IpServicePlanConfigurationArgs(
                label="country",
                value="FR",
            )],
        ))
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Ip"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Order"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Me.GetMe(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		mycart, err := Order.GetCart(ctx, &order.GetCartArgs{
    			OvhSubsidiary: "fr",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ipblockCartProductPlan, err := Order.GetCartProductPlan(ctx, &order.GetCartProductPlanArgs{
    			CartId:        mycart.Id,
    			PriceCapacity: "renew",
    			Product:       "ip",
    			PlanCode:      "ip-v4-s30-ripe",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = Ip.NewIpService(ctx, "ipblockIpService", &Ip.IpServiceArgs{
    			OvhSubsidiary: pulumi.String(mycart.OvhSubsidiary),
    			Description:   pulumi.String("my ip block"),
    			Plan: &ip.IpServicePlanArgs{
    				Duration:    pulumi.String(ipblockCartProductPlan.SelectedPrices[0].Duration),
    				PlanCode:    pulumi.String(ipblockCartProductPlan.PlanCode),
    				PricingMode: pulumi.String(ipblockCartProductPlan.SelectedPrices[0].PricingMode),
    				Configurations: ip.IpServicePlanConfigurationArray{
    					&ip.IpServicePlanConfigurationArgs{
    						Label: pulumi.String("country"),
    						Value: pulumi.String("FR"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var myaccount = Ovh.Me.GetMe.Invoke();
    
        var mycart = Ovh.Order.GetCart.Invoke(new()
        {
            OvhSubsidiary = "fr",
        });
    
        var ipblockCartProductPlan = Ovh.Order.GetCartProductPlan.Invoke(new()
        {
            CartId = mycart.Apply(getCartResult => getCartResult.Id),
            PriceCapacity = "renew",
            Product = "ip",
            PlanCode = "ip-v4-s30-ripe",
        });
    
        var ipblockIpService = new Ovh.Ip.IpService("ipblockIpService", new()
        {
            OvhSubsidiary = mycart.Apply(getCartResult => getCartResult.OvhSubsidiary),
            Description = "my ip block",
            Plan = new Ovh.Ip.Inputs.IpServicePlanArgs
            {
                Duration = ipblockCartProductPlan.Apply(getCartProductPlanResult => getCartProductPlanResult.SelectedPrices[0]?.Duration),
                PlanCode = ipblockCartProductPlan.Apply(getCartProductPlanResult => getCartProductPlanResult.PlanCode),
                PricingMode = ipblockCartProductPlan.Apply(getCartProductPlanResult => getCartProductPlanResult.SelectedPrices[0]?.PricingMode),
                Configurations = new[]
                {
                    new Ovh.Ip.Inputs.IpServicePlanConfigurationArgs
                    {
                        Label = "country",
                        Value = "FR",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Me.MeFunctions;
    import com.pulumi.ovh.Order.OrderFunctions;
    import com.pulumi.ovh.Order.inputs.GetCartArgs;
    import com.pulumi.ovh.Order.inputs.GetCartProductPlanArgs;
    import com.pulumi.ovh.Ip.IpService;
    import com.pulumi.ovh.Ip.IpServiceArgs;
    import com.pulumi.ovh.Ip.inputs.IpServicePlanArgs;
    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 myaccount = MeFunctions.getMe();
    
            final var mycart = OrderFunctions.getCart(GetCartArgs.builder()
                .ovhSubsidiary("fr")
                .build());
    
            final var ipblockCartProductPlan = OrderFunctions.getCartProductPlan(GetCartProductPlanArgs.builder()
                .cartId(mycart.applyValue(getCartResult -> getCartResult.id()))
                .priceCapacity("renew")
                .product("ip")
                .planCode("ip-v4-s30-ripe")
                .build());
    
            var ipblockIpService = new IpService("ipblockIpService", IpServiceArgs.builder()
                .ovhSubsidiary(mycart.applyValue(getCartResult -> getCartResult.ovhSubsidiary()))
                .description("my ip block")
                .plan(IpServicePlanArgs.builder()
                    .duration(ipblockCartProductPlan.applyValue(getCartProductPlanResult -> getCartProductPlanResult.selectedPrices()[0].duration()))
                    .planCode(ipblockCartProductPlan.applyValue(getCartProductPlanResult -> getCartProductPlanResult.planCode()))
                    .pricingMode(ipblockCartProductPlan.applyValue(getCartProductPlanResult -> getCartProductPlanResult.selectedPrices()[0].pricingMode()))
                    .configurations(IpServicePlanConfigurationArgs.builder()
                        .label("country")
                        .value("FR")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ipblockIpService:
        type: ovh:Ip:IpService
        properties:
          ovhSubsidiary: ${mycart.ovhSubsidiary}
          description: my ip block
          plan:
            duration: ${ipblockCartProductPlan.selectedPrices[0].duration}
            planCode: ${ipblockCartProductPlan.planCode}
            pricingMode: ${ipblockCartProductPlan.selectedPrices[0].pricingMode}
            configurations:
              - label: country
                value: FR
    variables:
      myaccount:
        fn::invoke:
          Function: ovh:Me:getMe
          Arguments: {}
      mycart:
        fn::invoke:
          Function: ovh:Order:getCart
          Arguments:
            ovhSubsidiary: fr
      ipblockCartProductPlan:
        fn::invoke:
          Function: ovh:Order:getCartProductPlan
          Arguments:
            cartId: ${mycart.id}
            priceCapacity: renew
            product: ip
            planCode: ip-v4-s30-ripe
    

    Create IpService Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IpService(name: string, args: IpServiceArgs, opts?: CustomResourceOptions);
    @overload
    def IpService(resource_name: str,
                  args: IpServiceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def IpService(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  ovh_subsidiary: Optional[str] = None,
                  plan: Optional[_ip.IpServicePlanArgs] = None,
                  description: Optional[str] = None,
                  orders: Optional[Sequence[_ip.IpServiceOrderArgs]] = None,
                  payment_mean: Optional[str] = None,
                  plan_options: Optional[Sequence[_ip.IpServicePlanOptionArgs]] = None)
    func NewIpService(ctx *Context, name string, args IpServiceArgs, opts ...ResourceOption) (*IpService, error)
    public IpService(string name, IpServiceArgs args, CustomResourceOptions? opts = null)
    public IpService(String name, IpServiceArgs args)
    public IpService(String name, IpServiceArgs args, CustomResourceOptions options)
    
    type: ovh:Ip:IpService
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ipServiceResource = new Ovh.Ip.IpService("ipServiceResource", new()
    {
        OvhSubsidiary = "string",
        Plan = new Ovh.Ip.Inputs.IpServicePlanArgs
        {
            Duration = "string",
            PlanCode = "string",
            PricingMode = "string",
            CatalogName = "string",
            Configurations = new[]
            {
                new Ovh.Ip.Inputs.IpServicePlanConfigurationArgs
                {
                    Label = "string",
                    Value = "string",
                },
            },
        },
        Description = "string",
        Orders = new[]
        {
            new Ovh.Ip.Inputs.IpServiceOrderArgs
            {
                Date = "string",
                Details = new[]
                {
                    new Ovh.Ip.Inputs.IpServiceOrderDetailArgs
                    {
                        Description = "string",
                        Domain = "string",
                        OrderDetailId = 0,
                        Quantity = "string",
                    },
                },
                ExpirationDate = "string",
                OrderId = 0,
            },
        },
        PlanOptions = new[]
        {
            new Ovh.Ip.Inputs.IpServicePlanOptionArgs
            {
                Duration = "string",
                PlanCode = "string",
                PricingMode = "string",
                CatalogName = "string",
                Configurations = new[]
                {
                    new Ovh.Ip.Inputs.IpServicePlanOptionConfigurationArgs
                    {
                        Label = "string",
                        Value = "string",
                    },
                },
            },
        },
    });
    
    example, err := Ip.NewIpService(ctx, "ipServiceResource", &Ip.IpServiceArgs{
    	OvhSubsidiary: pulumi.String("string"),
    	Plan: &ip.IpServicePlanArgs{
    		Duration:    pulumi.String("string"),
    		PlanCode:    pulumi.String("string"),
    		PricingMode: pulumi.String("string"),
    		CatalogName: pulumi.String("string"),
    		Configurations: ip.IpServicePlanConfigurationArray{
    			&ip.IpServicePlanConfigurationArgs{
    				Label: pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Orders: ip.IpServiceOrderArray{
    		&ip.IpServiceOrderArgs{
    			Date: pulumi.String("string"),
    			Details: ip.IpServiceOrderDetailArray{
    				&ip.IpServiceOrderDetailArgs{
    					Description:   pulumi.String("string"),
    					Domain:        pulumi.String("string"),
    					OrderDetailId: pulumi.Int(0),
    					Quantity:      pulumi.String("string"),
    				},
    			},
    			ExpirationDate: pulumi.String("string"),
    			OrderId:        pulumi.Int(0),
    		},
    	},
    	PlanOptions: ip.IpServicePlanOptionArray{
    		&ip.IpServicePlanOptionArgs{
    			Duration:    pulumi.String("string"),
    			PlanCode:    pulumi.String("string"),
    			PricingMode: pulumi.String("string"),
    			CatalogName: pulumi.String("string"),
    			Configurations: ip.IpServicePlanOptionConfigurationArray{
    				&ip.IpServicePlanOptionConfigurationArgs{
    					Label: pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var ipServiceResource = new IpService("ipServiceResource", IpServiceArgs.builder()
        .ovhSubsidiary("string")
        .plan(IpServicePlanArgs.builder()
            .duration("string")
            .planCode("string")
            .pricingMode("string")
            .catalogName("string")
            .configurations(IpServicePlanConfigurationArgs.builder()
                .label("string")
                .value("string")
                .build())
            .build())
        .description("string")
        .orders(IpServiceOrderArgs.builder()
            .date("string")
            .details(IpServiceOrderDetailArgs.builder()
                .description("string")
                .domain("string")
                .orderDetailId(0)
                .quantity("string")
                .build())
            .expirationDate("string")
            .orderId(0)
            .build())
        .planOptions(IpServicePlanOptionArgs.builder()
            .duration("string")
            .planCode("string")
            .pricingMode("string")
            .catalogName("string")
            .configurations(IpServicePlanOptionConfigurationArgs.builder()
                .label("string")
                .value("string")
                .build())
            .build())
        .build());
    
    ip_service_resource = ovh.ip.IpService("ipServiceResource",
        ovh_subsidiary="string",
        plan=ovh.ip.IpServicePlanArgs(
            duration="string",
            plan_code="string",
            pricing_mode="string",
            catalog_name="string",
            configurations=[ovh.ip.IpServicePlanConfigurationArgs(
                label="string",
                value="string",
            )],
        ),
        description="string",
        orders=[ovh.ip.IpServiceOrderArgs(
            date="string",
            details=[ovh.ip.IpServiceOrderDetailArgs(
                description="string",
                domain="string",
                order_detail_id=0,
                quantity="string",
            )],
            expiration_date="string",
            order_id=0,
        )],
        plan_options=[ovh.ip.IpServicePlanOptionArgs(
            duration="string",
            plan_code="string",
            pricing_mode="string",
            catalog_name="string",
            configurations=[ovh.ip.IpServicePlanOptionConfigurationArgs(
                label="string",
                value="string",
            )],
        )])
    
    const ipServiceResource = new ovh.ip.IpService("ipServiceResource", {
        ovhSubsidiary: "string",
        plan: {
            duration: "string",
            planCode: "string",
            pricingMode: "string",
            catalogName: "string",
            configurations: [{
                label: "string",
                value: "string",
            }],
        },
        description: "string",
        orders: [{
            date: "string",
            details: [{
                description: "string",
                domain: "string",
                orderDetailId: 0,
                quantity: "string",
            }],
            expirationDate: "string",
            orderId: 0,
        }],
        planOptions: [{
            duration: "string",
            planCode: "string",
            pricingMode: "string",
            catalogName: "string",
            configurations: [{
                label: "string",
                value: "string",
            }],
        }],
    });
    
    type: ovh:Ip:IpService
    properties:
        description: string
        orders:
            - date: string
              details:
                - description: string
                  domain: string
                  orderDetailId: 0
                  quantity: string
              expirationDate: string
              orderId: 0
        ovhSubsidiary: string
        plan:
            catalogName: string
            configurations:
                - label: string
                  value: string
            duration: string
            planCode: string
            pricingMode: string
        planOptions:
            - catalogName: string
              configurations:
                - label: string
                  value: string
              duration: string
              planCode: string
              pricingMode: string
    

    IpService Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The IpService resource accepts the following input properties:

    OvhSubsidiary string
    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
    Plan IpServicePlan
    Product Plan to order
    Description string
    Custom description on your ip.
    Orders List<IpServiceOrder>
    Details about an Order
    PaymentMean string
    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.

    PlanOptions List<IpServicePlanOption>
    Product Plan to order
    OvhSubsidiary string
    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
    Plan IpServicePlanArgs
    Product Plan to order
    Description string
    Custom description on your ip.
    Orders []IpServiceOrderArgs
    Details about an Order
    PaymentMean string
    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.

    PlanOptions []IpServicePlanOptionArgs
    Product Plan to order
    ovhSubsidiary String
    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
    plan ServicePlan
    Product Plan to order
    description String
    Custom description on your ip.
    orders List<ServiceOrder>
    Details about an Order
    paymentMean String
    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.

    planOptions List<ServicePlanOption>
    Product Plan to order
    ovhSubsidiary string
    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
    plan IpServicePlan
    Product Plan to order
    description string
    Custom description on your ip.
    orders IpServiceOrder[]
    Details about an Order
    paymentMean string
    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.

    planOptions IpServicePlanOption[]
    Product Plan to order
    ovh_subsidiary str
    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
    plan ip.IpServicePlanArgs
    Product Plan to order
    description str
    Custom description on your ip.
    orders Sequence[ip.IpServiceOrderArgs]
    Details about an Order
    payment_mean str
    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.

    plan_options Sequence[ip.IpServicePlanOptionArgs]
    Product Plan to order
    ovhSubsidiary String
    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
    plan Property Map
    Product Plan to order
    description String
    Custom description on your ip.
    orders List<Property Map>
    Details about an Order
    paymentMean String
    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.

    planOptions List<Property Map>
    Product Plan to order

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IpService resource produces the following output properties:

    CanBeTerminated bool
    can be terminated
    Country string
    country
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    ip block
    OrganisationId string
    IP block organisation Id
    RoutedTos List<IpServiceRoutedTo>
    Routage information
    ServiceName string
    service name
    Type string
    Possible values for ip type
    CanBeTerminated bool
    can be terminated
    Country string
    country
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    ip block
    OrganisationId string
    IP block organisation Id
    RoutedTos []IpServiceRoutedTo
    Routage information
    ServiceName string
    service name
    Type string
    Possible values for ip type
    canBeTerminated Boolean
    can be terminated
    country String
    country
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    ip block
    organisationId String
    IP block organisation Id
    routedTos List<ServiceRoutedTo>
    Routage information
    serviceName String
    service name
    type String
    Possible values for ip type
    canBeTerminated boolean
    can be terminated
    country string
    country
    id string
    The provider-assigned unique ID for this managed resource.
    ip string
    ip block
    organisationId string
    IP block organisation Id
    routedTos IpServiceRoutedTo[]
    Routage information
    serviceName string
    service name
    type string
    Possible values for ip type
    can_be_terminated bool
    can be terminated
    country str
    country
    id str
    The provider-assigned unique ID for this managed resource.
    ip str
    ip block
    organisation_id str
    IP block organisation Id
    routed_tos Sequence[ip.IpServiceRoutedTo]
    Routage information
    service_name str
    service name
    type str
    Possible values for ip type
    canBeTerminated Boolean
    can be terminated
    country String
    country
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    ip block
    organisationId String
    IP block organisation Id
    routedTos List<Property Map>
    Routage information
    serviceName String
    service name
    type String
    Possible values for ip type

    Look up Existing IpService Resource

    Get an existing IpService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IpServiceState, opts?: CustomResourceOptions): IpService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            can_be_terminated: Optional[bool] = None,
            country: Optional[str] = None,
            description: Optional[str] = None,
            ip: Optional[str] = None,
            orders: Optional[Sequence[_ip.IpServiceOrderArgs]] = None,
            organisation_id: Optional[str] = None,
            ovh_subsidiary: Optional[str] = None,
            payment_mean: Optional[str] = None,
            plan: Optional[_ip.IpServicePlanArgs] = None,
            plan_options: Optional[Sequence[_ip.IpServicePlanOptionArgs]] = None,
            routed_tos: Optional[Sequence[_ip.IpServiceRoutedToArgs]] = None,
            service_name: Optional[str] = None,
            type: Optional[str] = None) -> IpService
    func GetIpService(ctx *Context, name string, id IDInput, state *IpServiceState, opts ...ResourceOption) (*IpService, error)
    public static IpService Get(string name, Input<string> id, IpServiceState? state, CustomResourceOptions? opts = null)
    public static IpService get(String name, Output<String> id, IpServiceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CanBeTerminated bool
    can be terminated
    Country string
    country
    Description string
    Custom description on your ip.
    Ip string
    ip block
    Orders List<IpServiceOrder>
    Details about an Order
    OrganisationId string
    IP block organisation Id
    OvhSubsidiary string
    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
    PaymentMean string
    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.

    Plan IpServicePlan
    Product Plan to order
    PlanOptions List<IpServicePlanOption>
    Product Plan to order
    RoutedTos List<IpServiceRoutedTo>
    Routage information
    ServiceName string
    service name
    Type string
    Possible values for ip type
    CanBeTerminated bool
    can be terminated
    Country string
    country
    Description string
    Custom description on your ip.
    Ip string
    ip block
    Orders []IpServiceOrderArgs
    Details about an Order
    OrganisationId string
    IP block organisation Id
    OvhSubsidiary string
    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
    PaymentMean string
    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.

    Plan IpServicePlanArgs
    Product Plan to order
    PlanOptions []IpServicePlanOptionArgs
    Product Plan to order
    RoutedTos []IpServiceRoutedToArgs
    Routage information
    ServiceName string
    service name
    Type string
    Possible values for ip type
    canBeTerminated Boolean
    can be terminated
    country String
    country
    description String
    Custom description on your ip.
    ip String
    ip block
    orders List<ServiceOrder>
    Details about an Order
    organisationId String
    IP block organisation Id
    ovhSubsidiary String
    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
    paymentMean String
    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.

    plan ServicePlan
    Product Plan to order
    planOptions List<ServicePlanOption>
    Product Plan to order
    routedTos List<ServiceRoutedTo>
    Routage information
    serviceName String
    service name
    type String
    Possible values for ip type
    canBeTerminated boolean
    can be terminated
    country string
    country
    description string
    Custom description on your ip.
    ip string
    ip block
    orders IpServiceOrder[]
    Details about an Order
    organisationId string
    IP block organisation Id
    ovhSubsidiary string
    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
    paymentMean string
    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.

    plan IpServicePlan
    Product Plan to order
    planOptions IpServicePlanOption[]
    Product Plan to order
    routedTos IpServiceRoutedTo[]
    Routage information
    serviceName string
    service name
    type string
    Possible values for ip type
    can_be_terminated bool
    can be terminated
    country str
    country
    description str
    Custom description on your ip.
    ip str
    ip block
    orders Sequence[ip.IpServiceOrderArgs]
    Details about an Order
    organisation_id str
    IP block organisation Id
    ovh_subsidiary str
    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
    payment_mean str
    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.

    plan ip.IpServicePlanArgs
    Product Plan to order
    plan_options Sequence[ip.IpServicePlanOptionArgs]
    Product Plan to order
    routed_tos Sequence[ip.IpServiceRoutedToArgs]
    Routage information
    service_name str
    service name
    type str
    Possible values for ip type
    canBeTerminated Boolean
    can be terminated
    country String
    country
    description String
    Custom description on your ip.
    ip String
    ip block
    orders List<Property Map>
    Details about an Order
    organisationId String
    IP block organisation Id
    ovhSubsidiary String
    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
    paymentMean String
    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.

    plan Property Map
    Product Plan to order
    planOptions List<Property Map>
    Product Plan to order
    routedTos List<Property Map>
    Routage information
    serviceName String
    service name
    type String
    Possible values for ip type

    Supporting Types

    IpServiceOrder, IpServiceOrderArgs

    Date string
    date
    Details List<IpServiceOrderDetail>
    Information about a Bill entry
    ExpirationDate string
    expiration date
    OrderId int
    order id
    Date string
    date
    Details []IpServiceOrderDetail
    Information about a Bill entry
    ExpirationDate string
    expiration date
    OrderId int
    order id
    date String
    date
    details List<ServiceOrderDetail>
    Information about a Bill entry
    expirationDate String
    expiration date
    orderId Integer
    order id
    date string
    date
    details IpServiceOrderDetail[]
    Information about a Bill entry
    expirationDate string
    expiration date
    orderId number
    order id
    date str
    date
    details Sequence[ip.IpServiceOrderDetail]
    Information about a Bill entry
    expiration_date str
    expiration date
    order_id int
    order id
    date String
    date
    details List<Property Map>
    Information about a Bill entry
    expirationDate String
    expiration date
    orderId Number
    order id

    IpServiceOrderDetail, IpServiceOrderDetailArgs

    Description string
    Custom description on your ip.
    Domain string
    expiration date
    OrderDetailId int
    order detail id
    Quantity string
    quantity
    Description string
    Custom description on your ip.
    Domain string
    expiration date
    OrderDetailId int
    order detail id
    Quantity string
    quantity
    description String
    Custom description on your ip.
    domain String
    expiration date
    orderDetailId Integer
    order detail id
    quantity String
    quantity
    description string
    Custom description on your ip.
    domain string
    expiration date
    orderDetailId number
    order detail id
    quantity string
    quantity
    description str
    Custom description on your ip.
    domain str
    expiration date
    order_detail_id int
    order detail id
    quantity str
    quantity
    description String
    Custom description on your ip.
    domain String
    expiration date
    orderDetailId Number
    order detail id
    quantity String
    quantity

    IpServicePlan, IpServicePlanArgs

    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations List<IpServicePlanConfiguration>
    Representation of a configuration item for personalizing product
    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations []IpServicePlanConfiguration
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<ServicePlanConfiguration>
    Representation of a configuration item for personalizing product
    duration string
    duration
    planCode string
    Plan code
    pricingMode string
    Pricing model identifier
    catalogName string
    Catalog name
    configurations IpServicePlanConfiguration[]
    Representation of a configuration item for personalizing product
    duration str
    duration
    plan_code str
    Plan code
    pricing_mode str
    Pricing model identifier
    catalog_name str
    Catalog name
    configurations Sequence[ip.IpServicePlanConfiguration]
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<Property Map>
    Representation of a configuration item for personalizing product

    IpServicePlanConfiguration, IpServicePlanConfigurationArgs

    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM
    label string
    Identifier of the resource
    value string
    Path to the resource in API.OVH.COM
    label str
    Identifier of the resource
    value str
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM

    IpServicePlanOption, IpServicePlanOptionArgs

    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations List<IpServicePlanOptionConfiguration>
    Representation of a configuration item for personalizing product
    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations []IpServicePlanOptionConfiguration
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<ServicePlanOptionConfiguration>
    Representation of a configuration item for personalizing product
    duration string
    duration
    planCode string
    Plan code
    pricingMode string
    Pricing model identifier
    catalogName string
    Catalog name
    configurations IpServicePlanOptionConfiguration[]
    Representation of a configuration item for personalizing product
    duration str
    duration
    plan_code str
    Plan code
    pricing_mode str
    Pricing model identifier
    catalog_name str
    Catalog name
    configurations Sequence[ip.IpServicePlanOptionConfiguration]
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<Property Map>
    Representation of a configuration item for personalizing product

    IpServicePlanOptionConfiguration, IpServicePlanOptionConfigurationArgs

    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM
    label string
    Identifier of the resource
    value string
    Path to the resource in API.OVH.COM
    label str
    Identifier of the resource
    value str
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM

    IpServiceRoutedTo, IpServiceRoutedToArgs

    ServiceName string
    service name
    ServiceName string
    service name
    serviceName String
    service name
    serviceName string
    service name
    service_name str
    service name
    serviceName String
    service name

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud