1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getRegionLoadBalancerLogSubscriptions
OVHCloud v2.1.0 published on Friday, Mar 28, 2025 by OVHcloud

ovh.CloudProject.getRegionLoadBalancerLogSubscriptions

Explore with Pulumi AI

Get information about subscriptions to a Managed Loadbalancer Logs Service in a public cloud project.

Example Usage

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

const subs = ovh.CloudProject.getRegionLoadBalancerLogSubscriptions({
    loadbalancerId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    regionName: "gggg",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
});
Copy
import pulumi
import pulumi_ovh as ovh

subs = ovh.CloudProject.get_region_load_balancer_log_subscriptions(loadbalancer_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    region_name="gggg",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
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.GetRegionLoadBalancerLogSubscriptions(ctx, &cloudproject.GetRegionLoadBalancerLogSubscriptionsArgs{
			LoadbalancerId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
			RegionName:     "gggg",
			ServiceName:    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
		}, nil)
		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 subs = Ovh.CloudProject.GetRegionLoadBalancerLogSubscriptions.Invoke(new()
    {
        LoadbalancerId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        RegionName = "gggg",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetRegionLoadBalancerLogSubscriptionsArgs;
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 subs = CloudProjectFunctions.getRegionLoadBalancerLogSubscriptions(GetRegionLoadBalancerLogSubscriptionsArgs.builder()
            .loadbalancerId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
            .regionName("gggg")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .build());

    }
}
Copy
variables:
  subs:
    fn::invoke:
      function: ovh:CloudProject:getRegionLoadBalancerLogSubscriptions
      arguments:
        loadbalancerId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
        regionName: gggg
        serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Copy

Using getRegionLoadBalancerLogSubscriptions

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRegionLoadBalancerLogSubscriptions(args: GetRegionLoadBalancerLogSubscriptionsArgs, opts?: InvokeOptions): Promise<GetRegionLoadBalancerLogSubscriptionsResult>
function getRegionLoadBalancerLogSubscriptionsOutput(args: GetRegionLoadBalancerLogSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetRegionLoadBalancerLogSubscriptionsResult>
Copy
def get_region_load_balancer_log_subscriptions(kind: Optional[str] = None,
                                               loadbalancer_id: Optional[str] = None,
                                               region_name: Optional[str] = None,
                                               service_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetRegionLoadBalancerLogSubscriptionsResult
def get_region_load_balancer_log_subscriptions_output(kind: Optional[pulumi.Input[str]] = None,
                                               loadbalancer_id: Optional[pulumi.Input[str]] = None,
                                               region_name: Optional[pulumi.Input[str]] = None,
                                               service_name: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetRegionLoadBalancerLogSubscriptionsResult]
Copy
func GetRegionLoadBalancerLogSubscriptions(ctx *Context, args *GetRegionLoadBalancerLogSubscriptionsArgs, opts ...InvokeOption) (*GetRegionLoadBalancerLogSubscriptionsResult, error)
func GetRegionLoadBalancerLogSubscriptionsOutput(ctx *Context, args *GetRegionLoadBalancerLogSubscriptionsOutputArgs, opts ...InvokeOption) GetRegionLoadBalancerLogSubscriptionsResultOutput
Copy

> Note: This function is named GetRegionLoadBalancerLogSubscriptions in the Go SDK.

public static class GetRegionLoadBalancerLogSubscriptions 
{
    public static Task<GetRegionLoadBalancerLogSubscriptionsResult> InvokeAsync(GetRegionLoadBalancerLogSubscriptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionLoadBalancerLogSubscriptionsResult> Invoke(GetRegionLoadBalancerLogSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegionLoadBalancerLogSubscriptionsResult> getRegionLoadBalancerLogSubscriptions(GetRegionLoadBalancerLogSubscriptionsArgs args, InvokeOptions options)
public static Output<GetRegionLoadBalancerLogSubscriptionsResult> getRegionLoadBalancerLogSubscriptions(GetRegionLoadBalancerLogSubscriptionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:CloudProject/getRegionLoadBalancerLogSubscriptions:getRegionLoadBalancerLogSubscriptions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LoadbalancerId This property is required. string
Loadbalancer id to get the logs
RegionName This property is required. string
A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
Kind string
currently only "haproxy" is available
LoadbalancerId This property is required. string
Loadbalancer id to get the logs
RegionName This property is required. string
A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
Kind string
currently only "haproxy" is available
loadbalancerId This property is required. String
Loadbalancer id to get the logs
regionName This property is required. String
A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
kind String
currently only "haproxy" is available
loadbalancerId This property is required. string
Loadbalancer id to get the logs
regionName This property is required. string
A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
serviceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
kind string
currently only "haproxy" is available
loadbalancer_id This property is required. str
Loadbalancer id to get the logs
region_name This property is required. str
A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
service_name This property is required. str
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
kind str
currently only "haproxy" is available
loadbalancerId This property is required. String
Loadbalancer id to get the logs
regionName This property is required. String
A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
kind String
currently only "haproxy" is available

getRegionLoadBalancerLogSubscriptions Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
LoadbalancerId string
Loadbalancer id to get the logs
RegionName string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11".
ServiceName string
The id of the public cloud project.
SubscriptionIds List<string>
The list of the subscription id
Kind string
Router used for forwarding log
Id string
The provider-assigned unique ID for this managed resource.
LoadbalancerId string
Loadbalancer id to get the logs
RegionName string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11".
ServiceName string
The id of the public cloud project.
SubscriptionIds []string
The list of the subscription id
Kind string
Router used for forwarding log
id String
The provider-assigned unique ID for this managed resource.
loadbalancerId String
Loadbalancer id to get the logs
regionName String
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11".
serviceName String
The id of the public cloud project.
subscriptionIds List<String>
The list of the subscription id
kind String
Router used for forwarding log
id string
The provider-assigned unique ID for this managed resource.
loadbalancerId string
Loadbalancer id to get the logs
regionName string
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11".
serviceName string
The id of the public cloud project.
subscriptionIds string[]
The list of the subscription id
kind string
Router used for forwarding log
id str
The provider-assigned unique ID for this managed resource.
loadbalancer_id str
Loadbalancer id to get the logs
region_name str
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11".
service_name str
The id of the public cloud project.
subscription_ids Sequence[str]
The list of the subscription id
kind str
Router used for forwarding log
id String
The provider-assigned unique ID for this managed resource.
loadbalancerId String
Loadbalancer id to get the logs
regionName String
A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11".
serviceName String
The id of the public cloud project.
subscriptionIds List<String>
The list of the subscription id
kind String
Router used for forwarding log

Package Details

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