vcd.getLbServiceMonitor
Explore with Pulumi AI
Provides a VMware Cloud Director Edge Gateway Load Balancer Service Monitor data source. A service monitor defines health check parameters for a particular type of network traffic. It can be associated with a pool. Pool members are monitored according to the service monitor parameters. See example usage of this data source in server pool resource page.
Note: See additional support notes in service monitor resource page.
Supported in provider v2.4+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const my_monitor = vcd.getLbServiceMonitor({
edgeGateway: "my-edge-gw",
name: "not-managed",
org: "my-org",
vdc: "my-org-vdc",
});
import pulumi
import pulumi_vcd as vcd
my_monitor = vcd.get_lb_service_monitor(edge_gateway="my-edge-gw",
name="not-managed",
org="my-org",
vdc="my-org-vdc")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vcd.LookupLbServiceMonitor(ctx, &vcd.LookupLbServiceMonitorArgs{
EdgeGateway: "my-edge-gw",
Name: "not-managed",
Org: pulumi.StringRef("my-org"),
Vdc: pulumi.StringRef("my-org-vdc"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var my_monitor = Vcd.GetLbServiceMonitor.Invoke(new()
{
EdgeGateway = "my-edge-gw",
Name = "not-managed",
Org = "my-org",
Vdc = "my-org-vdc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetLbServiceMonitorArgs;
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 my-monitor = VcdFunctions.getLbServiceMonitor(GetLbServiceMonitorArgs.builder()
.edgeGateway("my-edge-gw")
.name("not-managed")
.org("my-org")
.vdc("my-org-vdc")
.build());
}
}
variables:
my-monitor:
fn::invoke:
function: vcd:getLbServiceMonitor
arguments:
edgeGateway: my-edge-gw
name: not-managed
org: my-org
vdc: my-org-vdc
Using getLbServiceMonitor
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 getLbServiceMonitor(args: GetLbServiceMonitorArgs, opts?: InvokeOptions): Promise<GetLbServiceMonitorResult>
function getLbServiceMonitorOutput(args: GetLbServiceMonitorOutputArgs, opts?: InvokeOptions): Output<GetLbServiceMonitorResult>
def get_lb_service_monitor(edge_gateway: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbServiceMonitorResult
def get_lb_service_monitor_output(edge_gateway: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
vdc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLbServiceMonitorResult]
func LookupLbServiceMonitor(ctx *Context, args *LookupLbServiceMonitorArgs, opts ...InvokeOption) (*LookupLbServiceMonitorResult, error)
func LookupLbServiceMonitorOutput(ctx *Context, args *LookupLbServiceMonitorOutputArgs, opts ...InvokeOption) LookupLbServiceMonitorResultOutput
> Note: This function is named LookupLbServiceMonitor
in the Go SDK.
public static class GetLbServiceMonitor
{
public static Task<GetLbServiceMonitorResult> InvokeAsync(GetLbServiceMonitorArgs args, InvokeOptions? opts = null)
public static Output<GetLbServiceMonitorResult> Invoke(GetLbServiceMonitorInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLbServiceMonitorResult> getLbServiceMonitor(GetLbServiceMonitorArgs args, InvokeOptions options)
public static Output<GetLbServiceMonitorResult> getLbServiceMonitor(GetLbServiceMonitorArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getLbServiceMonitor:getLbServiceMonitor
arguments:
# arguments dictionary
The following arguments are supported:
- Edge
Gateway string - The name of the edge gateway on which the service monitor is defined
- Name string
- Service Monitor name for identifying the exact service monitor
- Id string
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- Vdc string
- The name of VDC to use, optional if defined at provider level
- Edge
Gateway string - The name of the edge gateway on which the service monitor is defined
- Name string
- Service Monitor name for identifying the exact service monitor
- Id string
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- Vdc string
- The name of VDC to use, optional if defined at provider level
- edge
Gateway String - The name of the edge gateway on which the service monitor is defined
- name String
- Service Monitor name for identifying the exact service monitor
- id String
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- vdc String
- The name of VDC to use, optional if defined at provider level
- edge
Gateway string - The name of the edge gateway on which the service monitor is defined
- name string
- Service Monitor name for identifying the exact service monitor
- id string
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- vdc string
- The name of VDC to use, optional if defined at provider level
- edge_
gateway str - The name of the edge gateway on which the service monitor is defined
- name str
- Service Monitor name for identifying the exact service monitor
- id str
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- vdc str
- The name of VDC to use, optional if defined at provider level
- edge
Gateway String - The name of the edge gateway on which the service monitor is defined
- name String
- Service Monitor name for identifying the exact service monitor
- id String
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- vdc String
- The name of VDC to use, optional if defined at provider level
getLbServiceMonitor Result
The following output properties are available:
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.