OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.CloudProject.getRegionLoadBalancerLogSubscription
Explore with Pulumi AI
Get information about a subscription 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 sub = ovh.CloudProject.getRegionLoadBalancerLogSubscription({
    loadbalancerId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    regionName: "gggg",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    subscriptionId: "zzzzzzzz-yyyy-xxxx-wwww-vvvvvvvvvvvv",
});
import pulumi
import pulumi_ovh as ovh
sub = ovh.CloudProject.get_region_load_balancer_log_subscription(loadbalancer_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    region_name="gggg",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    subscription_id="zzzzzzzz-yyyy-xxxx-wwww-vvvvvvvvvvvv")
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.GetRegionLoadBalancerLogSubscription(ctx, &cloudproject.GetRegionLoadBalancerLogSubscriptionArgs{
			LoadbalancerId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
			RegionName:     "gggg",
			ServiceName:    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
			SubscriptionId: "zzzzzzzz-yyyy-xxxx-wwww-vvvvvvvvvvvv",
		}, nil)
		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 sub = Ovh.CloudProject.GetRegionLoadBalancerLogSubscription.Invoke(new()
    {
        LoadbalancerId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        RegionName = "gggg",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        SubscriptionId = "zzzzzzzz-yyyy-xxxx-wwww-vvvvvvvvvvvv",
    });
});
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.GetRegionLoadBalancerLogSubscriptionArgs;
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 sub = CloudProjectFunctions.getRegionLoadBalancerLogSubscription(GetRegionLoadBalancerLogSubscriptionArgs.builder()
            .loadbalancerId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
            .regionName("gggg")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .subscriptionId("zzzzzzzz-yyyy-xxxx-wwww-vvvvvvvvvvvv")
            .build());
    }
}
variables:
  sub:
    fn::invoke:
      function: ovh:CloudProject:getRegionLoadBalancerLogSubscription
      arguments:
        loadbalancerId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
        regionName: gggg
        serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        subscriptionId: zzzzzzzz-yyyy-xxxx-wwww-vvvvvvvvvvvv
Using getRegionLoadBalancerLogSubscription
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 getRegionLoadBalancerLogSubscription(args: GetRegionLoadBalancerLogSubscriptionArgs, opts?: InvokeOptions): Promise<GetRegionLoadBalancerLogSubscriptionResult>
function getRegionLoadBalancerLogSubscriptionOutput(args: GetRegionLoadBalancerLogSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetRegionLoadBalancerLogSubscriptionResult>def get_region_load_balancer_log_subscription(loadbalancer_id: Optional[str] = None,
                                              region_name: Optional[str] = None,
                                              service_name: Optional[str] = None,
                                              subscription_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetRegionLoadBalancerLogSubscriptionResult
def get_region_load_balancer_log_subscription_output(loadbalancer_id: Optional[pulumi.Input[str]] = None,
                                              region_name: Optional[pulumi.Input[str]] = None,
                                              service_name: Optional[pulumi.Input[str]] = None,
                                              subscription_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetRegionLoadBalancerLogSubscriptionResult]func GetRegionLoadBalancerLogSubscription(ctx *Context, args *GetRegionLoadBalancerLogSubscriptionArgs, opts ...InvokeOption) (*GetRegionLoadBalancerLogSubscriptionResult, error)
func GetRegionLoadBalancerLogSubscriptionOutput(ctx *Context, args *GetRegionLoadBalancerLogSubscriptionOutputArgs, opts ...InvokeOption) GetRegionLoadBalancerLogSubscriptionResultOutput> Note: This function is named GetRegionLoadBalancerLogSubscription in the Go SDK.
public static class GetRegionLoadBalancerLogSubscription 
{
    public static Task<GetRegionLoadBalancerLogSubscriptionResult> InvokeAsync(GetRegionLoadBalancerLogSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionLoadBalancerLogSubscriptionResult> Invoke(GetRegionLoadBalancerLogSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionLoadBalancerLogSubscriptionResult> getRegionLoadBalancerLogSubscription(GetRegionLoadBalancerLogSubscriptionArgs args, InvokeOptions options)
public static Output<GetRegionLoadBalancerLogSubscriptionResult> getRegionLoadBalancerLogSubscription(GetRegionLoadBalancerLogSubscriptionArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:CloudProject/getRegionLoadBalancerLogSubscription:getRegionLoadBalancerLogSubscription
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LoadbalancerId string
- Loadbalancer id to get the logs
- RegionName string
- A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
- ServiceName string
- The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- SubscriptionId string
- Subscription id
- LoadbalancerId string
- Loadbalancer id to get the logs
- RegionName string
- A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
- ServiceName string
- The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- SubscriptionId string
- Subscription id
- loadbalancerId String
- Loadbalancer id to get the logs
- regionName String
- A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
- serviceName String
- The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- subscriptionId String
- Subscription id
- loadbalancerId string
- Loadbalancer id to get the logs
- regionName string
- A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
- serviceName string
- The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- subscriptionId string
- Subscription id
- loadbalancer_id str
- Loadbalancer id to get the logs
- region_name str
- A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
- service_name str
- The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- subscription_id str
- Subscription id
- loadbalancerId String
- Loadbalancer id to get the logs
- regionName String
- A valid OVHcloud public cloud region name in which the loadbalancer is available. Ex.: "GRA11".
- serviceName String
- The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- subscriptionId String
- Subscription id
getRegionLoadBalancerLogSubscription Result
The following output properties are available:
- CreatedAt string
- The date of the subscription creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Router used for forwarding log
- LdpService stringName 
- LDP service name
- 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".
- ResourceName string
- The resource name
- ResourceType string
- The resource type
- ServiceName string
- The id of the public cloud project.
- StreamId string
- Data stream id to use for the subscription
- 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.
- Kind string
- Router used for forwarding log
- LdpService stringName 
- LDP service name
- 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".
- ResourceName string
- The resource name
- ResourceType string
- The resource type
- ServiceName string
- The id of the public cloud project.
- StreamId string
- Data stream id to use for the subscription
- 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.
- kind String
- Router used for forwarding log
- ldpService StringName 
- LDP service name
- 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".
- resourceName String
- The resource name
- resourceType String
- The resource type
- serviceName String
- The id of the public cloud project.
- streamId String
- Data stream id to use for the subscription
- 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.
- kind string
- Router used for forwarding log
- ldpService stringName 
- LDP service name
- 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".
- resourceName string
- The resource name
- resourceType string
- The resource type
- serviceName string
- The id of the public cloud project.
- streamId string
- Data stream id to use for the subscription
- 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.
- kind str
- Router used for forwarding log
- ldp_service_ strname 
- LDP service name
- 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".
- resource_name str
- The resource name
- resource_type str
- The resource type
- service_name str
- The id of the public cloud project.
- stream_id str
- Data stream id to use for the subscription
- 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.
- kind String
- Router used for forwarding log
- ldpService StringName 
- LDP service name
- 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".
- resourceName String
- The resource name
- resourceType String
- The resource type
- serviceName String
- The id of the public cloud project.
- streamId String
- Data stream id to use for the subscription
- 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 ovhTerraform Provider.