1. Packages
  2. Scaleway
  3. API Docs
  4. getDocumentdbLoadBalancerEndpoint
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.getDocumentdbLoadBalancerEndpoint

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Gets information about an DocumentDB load balancer endpoint.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myEndpoint = scaleway.getDocumentdbLoadBalancerEndpoint({
        instanceId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_endpoint = scaleway.get_documentdb_load_balancer_endpoint(instance_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.GetDocumentdbLoadBalancerEndpoint(ctx, &scaleway.GetDocumentdbLoadBalancerEndpointArgs{
    			InstanceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myEndpoint = Scaleway.GetDocumentdbLoadBalancerEndpoint.Invoke(new()
        {
            InstanceId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetDocumentdbLoadBalancerEndpointArgs;
    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 myEndpoint = ScalewayFunctions.getDocumentdbLoadBalancerEndpoint(GetDocumentdbLoadBalancerEndpointArgs.builder()
                .instanceId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myEndpoint:
        fn::invoke:
          Function: scaleway:getDocumentdbLoadBalancerEndpoint
          Arguments:
            instanceId: 11111111-1111-1111-1111-111111111111
    

    Using getDocumentdbLoadBalancerEndpoint

    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 getDocumentdbLoadBalancerEndpoint(args: GetDocumentdbLoadBalancerEndpointArgs, opts?: InvokeOptions): Promise<GetDocumentdbLoadBalancerEndpointResult>
    function getDocumentdbLoadBalancerEndpointOutput(args: GetDocumentdbLoadBalancerEndpointOutputArgs, opts?: InvokeOptions): Output<GetDocumentdbLoadBalancerEndpointResult>
    def get_documentdb_load_balancer_endpoint(instance_id: Optional[str] = None,
                                              instance_name: Optional[str] = None,
                                              project_id: Optional[str] = None,
                                              region: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetDocumentdbLoadBalancerEndpointResult
    def get_documentdb_load_balancer_endpoint_output(instance_id: Optional[pulumi.Input[str]] = None,
                                              instance_name: Optional[pulumi.Input[str]] = None,
                                              project_id: Optional[pulumi.Input[str]] = None,
                                              region: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetDocumentdbLoadBalancerEndpointResult]
    func GetDocumentdbLoadBalancerEndpoint(ctx *Context, args *GetDocumentdbLoadBalancerEndpointArgs, opts ...InvokeOption) (*GetDocumentdbLoadBalancerEndpointResult, error)
    func GetDocumentdbLoadBalancerEndpointOutput(ctx *Context, args *GetDocumentdbLoadBalancerEndpointOutputArgs, opts ...InvokeOption) GetDocumentdbLoadBalancerEndpointResultOutput

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

    public static class GetDocumentdbLoadBalancerEndpoint 
    {
        public static Task<GetDocumentdbLoadBalancerEndpointResult> InvokeAsync(GetDocumentdbLoadBalancerEndpointArgs args, InvokeOptions? opts = null)
        public static Output<GetDocumentdbLoadBalancerEndpointResult> Invoke(GetDocumentdbLoadBalancerEndpointInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDocumentdbLoadBalancerEndpointResult> getDocumentdbLoadBalancerEndpoint(GetDocumentdbLoadBalancerEndpointArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getDocumentdbLoadBalancerEndpoint:getDocumentdbLoadBalancerEndpoint
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The DocumentDB Instance on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    InstanceName string
    The DocumentDB Instance Name on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    ProjectId string
    The ID of the project the DocumentDB endpoint is associated with.
    Region string
    region) The region in which the DocumentDB endpoint exists.
    InstanceId string
    The DocumentDB Instance on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    InstanceName string
    The DocumentDB Instance Name on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    ProjectId string
    The ID of the project the DocumentDB endpoint is associated with.
    Region string
    region) The region in which the DocumentDB endpoint exists.
    instanceId String
    The DocumentDB Instance on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    instanceName String
    The DocumentDB Instance Name on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    projectId String
    The ID of the project the DocumentDB endpoint is associated with.
    region String
    region) The region in which the DocumentDB endpoint exists.
    instanceId string
    The DocumentDB Instance on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    instanceName string
    The DocumentDB Instance Name on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    projectId string
    The ID of the project the DocumentDB endpoint is associated with.
    region string
    region) The region in which the DocumentDB endpoint exists.
    instance_id str
    The DocumentDB Instance on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    instance_name str
    The DocumentDB Instance Name on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    project_id str
    The ID of the project the DocumentDB endpoint is associated with.
    region str
    region) The region in which the DocumentDB endpoint exists.
    instanceId String
    The DocumentDB Instance on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    instanceName String
    The DocumentDB Instance Name on which the endpoint is attached. Only one of instance_name and instance_id should be specified.
    projectId String
    The ID of the project the DocumentDB endpoint is associated with.
    region String
    region) The region in which the DocumentDB endpoint exists.

    getDocumentdbLoadBalancerEndpoint Result

    The following output properties are available:

    Hostname string
    The hostname of your endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    InstanceName string
    Ip string
    The IP of your load balancer service.
    Name string
    The name of your load balancer service.
    Port int
    The port of your load balancer service.
    ProjectId string
    Region string
    Hostname string
    The hostname of your endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    InstanceName string
    Ip string
    The IP of your load balancer service.
    Name string
    The name of your load balancer service.
    Port int
    The port of your load balancer service.
    ProjectId string
    Region string
    hostname String
    The hostname of your endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    instanceName String
    ip String
    The IP of your load balancer service.
    name String
    The name of your load balancer service.
    port Integer
    The port of your load balancer service.
    projectId String
    region String
    hostname string
    The hostname of your endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    instanceName string
    ip string
    The IP of your load balancer service.
    name string
    The name of your load balancer service.
    port number
    The port of your load balancer service.
    projectId string
    region string
    hostname str
    The hostname of your endpoint.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    instance_name str
    ip str
    The IP of your load balancer service.
    name str
    The name of your load balancer service.
    port int
    The port of your load balancer service.
    project_id str
    region str
    hostname String
    The hostname of your endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    instanceName String
    ip String
    The IP of your load balancer service.
    name String
    The name of your load balancer service.
    port Number
    The port of your load balancer service.
    projectId String
    region String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse