1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. RegionLoadBalancerLogSubscription
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.CloudProject.RegionLoadBalancerLogSubscription

Explore with Pulumi AI

Subscribe to a Managed Loadbalance Logs Service in a public cloud project.

Example Usage

Create a subscription

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";

const subscription = new ovh.cloudproject.RegionLoadBalancerLogSubscription("subscription", {
    kind: "haproxy",
    loadbalancerId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    regionName: "yyyy",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    streamId: "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj",
});
Copy
import pulumi
import pulumi_ovh as ovh

subscription = ovh.cloud_project.RegionLoadBalancerLogSubscription("subscription",
    kind="haproxy",
    loadbalancer_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    region_name="yyyy",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    stream_id="ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj")
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.NewRegionLoadBalancerLogSubscription(ctx, "subscription", &cloudproject.RegionLoadBalancerLogSubscriptionArgs{
			Kind:           pulumi.String("haproxy"),
			LoadbalancerId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
			RegionName:     pulumi.String("yyyy"),
			ServiceName:    pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			StreamId:       pulumi.String("ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var subscription = new Ovh.CloudProject.RegionLoadBalancerLogSubscription("subscription", new()
    {
        Kind = "haproxy",
        LoadbalancerId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        RegionName = "yyyy",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        StreamId = "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.CloudProject.RegionLoadBalancerLogSubscription;
import com.ovhcloud.pulumi.ovh.CloudProject.RegionLoadBalancerLogSubscriptionArgs;
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) {
        var subscription = new RegionLoadBalancerLogSubscription("subscription", RegionLoadBalancerLogSubscriptionArgs.builder()
            .kind("haproxy")
            .loadbalancerId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
            .regionName("yyyy")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .streamId("ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj")
            .build());

    }
}
Copy
resources:
  subscription:
    type: ovh:CloudProject:RegionLoadBalancerLogSubscription
    properties:
      kind: haproxy
      loadbalancerId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
      regionName: yyyy
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      streamId: ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj
Copy

Create RegionLoadBalancerLogSubscription Resource

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

Constructor syntax

new RegionLoadBalancerLogSubscription(name: string, args: RegionLoadBalancerLogSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def RegionLoadBalancerLogSubscription(resource_name: str,
                                      args: RegionLoadBalancerLogSubscriptionArgs,
                                      opts: Optional[ResourceOptions] = None)

@overload
def RegionLoadBalancerLogSubscription(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      kind: Optional[str] = None,
                                      loadbalancer_id: Optional[str] = None,
                                      region_name: Optional[str] = None,
                                      service_name: Optional[str] = None,
                                      stream_id: Optional[str] = None)
func NewRegionLoadBalancerLogSubscription(ctx *Context, name string, args RegionLoadBalancerLogSubscriptionArgs, opts ...ResourceOption) (*RegionLoadBalancerLogSubscription, error)
public RegionLoadBalancerLogSubscription(string name, RegionLoadBalancerLogSubscriptionArgs args, CustomResourceOptions? opts = null)
public RegionLoadBalancerLogSubscription(String name, RegionLoadBalancerLogSubscriptionArgs args)
public RegionLoadBalancerLogSubscription(String name, RegionLoadBalancerLogSubscriptionArgs args, CustomResourceOptions options)
type: ovh:CloudProject:RegionLoadBalancerLogSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RegionLoadBalancerLogSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RegionLoadBalancerLogSubscriptionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RegionLoadBalancerLogSubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RegionLoadBalancerLogSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RegionLoadBalancerLogSubscriptionArgs
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 regionLoadBalancerLogSubscriptionResource = new Ovh.CloudProject.RegionLoadBalancerLogSubscription("regionLoadBalancerLogSubscriptionResource", new()
{
    Kind = "string",
    LoadbalancerId = "string",
    RegionName = "string",
    ServiceName = "string",
    StreamId = "string",
});
Copy
example, err := CloudProject.NewRegionLoadBalancerLogSubscription(ctx, "regionLoadBalancerLogSubscriptionResource", &CloudProject.RegionLoadBalancerLogSubscriptionArgs{
	Kind:           pulumi.String("string"),
	LoadbalancerId: pulumi.String("string"),
	RegionName:     pulumi.String("string"),
	ServiceName:    pulumi.String("string"),
	StreamId:       pulumi.String("string"),
})
Copy
var regionLoadBalancerLogSubscriptionResource = new RegionLoadBalancerLogSubscription("regionLoadBalancerLogSubscriptionResource", RegionLoadBalancerLogSubscriptionArgs.builder()
    .kind("string")
    .loadbalancerId("string")
    .regionName("string")
    .serviceName("string")
    .streamId("string")
    .build());
Copy
region_load_balancer_log_subscription_resource = ovh.cloud_project.RegionLoadBalancerLogSubscription("regionLoadBalancerLogSubscriptionResource",
    kind="string",
    loadbalancer_id="string",
    region_name="string",
    service_name="string",
    stream_id="string")
Copy
const regionLoadBalancerLogSubscriptionResource = new ovh.cloudproject.RegionLoadBalancerLogSubscription("regionLoadBalancerLogSubscriptionResource", {
    kind: "string",
    loadbalancerId: "string",
    regionName: "string",
    serviceName: "string",
    streamId: "string",
});
Copy
type: ovh:CloudProject:RegionLoadBalancerLogSubscription
properties:
    kind: string
    loadbalancerId: string
    regionName: string
    serviceName: string
    streamId: string
Copy

RegionLoadBalancerLogSubscription 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 RegionLoadBalancerLogSubscription resource accepts the following input properties:

Kind
This property is required.
Changes to this property will trigger replacement.
string
haproxy Changing this value recreates the resource.
LoadbalancerId
This property is required.
Changes to this property will trigger replacement.
string
Loadbalancer id to get the logs Changing this value recreates the resource.
RegionName
This property is required.
Changes to this property will trigger replacement.
string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
StreamId
This property is required.
Changes to this property will trigger replacement.
string
Data stream id to use for the subscription Changing this value recreates the resource.
Kind
This property is required.
Changes to this property will trigger replacement.
string
haproxy Changing this value recreates the resource.
LoadbalancerId
This property is required.
Changes to this property will trigger replacement.
string
Loadbalancer id to get the logs Changing this value recreates the resource.
RegionName
This property is required.
Changes to this property will trigger replacement.
string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
StreamId
This property is required.
Changes to this property will trigger replacement.
string
Data stream id to use for the subscription Changing this value recreates the resource.
kind
This property is required.
Changes to this property will trigger replacement.
String
haproxy Changing this value recreates the resource.
loadbalancerId
This property is required.
Changes to this property will trigger replacement.
String
Loadbalancer id to get the logs Changing this value recreates the resource.
regionName
This property is required.
Changes to this property will trigger replacement.
String
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
streamId
This property is required.
Changes to this property will trigger replacement.
String
Data stream id to use for the subscription Changing this value recreates the resource.
kind
This property is required.
Changes to this property will trigger replacement.
string
haproxy Changing this value recreates the resource.
loadbalancerId
This property is required.
Changes to this property will trigger replacement.
string
Loadbalancer id to get the logs Changing this value recreates the resource.
regionName
This property is required.
Changes to this property will trigger replacement.
string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
streamId
This property is required.
Changes to this property will trigger replacement.
string
Data stream id to use for the subscription Changing this value recreates the resource.
kind
This property is required.
Changes to this property will trigger replacement.
str
haproxy Changing this value recreates the resource.
loadbalancer_id
This property is required.
Changes to this property will trigger replacement.
str
Loadbalancer id to get the logs Changing this value recreates the resource.
region_name
This property is required.
Changes to this property will trigger replacement.
str
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
stream_id
This property is required.
Changes to this property will trigger replacement.
str
Data stream id to use for the subscription Changing this value recreates the resource.
kind
This property is required.
Changes to this property will trigger replacement.
String
haproxy Changing this value recreates the resource.
loadbalancerId
This property is required.
Changes to this property will trigger replacement.
String
Loadbalancer id to get the logs Changing this value recreates the resource.
regionName
This property is required.
Changes to this property will trigger replacement.
String
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
streamId
This property is required.
Changes to this property will trigger replacement.
String
Data stream id to use for the subscription Changing this value recreates the resource.

Outputs

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

CreatedAt string
The date of the subscription creation
Id string
The provider-assigned unique ID for this managed resource.
LdpServiceName string
LDP service name
OperationId string
The operation ID
ResourceName string
The resource name
ResourceType string
The resource type
SubscriptionId string
The subscription id
UpdatedAt string
The last update of the subscription
CreatedAt string
The date of the subscription creation
Id string
The provider-assigned unique ID for this managed resource.
LdpServiceName string
LDP service name
OperationId string
The operation ID
ResourceName string
The resource name
ResourceType string
The resource type
SubscriptionId string
The subscription id
UpdatedAt string
The last update of the subscription
createdAt String
The date of the subscription creation
id String
The provider-assigned unique ID for this managed resource.
ldpServiceName String
LDP service name
operationId String
The operation ID
resourceName String
The resource name
resourceType String
The resource type
subscriptionId String
The subscription id
updatedAt String
The last update of the subscription
createdAt string
The date of the subscription creation
id string
The provider-assigned unique ID for this managed resource.
ldpServiceName string
LDP service name
operationId string
The operation ID
resourceName string
The resource name
resourceType string
The resource type
subscriptionId string
The subscription id
updatedAt string
The last update of the subscription
created_at str
The date of the subscription creation
id str
The provider-assigned unique ID for this managed resource.
ldp_service_name str
LDP service name
operation_id str
The operation ID
resource_name str
The resource name
resource_type str
The resource type
subscription_id str
The subscription id
updated_at str
The last update of the subscription
createdAt String
The date of the subscription creation
id String
The provider-assigned unique ID for this managed resource.
ldpServiceName String
LDP service name
operationId String
The operation ID
resourceName String
The resource name
resourceType String
The resource type
subscriptionId String
The subscription id
updatedAt String
The last update of the subscription

Look up Existing RegionLoadBalancerLogSubscription Resource

Get an existing RegionLoadBalancerLogSubscription 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?: RegionLoadBalancerLogSubscriptionState, opts?: CustomResourceOptions): RegionLoadBalancerLogSubscription
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        kind: Optional[str] = None,
        ldp_service_name: Optional[str] = None,
        loadbalancer_id: Optional[str] = None,
        operation_id: Optional[str] = None,
        region_name: Optional[str] = None,
        resource_name: Optional[str] = None,
        resource_type: Optional[str] = None,
        service_name: Optional[str] = None,
        stream_id: Optional[str] = None,
        subscription_id: Optional[str] = None,
        updated_at: Optional[str] = None) -> RegionLoadBalancerLogSubscription
func GetRegionLoadBalancerLogSubscription(ctx *Context, name string, id IDInput, state *RegionLoadBalancerLogSubscriptionState, opts ...ResourceOption) (*RegionLoadBalancerLogSubscription, error)
public static RegionLoadBalancerLogSubscription Get(string name, Input<string> id, RegionLoadBalancerLogSubscriptionState? state, CustomResourceOptions? opts = null)
public static RegionLoadBalancerLogSubscription get(String name, Output<String> id, RegionLoadBalancerLogSubscriptionState state, CustomResourceOptions options)
resources:  _:    type: ovh:CloudProject:RegionLoadBalancerLogSubscription    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreatedAt string
The date of the subscription creation
Kind Changes to this property will trigger replacement. string
haproxy Changing this value recreates the resource.
LdpServiceName string
LDP service name
LoadbalancerId Changes to this property will trigger replacement. string
Loadbalancer id to get the logs Changing this value recreates the resource.
OperationId string
The operation ID
RegionName Changes to this property will trigger replacement. string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
ResourceName string
The resource name
ResourceType string
The resource type
ServiceName Changes to this property will trigger replacement. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
StreamId Changes to this property will trigger replacement. string
Data stream id to use for the subscription Changing this value recreates the resource.
SubscriptionId string
The subscription id
UpdatedAt string
The last update of the subscription
CreatedAt string
The date of the subscription creation
Kind Changes to this property will trigger replacement. string
haproxy Changing this value recreates the resource.
LdpServiceName string
LDP service name
LoadbalancerId Changes to this property will trigger replacement. string
Loadbalancer id to get the logs Changing this value recreates the resource.
OperationId string
The operation ID
RegionName Changes to this property will trigger replacement. string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
ResourceName string
The resource name
ResourceType string
The resource type
ServiceName Changes to this property will trigger replacement. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
StreamId Changes to this property will trigger replacement. string
Data stream id to use for the subscription Changing this value recreates the resource.
SubscriptionId string
The subscription id
UpdatedAt string
The last update of the subscription
createdAt String
The date of the subscription creation
kind Changes to this property will trigger replacement. String
haproxy Changing this value recreates the resource.
ldpServiceName String
LDP service name
loadbalancerId Changes to this property will trigger replacement. String
Loadbalancer id to get the logs Changing this value recreates the resource.
operationId String
The operation ID
regionName Changes to this property will trigger replacement. String
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
resourceName String
The resource name
resourceType String
The resource type
serviceName Changes to this property will trigger replacement. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
streamId Changes to this property will trigger replacement. String
Data stream id to use for the subscription Changing this value recreates the resource.
subscriptionId String
The subscription id
updatedAt String
The last update of the subscription
createdAt string
The date of the subscription creation
kind Changes to this property will trigger replacement. string
haproxy Changing this value recreates the resource.
ldpServiceName string
LDP service name
loadbalancerId Changes to this property will trigger replacement. string
Loadbalancer id to get the logs Changing this value recreates the resource.
operationId string
The operation ID
regionName Changes to this property will trigger replacement. string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
resourceName string
The resource name
resourceType string
The resource type
serviceName Changes to this property will trigger replacement. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
streamId Changes to this property will trigger replacement. string
Data stream id to use for the subscription Changing this value recreates the resource.
subscriptionId string
The subscription id
updatedAt string
The last update of the subscription
created_at str
The date of the subscription creation
kind Changes to this property will trigger replacement. str
haproxy Changing this value recreates the resource.
ldp_service_name str
LDP service name
loadbalancer_id Changes to this property will trigger replacement. str
Loadbalancer id to get the logs Changing this value recreates the resource.
operation_id str
The operation ID
region_name Changes to this property will trigger replacement. str
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
resource_name str
The resource name
resource_type str
The resource type
service_name Changes to this property will trigger replacement. str
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
stream_id Changes to this property will trigger replacement. str
Data stream id to use for the subscription Changing this value recreates the resource.
subscription_id str
The subscription id
updated_at str
The last update of the subscription
createdAt String
The date of the subscription creation
kind Changes to this property will trigger replacement. String
haproxy Changing this value recreates the resource.
ldpServiceName String
LDP service name
loadbalancerId Changes to this property will trigger replacement. String
Loadbalancer id to get the logs Changing this value recreates the resource.
operationId String
The operation ID
regionName Changes to this property will trigger replacement. String
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
resourceName String
The resource name
resourceType String
The resource type
serviceName Changes to this property will trigger replacement. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used. Changing this value recreates the resource.
streamId Changes to this property will trigger replacement. String
Data stream id to use for the subscription Changing this value recreates the resource.
subscriptionId String
The subscription id
updatedAt String
The last update of the subscription

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.