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",
});
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")
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, "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
})
}
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",
});
});
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 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());
}
}
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
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.
- Loadbalancer
Id string - Loadbalancer id to get the logs Changing this value recreates the resource.
- Region
Name string - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- Service
Name 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. - Stream
Id string - Data stream id to use for the subscription Changing this value recreates the resource.
- Kind string
- haproxy Changing this value recreates the resource.
- Loadbalancer
Id string - Loadbalancer id to get the logs Changing this value recreates the resource.
- Region
Name string - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- Service
Name 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. - Stream
Id string - Data stream id to use for the subscription Changing this value recreates the resource.
- kind String
- haproxy Changing this value recreates the resource.
- loadbalancer
Id String - Loadbalancer id to get the logs Changing this value recreates the resource.
- region
Name String - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- service
Name 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. - stream
Id String - Data stream id to use for the subscription Changing this value recreates the resource.
- kind string
- haproxy Changing this value recreates the resource.
- loadbalancer
Id string - Loadbalancer id to get the logs Changing this value recreates the resource.
- region
Name string - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- service
Name 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. - stream
Id 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.
- loadbalancer
Id String - Loadbalancer id to get the logs Changing this value recreates the resource.
- region
Name String - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- service
Name 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. - stream
Id 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:
- Created
At string - The date of the subscription creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Ldp
Service stringName - LDP service name
- Operation
Id string - The operation ID
- Resource
Name string - The resource name
- Resource
Type string - The resource type
- Subscription
Id string - The subscription id
- Updated
At string - The last update of the subscription
- Created
At string - The date of the subscription creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Ldp
Service stringName - LDP service name
- Operation
Id string - The operation ID
- Resource
Name string - The resource name
- Resource
Type string - The resource type
- Subscription
Id string - The subscription id
- Updated
At string - The last update of the subscription
- created
At String - The date of the subscription creation
- id String
- The provider-assigned unique ID for this managed resource.
- ldp
Service StringName - LDP service name
- operation
Id String - The operation ID
- resource
Name String - The resource name
- resource
Type String - The resource type
- subscription
Id String - The subscription id
- updated
At String - The last update of the subscription
- created
At string - The date of the subscription creation
- id string
- The provider-assigned unique ID for this managed resource.
- ldp
Service stringName - LDP service name
- operation
Id string - The operation ID
- resource
Name string - The resource name
- resource
Type string - The resource type
- subscription
Id string - The subscription id
- updated
At 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_ strname - 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
- created
At String - The date of the subscription creation
- id String
- The provider-assigned unique ID for this managed resource.
- ldp
Service StringName - LDP service name
- operation
Id String - The operation ID
- resource
Name String - The resource name
- resource
Type String - The resource type
- subscription
Id String - The subscription id
- updated
At 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.
- Created
At string - The date of the subscription creation
- Kind string
- haproxy Changing this value recreates the resource.
- Ldp
Service stringName - LDP service name
- Loadbalancer
Id string - Loadbalancer id to get the logs Changing this value recreates the resource.
- Operation
Id string - The operation ID
- Region
Name string - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- Resource
Name string - The resource name
- Resource
Type string - The resource type
- Service
Name 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. - Stream
Id string - Data stream id to use for the subscription Changing this value recreates the resource.
- Subscription
Id string - The subscription id
- Updated
At string - The last update of the subscription
- Created
At string - The date of the subscription creation
- Kind string
- haproxy Changing this value recreates the resource.
- Ldp
Service stringName - LDP service name
- Loadbalancer
Id string - Loadbalancer id to get the logs Changing this value recreates the resource.
- Operation
Id string - The operation ID
- Region
Name string - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- Resource
Name string - The resource name
- Resource
Type string - The resource type
- Service
Name 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. - Stream
Id string - Data stream id to use for the subscription Changing this value recreates the resource.
- Subscription
Id string - The subscription id
- Updated
At string - The last update of the subscription
- created
At String - The date of the subscription creation
- kind String
- haproxy Changing this value recreates the resource.
- ldp
Service StringName - LDP service name
- loadbalancer
Id String - Loadbalancer id to get the logs Changing this value recreates the resource.
- operation
Id String - The operation ID
- region
Name String - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- resource
Name String - The resource name
- resource
Type String - The resource type
- service
Name 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. - stream
Id String - Data stream id to use for the subscription Changing this value recreates the resource.
- subscription
Id String - The subscription id
- updated
At String - The last update of the subscription
- created
At string - The date of the subscription creation
- kind string
- haproxy Changing this value recreates the resource.
- ldp
Service stringName - LDP service name
- loadbalancer
Id string - Loadbalancer id to get the logs Changing this value recreates the resource.
- operation
Id string - The operation ID
- region
Name string - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- resource
Name string - The resource name
- resource
Type string - The resource type
- service
Name 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. - stream
Id string - Data stream id to use for the subscription Changing this value recreates the resource.
- subscription
Id string - The subscription id
- updated
At 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_ strname - 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
- created
At String - The date of the subscription creation
- kind String
- haproxy Changing this value recreates the resource.
- ldp
Service StringName - LDP service name
- loadbalancer
Id String - Loadbalancer id to get the logs Changing this value recreates the resource.
- operation
Id String - The operation ID
- region
Name String - A valid OVHcloud public cloud region name in which the loadbalancer will be available. Ex.: "GRA11". Changing this value recreates the resource.
- resource
Name String - The resource name
- resource
Type String - The resource type
- service
Name 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. - stream
Id String - Data stream id to use for the subscription Changing this value recreates the resource.
- subscription
Id String - The subscription id
- updated
At 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.