1. Registry
  2. Packages
  3. OVH
  4. API Docs
  5. CloudLoadbalancer
Viewing docs for OVHCloud v2.21.0
published on Friday, Sep 25, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.21.0
published on Friday, Sep 25, 2026 by OVHcloud

    Creates a load balancer in a public cloud project.

    Create CloudLoadbalancer Resource

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

    Constructor syntax

    new CloudLoadbalancer(name: string, args: CloudLoadbalancerArgs, opts?: CustomResourceOptions);
    @overload
    def CloudLoadbalancer(resource_name: str,
                          args: CloudLoadbalancerArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudLoadbalancer(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          flavor_name: Optional[str] = None,
                          network: Optional[CloudLoadbalancerNetworkArgs] = None,
                          region: Optional[str] = None,
                          service_name: Optional[str] = None,
                          availability_zone: Optional[str] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None)
    func NewCloudLoadbalancer(ctx *Context, name string, args CloudLoadbalancerArgs, opts ...ResourceOption) (*CloudLoadbalancer, error)
    public CloudLoadbalancer(string name, CloudLoadbalancerArgs args, CustomResourceOptions? opts = null)
    public CloudLoadbalancer(String name, CloudLoadbalancerArgs args)
    public CloudLoadbalancer(String name, CloudLoadbalancerArgs args, CustomResourceOptions options)
    
    type: ovh:CloudLoadbalancer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ovh_cloud_loadbalancer" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CloudLoadbalancerArgs
    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 CloudLoadbalancerArgs
    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 CloudLoadbalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudLoadbalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudLoadbalancerArgs
    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 cloudLoadbalancerResource = new Ovh.CloudLoadbalancer("cloudLoadbalancerResource", new()
    {
        FlavorName = "string",
        Network = new Ovh.Inputs.CloudLoadbalancerNetworkArgs
        {
            Id = "string",
            SubnetId = "string",
            Ip = "string",
        },
        Region = "string",
        ServiceName = "string",
        AvailabilityZone = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := ovh.NewCloudLoadbalancer(ctx, "cloudLoadbalancerResource", &ovh.CloudLoadbalancerArgs{
    	FlavorName: pulumi.String("string"),
    	Network: &ovh.CloudLoadbalancerNetworkArgs{
    		Id:       pulumi.String("string"),
    		SubnetId: pulumi.String("string"),
    		Ip:       pulumi.String("string"),
    	},
    	Region:           pulumi.String("string"),
    	ServiceName:      pulumi.String("string"),
    	AvailabilityZone: pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	Name:             pulumi.String("string"),
    })
    
    resource "ovh_cloud_loadbalancer" "cloudLoadbalancerResource" {
      lifecycle {
        create_before_destroy = true
      }
      flavor_name = "string"
      network = {
        id        = "string"
        subnet_id = "string"
        ip        = "string"
      }
      region            = "string"
      service_name      = "string"
      availability_zone = "string"
      description       = "string"
      name              = "string"
    }
    
    var cloudLoadbalancerResource = new CloudLoadbalancer("cloudLoadbalancerResource", CloudLoadbalancerArgs.builder()
        .flavorName("string")
        .network(CloudLoadbalancerNetworkArgs.builder()
            .id("string")
            .subnetId("string")
            .ip("string")
            .build())
        .region("string")
        .serviceName("string")
        .availabilityZone("string")
        .description("string")
        .name("string")
        .build());
    
    cloud_loadbalancer_resource = ovh.CloudLoadbalancer("cloudLoadbalancerResource",
        flavor_name="string",
        network={
            "id": "string",
            "subnet_id": "string",
            "ip": "string",
        },
        region="string",
        service_name="string",
        availability_zone="string",
        description="string",
        name="string")
    
    const cloudLoadbalancerResource = new ovh.CloudLoadbalancer("cloudLoadbalancerResource", {
        flavorName: "string",
        network: {
            id: "string",
            subnetId: "string",
            ip: "string",
        },
        region: "string",
        serviceName: "string",
        availabilityZone: "string",
        description: "string",
        name: "string",
    });
    
    type: ovh:CloudLoadbalancer
    properties:
        availabilityZone: string
        description: string
        flavorName: string
        name: string
        network:
            id: string
            ip: string
            subnetId: string
        region: string
        serviceName: string
    

    CloudLoadbalancer Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CloudLoadbalancer resource accepts the following input properties:

    FlavorName string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    Network CloudLoadbalancerNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    Region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    AvailabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    Description string
    Load balancer description.
    Name string
    Load balancer name.
    FlavorName string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    Network CloudLoadbalancerNetworkArgs
    Network of the VIP. Changing any value of this block recreates the resource.
    Region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    AvailabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    Description string
    Load balancer description.
    Name string
    Load balancer name.
    flavor_name string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    network object
    Network of the VIP. Changing any value of this block recreates the resource.
    region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    service_name string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    availability_zone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    description string
    Load balancer description.
    name string
    Load balancer name.
    flavorName String
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    network CloudLoadbalancerNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    region String
    Region where the load balancer will be created. Changing this value recreates the resource.
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    availabilityZone String
    Availability zone for the load balancer. Changing this value recreates the resource.
    description String
    Load balancer description.
    name String
    Load balancer name.
    flavorName string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    network CloudLoadbalancerNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    serviceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    availabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    description string
    Load balancer description.
    name string
    Load balancer name.
    flavor_name str
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    network CloudLoadbalancerNetworkArgs
    Network of the VIP. Changing any value of this block recreates the resource.
    region str
    Region where the load balancer will be created. Changing this value recreates the resource.
    service_name str
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    availability_zone str
    Availability zone for the load balancer. Changing this value recreates the resource.
    description str
    Load balancer description.
    name str
    Load balancer name.
    flavorName String
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    network Property Map
    Network of the VIP. Changing any value of this block recreates the resource.
    region String
    Region where the load balancer will be created. Changing this value recreates the resource.
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    availabilityZone String
    Availability zone for the load balancer. Changing this value recreates the resource.
    description String
    Load balancer description.
    name String
    Load balancer name.

    Outputs

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

    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the load balancer.
    CurrentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the load balancer.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the load balancer.
    CurrentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    UpdatedAt string
    Last update date of the load balancer.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the load balancer.
    current_state object
    Current state of the load balancer:
    id string
    The provider-assigned unique ID for this managed resource.
    resource_status string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updated_at string
    Last update date of the load balancer.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the load balancer.
    currentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    id String
    The provider-assigned unique ID for this managed resource.
    resourceStatus String
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the load balancer.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the load balancer.
    currentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    id string
    The provider-assigned unique ID for this managed resource.
    resourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt string
    Last update date of the load balancer.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the load balancer.
    current_state CloudLoadbalancerCurrentState
    Current state of the load balancer:
    id str
    The provider-assigned unique ID for this managed resource.
    resource_status str
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updated_at str
    Last update date of the load balancer.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the load balancer.
    currentState Property Map
    Current state of the load balancer:
    id String
    The provider-assigned unique ID for this managed resource.
    resourceStatus String
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the load balancer.

    Look up Existing CloudLoadbalancer Resource

    Get an existing CloudLoadbalancer 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?: CloudLoadbalancerState, opts?: CustomResourceOptions): CloudLoadbalancer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            checksum: Optional[str] = None,
            created_at: Optional[str] = None,
            current_state: Optional[CloudLoadbalancerCurrentStateArgs] = None,
            description: Optional[str] = None,
            flavor_name: Optional[str] = None,
            name: Optional[str] = None,
            network: Optional[CloudLoadbalancerNetworkArgs] = None,
            region: Optional[str] = None,
            resource_status: Optional[str] = None,
            service_name: Optional[str] = None,
            updated_at: Optional[str] = None) -> CloudLoadbalancer
    func GetCloudLoadbalancer(ctx *Context, name string, id IDInput, state *CloudLoadbalancerState, opts ...ResourceOption) (*CloudLoadbalancer, error)
    public static CloudLoadbalancer Get(string name, Input<string> id, CloudLoadbalancerState? state, CustomResourceOptions? opts = null)
    public static CloudLoadbalancer get(String name, Output<String> id, CloudLoadbalancerState state, CustomResourceOptions options)
    resources:  _:    type: ovh:CloudLoadbalancer    get:      id: ${id}
    import {
      to = ovh_cloud_loadbalancer.example
      id = "${id}"
    }
    
    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:
    AvailabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the load balancer.
    CurrentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    Description string
    Load balancer description.
    FlavorName string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    Name string
    Load balancer name.
    Network CloudLoadbalancerNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    Region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    ResourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    UpdatedAt string
    Last update date of the load balancer.
    AvailabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the load balancer.
    CurrentState CloudLoadbalancerCurrentStateArgs
    Current state of the load balancer:
    Description string
    Load balancer description.
    FlavorName string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    Name string
    Load balancer name.
    Network CloudLoadbalancerNetworkArgs
    Network of the VIP. Changing any value of this block recreates the resource.
    Region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    ResourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    UpdatedAt string
    Last update date of the load balancer.
    availability_zone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the load balancer.
    current_state object
    Current state of the load balancer:
    description string
    Load balancer description.
    flavor_name string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    name string
    Load balancer name.
    network object
    Network of the VIP. Changing any value of this block recreates the resource.
    region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    resource_status string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    updated_at string
    Last update date of the load balancer.
    availabilityZone String
    Availability zone for the load balancer. Changing this value recreates the resource.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the load balancer.
    currentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    description String
    Load balancer description.
    flavorName String
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    name String
    Load balancer name.
    network CloudLoadbalancerNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    region String
    Region where the load balancer will be created. Changing this value recreates the resource.
    resourceStatus String
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    updatedAt String
    Last update date of the load balancer.
    availabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the load balancer.
    currentState CloudLoadbalancerCurrentState
    Current state of the load balancer:
    description string
    Load balancer description.
    flavorName string
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    name string
    Load balancer name.
    network CloudLoadbalancerNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    resourceStatus string
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName string
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    updatedAt string
    Last update date of the load balancer.
    availability_zone str
    Availability zone for the load balancer. Changing this value recreates the resource.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the load balancer.
    current_state CloudLoadbalancerCurrentStateArgs
    Current state of the load balancer:
    description str
    Load balancer description.
    flavor_name str
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    name str
    Load balancer name.
    network CloudLoadbalancerNetworkArgs
    Network of the VIP. Changing any value of this block recreates the resource.
    region str
    Region where the load balancer will be created. Changing this value recreates the resource.
    resource_status str
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name str
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    updated_at str
    Last update date of the load balancer.
    availabilityZone String
    Availability zone for the load balancer. Changing this value recreates the resource.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the load balancer.
    currentState Property Map
    Current state of the load balancer:
    description String
    Load balancer description.
    flavorName String
    Name of the load balancer flavor. Must be one of SMALL, MEDIUM, LARGE, XL. Changing this value recreates the resource.
    name String
    Load balancer name.
    network Property Map
    Network of the VIP. Changing any value of this block recreates the resource.
    region String
    Region where the load balancer will be created. Changing this value recreates the resource.
    resourceStatus String
    Load balancer readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
    updatedAt String
    Last update date of the load balancer.

    Supporting Types

    CloudLoadbalancerCurrentState, CloudLoadbalancerCurrentStateArgs

    AvailabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    Description string
    Load balancer description.
    Flavor CloudLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    Name string
    Load balancer name.
    Network CloudLoadbalancerCurrentStateNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    OperatingStatus string
    Operating status of the load balancer.
    ProvisioningStatus string
    Provisioning status of the load balancer.
    Region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    AvailabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    Description string
    Load balancer description.
    Flavor CloudLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    Name string
    Load balancer name.
    Network CloudLoadbalancerCurrentStateNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    OperatingStatus string
    Operating status of the load balancer.
    ProvisioningStatus string
    Provisioning status of the load balancer.
    Region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    availability_zone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    description string
    Load balancer description.
    flavor object
    Load balancer flavor reference:
    name string
    Load balancer name.
    network object
    Network of the VIP. Changing any value of this block recreates the resource.
    operating_status string
    Operating status of the load balancer.
    provisioning_status string
    Provisioning status of the load balancer.
    region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    availabilityZone String
    Availability zone for the load balancer. Changing this value recreates the resource.
    description String
    Load balancer description.
    flavor CloudLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    name String
    Load balancer name.
    network CloudLoadbalancerCurrentStateNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    operatingStatus String
    Operating status of the load balancer.
    provisioningStatus String
    Provisioning status of the load balancer.
    region String
    Region where the load balancer will be created. Changing this value recreates the resource.
    availabilityZone string
    Availability zone for the load balancer. Changing this value recreates the resource.
    description string
    Load balancer description.
    flavor CloudLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    name string
    Load balancer name.
    network CloudLoadbalancerCurrentStateNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    operatingStatus string
    Operating status of the load balancer.
    provisioningStatus string
    Provisioning status of the load balancer.
    region string
    Region where the load balancer will be created. Changing this value recreates the resource.
    availability_zone str
    Availability zone for the load balancer. Changing this value recreates the resource.
    description str
    Load balancer description.
    flavor CloudLoadbalancerCurrentStateFlavor
    Load balancer flavor reference:
    name str
    Load balancer name.
    network CloudLoadbalancerCurrentStateNetwork
    Network of the VIP. Changing any value of this block recreates the resource.
    operating_status str
    Operating status of the load balancer.
    provisioning_status str
    Provisioning status of the load balancer.
    region str
    Region where the load balancer will be created. Changing this value recreates the resource.
    availabilityZone String
    Availability zone for the load balancer. Changing this value recreates the resource.
    description String
    Load balancer description.
    flavor Property Map
    Load balancer flavor reference:
    name String
    Load balancer name.
    network Property Map
    Network of the VIP. Changing any value of this block recreates the resource.
    operatingStatus String
    Operating status of the load balancer.
    provisioningStatus String
    Provisioning status of the load balancer.
    region String
    Region where the load balancer will be created. Changing this value recreates the resource.

    CloudLoadbalancerCurrentStateFlavor, CloudLoadbalancerCurrentStateFlavorArgs

    Id string
    Flavor ID.
    Id string
    Flavor ID.
    id string
    Flavor ID.
    id String
    Flavor ID.
    id string
    Flavor ID.
    id str
    Flavor ID.
    id String
    Flavor ID.

    CloudLoadbalancerCurrentStateNetwork, CloudLoadbalancerCurrentStateNetworkArgs

    Addresses List<CloudLoadbalancerCurrentStateNetworkAddress>
    Addresses carried by the VIP port:
    Id string
    ID of the network for the VIP.
    SubnetId string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    Addresses []CloudLoadbalancerCurrentStateNetworkAddress
    Addresses carried by the VIP port:
    Id string
    ID of the network for the VIP.
    SubnetId string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    addresses list(object)
    Addresses carried by the VIP port:
    id string
    ID of the network for the VIP.
    subnet_id string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    addresses List<CloudLoadbalancerCurrentStateNetworkAddress>
    Addresses carried by the VIP port:
    id String
    ID of the network for the VIP.
    subnetId String
    ID of the subnet for the VIP. The subnet must belong to the network above.
    addresses CloudLoadbalancerCurrentStateNetworkAddress[]
    Addresses carried by the VIP port:
    id string
    ID of the network for the VIP.
    subnetId string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    addresses Sequence[CloudLoadbalancerCurrentStateNetworkAddress]
    Addresses carried by the VIP port:
    id str
    ID of the network for the VIP.
    subnet_id str
    ID of the subnet for the VIP. The subnet must belong to the network above.
    addresses List<Property Map>
    Addresses carried by the VIP port:
    id String
    ID of the network for the VIP.
    subnetId String
    ID of the subnet for the VIP. The subnet must belong to the network above.

    CloudLoadbalancerCurrentStateNetworkAddress, CloudLoadbalancerCurrentStateNetworkAddressArgs

    Ip string
    IP address.
    Type string
    Address type (FIXED, FLOATING).
    Ip string
    IP address.
    Type string
    Address type (FIXED, FLOATING).
    ip string
    IP address.
    type string
    Address type (FIXED, FLOATING).
    ip String
    IP address.
    type String
    Address type (FIXED, FLOATING).
    ip string
    IP address.
    type string
    Address type (FIXED, FLOATING).
    ip str
    IP address.
    type str
    Address type (FIXED, FLOATING).
    ip String
    IP address.
    type String
    Address type (FIXED, FLOATING).

    CloudLoadbalancerNetwork, CloudLoadbalancerNetworkArgs

    Id string
    ID of the network for the VIP.
    SubnetId string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    Ip string
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.
    Id string
    ID of the network for the VIP.
    SubnetId string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    Ip string
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.
    id string
    ID of the network for the VIP.
    subnet_id string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    ip string
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.
    id String
    ID of the network for the VIP.
    subnetId String
    ID of the subnet for the VIP. The subnet must belong to the network above.
    ip String
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.
    id string
    ID of the network for the VIP.
    subnetId string
    ID of the subnet for the VIP. The subnet must belong to the network above.
    ip string
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.
    id str
    ID of the network for the VIP.
    subnet_id str
    ID of the subnet for the VIP. The subnet must belong to the network above.
    ip str
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.
    id String
    ID of the network for the VIP.
    subnetId String
    ID of the subnet for the VIP. The subnet must belong to the network above.
    ip String
    IP of the VIP. When it belongs to the subnet CIDR, it pins the fixed VIP address: it must be inside the subnet allocation pool, must not be the subnet gateway IP and must not already be taken by another port. When it is outside the subnet CIDR, it must be an existing floating IP of the project in that region, not already associated with a port, and the subnet must be attached to a router with an external gateway; the floating IP is then associated to the VIP port. Left empty, the address is picked automatically inside the subnet.

    Import

    A cloud load balancer can be imported using the service_name and loadbalancer_id, separated by /:

    terraform

    import {

    to = ovh_cloud_loadbalancer.lb

    id = “<service_name>/<loadbalancer_id>”

    }

    bash

    $ pulumi import ovh:index/cloudLoadbalancer:CloudLoadbalancer lb service_name/loadbalancer_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.21.0
    published on Friday, Sep 25, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial