1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. RegionLoadBalancerLogSubscription
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.CloudProject.RegionLoadBalancerLogSubscription

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    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 createLogSubscription = new ovh.cloudproject.RegionLoadBalancerLogSubscription("createLogSubscription", {
        kind: "haproxy",
        loadbalancerId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        regionName: "yyyy",
        serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        streamId: "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    create_log_subscription = ovh.cloud_project.RegionLoadBalancerLogSubscription("createLogSubscription",
        kind="haproxy",
        loadbalancer_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        region_name="yyyy",
        service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        stream_id="ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudProject.NewRegionLoadBalancerLogSubscription(ctx, "createLogSubscription", &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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var createLogSubscription = new Ovh.CloudProject.RegionLoadBalancerLogSubscription("createLogSubscription", new()
        {
            Kind = "haproxy",
            LoadbalancerId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
            RegionName = "yyyy",
            ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            StreamId = "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.CloudProject.RegionLoadBalancerLogSubscription;
    import com.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 createLogSubscription = new RegionLoadBalancerLogSubscription("createLogSubscription", RegionLoadBalancerLogSubscriptionArgs.builder()
                .kind("haproxy")
                .loadbalancerId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
                .regionName("yyyy")
                .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .streamId("ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj")
                .build());
    
        }
    }
    
    resources:
      createLogSubscription:
        type: ovh:CloudProject:RegionLoadBalancerLogSubscription
        properties:
          kind: haproxy
          loadbalancerId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
          regionName: yyyy
          serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          streamId: ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj
    

    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 string
    The unique name of the resource.
    args RegionLoadBalancerLogSubscriptionArgs
    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 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 string
    The unique name of the resource.
    args RegionLoadBalancerLogSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegionLoadBalancerLogSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    var regionLoadBalancerLogSubscriptionResource = new RegionLoadBalancerLogSubscription("regionLoadBalancerLogSubscriptionResource", RegionLoadBalancerLogSubscriptionArgs.builder()
        .kind("string")
        .loadbalancerId("string")
        .regionName("string")
        .serviceName("string")
        .streamId("string")
        .build());
    
    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")
    
    const regionLoadBalancerLogSubscriptionResource = new ovh.cloudproject.RegionLoadBalancerLogSubscription("regionLoadBalancerLogSubscriptionResource", {
        kind: "string",
        loadbalancerId: "string",
        regionName: "string",
        serviceName: "string",
        streamId: "string",
    });
    
    type: ovh:CloudProject:RegionLoadBalancerLogSubscription
    properties:
        kind: string
        loadbalancerId: string
        regionName: string
        serviceName: string
        streamId: string
    

    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 string
    haproxy Changing this value recreates the resource.
    LoadbalancerId string
    Loadbalancer id to get the logs Changing this value recreates the resource.
    RegionName string
    A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
    ServiceName 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 string
    Data stream id to use for the subscription Changing this value recreates the resource.
    Kind string
    haproxy Changing this value recreates the resource.
    LoadbalancerId string
    Loadbalancer id to get the logs Changing this value recreates the resource.
    RegionName string
    A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
    ServiceName 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 string
    Data stream id to use for the subscription Changing this value recreates the resource.
    kind String
    haproxy Changing this value recreates the resource.
    loadbalancerId String
    Loadbalancer id to get the logs Changing this value recreates the resource.
    regionName String
    A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
    serviceName 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 String
    Data stream id to use for the subscription Changing this value recreates the resource.
    kind string
    haproxy Changing this value recreates the resource.
    loadbalancerId string
    Loadbalancer id to get the logs Changing this value recreates the resource.
    regionName string
    A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
    serviceName 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 string
    Data stream id to use for the subscription Changing this value recreates the resource.
    kind str
    haproxy Changing this value recreates the resource.
    loadbalancer_id str
    Loadbalancer id to get the logs Changing this value recreates the resource.
    region_name 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 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 str
    Data stream id to use for the subscription Changing this value recreates the resource.
    kind String
    haproxy Changing this value recreates the resource.
    loadbalancerId String
    Loadbalancer id to get the logs Changing this value recreates the resource.
    regionName String
    A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
    serviceName 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 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)
    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:
    CreatedAt string
    The date of the subscription creation
    Kind string
    haproxy Changing this value recreates the resource.
    LdpServiceName string
    LDP service name
    LoadbalancerId string
    Loadbalancer id to get the logs Changing this value recreates the resource.
    OperationId string
    The operation ID
    RegionName 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 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 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 string
    haproxy Changing this value recreates the resource.
    LdpServiceName string
    LDP service name
    LoadbalancerId string
    Loadbalancer id to get the logs Changing this value recreates the resource.
    OperationId string
    The operation ID
    RegionName 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 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 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 String
    haproxy Changing this value recreates the resource.
    ldpServiceName String
    LDP service name
    loadbalancerId String
    Loadbalancer id to get the logs Changing this value recreates the resource.
    operationId String
    The operation ID
    regionName 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 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 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 string
    haproxy Changing this value recreates the resource.
    ldpServiceName string
    LDP service name
    loadbalancerId string
    Loadbalancer id to get the logs Changing this value recreates the resource.
    operationId string
    The operation ID
    regionName 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 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 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 str
    haproxy Changing this value recreates the resource.
    ldp_service_name str
    LDP service name
    loadbalancer_id str
    Loadbalancer id to get the logs Changing this value recreates the resource.
    operation_id str
    The operation ID
    region_name 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 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 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 String
    haproxy Changing this value recreates the resource.
    ldpServiceName String
    LDP service name
    loadbalancerId String
    Loadbalancer id to get the logs Changing this value recreates the resource.
    operationId String
    The operation ID
    regionName 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 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 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.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud