1. Packages
  2. Bigip Provider
  3. API Docs
  4. fast
  5. getConsulServiceDiscovery
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

f5bigip.fast.getConsulServiceDiscovery

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

    Use this data source (f5bigip.fast.getConsulServiceDiscovery) to get the Consul Service discovery config to be used for http/https app deployment in FAST.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const TC2 = f5bigip.fast.getConsulServiceDiscovery({
        uri: "https://192.0.2.100:8500/v1/catalog/nodes",
        port: 8080,
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    tc2 = f5bigip.fast.get_consul_service_discovery(uri="https://192.0.2.100:8500/v1/catalog/nodes",
        port=8080)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/fast"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fast.GetConsulServiceDiscovery(ctx, &fast.GetConsulServiceDiscoveryArgs{
    			Uri:  "https://192.0.2.100:8500/v1/catalog/nodes",
    			Port: 8080,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using F5BigIP = Pulumi.F5BigIP;
    
    return await Deployment.RunAsync(() => 
    {
        var TC2 = F5BigIP.Fast.GetConsulServiceDiscovery.Invoke(new()
        {
            Uri = "https://192.0.2.100:8500/v1/catalog/nodes",
            Port = 8080,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.f5bigip.fast.FastFunctions;
    import com.pulumi.f5bigip.fast.inputs.GetConsulServiceDiscoveryArgs;
    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 TC2 = FastFunctions.getConsulServiceDiscovery(GetConsulServiceDiscoveryArgs.builder()
                .uri("https://192.0.2.100:8500/v1/catalog/nodes")
                .port(8080)
                .build());
    
        }
    }
    
    variables:
      TC2:
        fn::invoke:
          Function: f5bigip:fast:getConsulServiceDiscovery
          Arguments:
            uri: https://192.0.2.100:8500/v1/catalog/nodes
            port: 8080
    

    Using getConsulServiceDiscovery

    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 getConsulServiceDiscovery(args: GetConsulServiceDiscoveryArgs, opts?: InvokeOptions): Promise<GetConsulServiceDiscoveryResult>
    function getConsulServiceDiscoveryOutput(args: GetConsulServiceDiscoveryOutputArgs, opts?: InvokeOptions): Output<GetConsulServiceDiscoveryResult>
    def get_consul_service_discovery(address_realm: Optional[str] = None,
                                     credential_update: Optional[bool] = None,
                                     encoded_token: Optional[str] = None,
                                     jmes_path_query: Optional[str] = None,
                                     minimum_monitors: Optional[str] = None,
                                     port: Optional[int] = None,
                                     reject_unauthorized: Optional[bool] = None,
                                     trust_ca: Optional[str] = None,
                                     type: Optional[str] = None,
                                     undetectable_action: Optional[str] = None,
                                     update_interval: Optional[str] = None,
                                     uri: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetConsulServiceDiscoveryResult
    def get_consul_service_discovery_output(address_realm: Optional[pulumi.Input[str]] = None,
                                     credential_update: Optional[pulumi.Input[bool]] = None,
                                     encoded_token: Optional[pulumi.Input[str]] = None,
                                     jmes_path_query: Optional[pulumi.Input[str]] = None,
                                     minimum_monitors: Optional[pulumi.Input[str]] = None,
                                     port: Optional[pulumi.Input[int]] = None,
                                     reject_unauthorized: Optional[pulumi.Input[bool]] = None,
                                     trust_ca: Optional[pulumi.Input[str]] = None,
                                     type: Optional[pulumi.Input[str]] = None,
                                     undetectable_action: Optional[pulumi.Input[str]] = None,
                                     update_interval: Optional[pulumi.Input[str]] = None,
                                     uri: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetConsulServiceDiscoveryResult]
    func GetConsulServiceDiscovery(ctx *Context, args *GetConsulServiceDiscoveryArgs, opts ...InvokeOption) (*GetConsulServiceDiscoveryResult, error)
    func GetConsulServiceDiscoveryOutput(ctx *Context, args *GetConsulServiceDiscoveryOutputArgs, opts ...InvokeOption) GetConsulServiceDiscoveryResultOutput

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

    public static class GetConsulServiceDiscovery 
    {
        public static Task<GetConsulServiceDiscoveryResult> InvokeAsync(GetConsulServiceDiscoveryArgs args, InvokeOptions? opts = null)
        public static Output<GetConsulServiceDiscoveryResult> Invoke(GetConsulServiceDiscoveryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConsulServiceDiscoveryResult> getConsulServiceDiscovery(GetConsulServiceDiscoveryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: f5bigip:fast/getConsulServiceDiscovery:getConsulServiceDiscovery
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Port int
    Port to be used for AWS service discovery,default 80.
    Uri string
    The location of the node data.
    AddressRealm string
    Specifies whether to look for public or private IP addresses,default private.
    CredentialUpdate bool
    Specifies whether you are updating your credentials,default false.
    EncodedToken string
    Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
    JmesPathQuery string
    Custom JMESPath Query.
    MinimumMonitors string
    Member is down when fewer than minimum monitors report it healthy.
    RejectUnauthorized bool
    If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
    TrustCa string
    CA Bundle to validate server certificates.
    Type string
    UndetectableAction string
    Action to take when node cannot be detected,default remove.
    UpdateInterval string
    Update interval for service discovery.
    Port int
    Port to be used for AWS service discovery,default 80.
    Uri string
    The location of the node data.
    AddressRealm string
    Specifies whether to look for public or private IP addresses,default private.
    CredentialUpdate bool
    Specifies whether you are updating your credentials,default false.
    EncodedToken string
    Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
    JmesPathQuery string
    Custom JMESPath Query.
    MinimumMonitors string
    Member is down when fewer than minimum monitors report it healthy.
    RejectUnauthorized bool
    If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
    TrustCa string
    CA Bundle to validate server certificates.
    Type string
    UndetectableAction string
    Action to take when node cannot be detected,default remove.
    UpdateInterval string
    Update interval for service discovery.
    port Integer
    Port to be used for AWS service discovery,default 80.
    uri String
    The location of the node data.
    addressRealm String
    Specifies whether to look for public or private IP addresses,default private.
    credentialUpdate Boolean
    Specifies whether you are updating your credentials,default false.
    encodedToken String
    Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
    jmesPathQuery String
    Custom JMESPath Query.
    minimumMonitors String
    Member is down when fewer than minimum monitors report it healthy.
    rejectUnauthorized Boolean
    If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
    trustCa String
    CA Bundle to validate server certificates.
    type String
    undetectableAction String
    Action to take when node cannot be detected,default remove.
    updateInterval String
    Update interval for service discovery.
    port number
    Port to be used for AWS service discovery,default 80.
    uri string
    The location of the node data.
    addressRealm string
    Specifies whether to look for public or private IP addresses,default private.
    credentialUpdate boolean
    Specifies whether you are updating your credentials,default false.
    encodedToken string
    Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
    jmesPathQuery string
    Custom JMESPath Query.
    minimumMonitors string
    Member is down when fewer than minimum monitors report it healthy.
    rejectUnauthorized boolean
    If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
    trustCa string
    CA Bundle to validate server certificates.
    type string
    undetectableAction string
    Action to take when node cannot be detected,default remove.
    updateInterval string
    Update interval for service discovery.
    port int
    Port to be used for AWS service discovery,default 80.
    uri str
    The location of the node data.
    address_realm str
    Specifies whether to look for public or private IP addresses,default private.
    credential_update bool
    Specifies whether you are updating your credentials,default false.
    encoded_token str
    Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
    jmes_path_query str
    Custom JMESPath Query.
    minimum_monitors str
    Member is down when fewer than minimum monitors report it healthy.
    reject_unauthorized bool
    If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
    trust_ca str
    CA Bundle to validate server certificates.
    type str
    undetectable_action str
    Action to take when node cannot be detected,default remove.
    update_interval str
    Update interval for service discovery.
    port Number
    Port to be used for AWS service discovery,default 80.
    uri String
    The location of the node data.
    addressRealm String
    Specifies whether to look for public or private IP addresses,default private.
    credentialUpdate Boolean
    Specifies whether you are updating your credentials,default false.
    encodedToken String
    Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
    jmesPathQuery String
    Custom JMESPath Query.
    minimumMonitors String
    Member is down when fewer than minimum monitors report it healthy.
    rejectUnauthorized Boolean
    If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
    trustCa String
    CA Bundle to validate server certificates.
    type String
    undetectableAction String
    Action to take when node cannot be detected,default remove.
    updateInterval String
    Update interval for service discovery.

    getConsulServiceDiscovery Result

    The following output properties are available:

    ConsulSdJson string
    Id string
    The provider-assigned unique ID for this managed resource.
    Port int
    Uri string
    AddressRealm string
    CredentialUpdate bool
    EncodedToken string
    JmesPathQuery string
    MinimumMonitors string
    RejectUnauthorized bool
    TrustCa string
    Type string
    UndetectableAction string
    UpdateInterval string
    ConsulSdJson string
    Id string
    The provider-assigned unique ID for this managed resource.
    Port int
    Uri string
    AddressRealm string
    CredentialUpdate bool
    EncodedToken string
    JmesPathQuery string
    MinimumMonitors string
    RejectUnauthorized bool
    TrustCa string
    Type string
    UndetectableAction string
    UpdateInterval string
    consulSdJson String
    id String
    The provider-assigned unique ID for this managed resource.
    port Integer
    uri String
    addressRealm String
    credentialUpdate Boolean
    encodedToken String
    jmesPathQuery String
    minimumMonitors String
    rejectUnauthorized Boolean
    trustCa String
    type String
    undetectableAction String
    updateInterval String
    consulSdJson string
    id string
    The provider-assigned unique ID for this managed resource.
    port number
    uri string
    addressRealm string
    credentialUpdate boolean
    encodedToken string
    jmesPathQuery string
    minimumMonitors string
    rejectUnauthorized boolean
    trustCa string
    type string
    undetectableAction string
    updateInterval string
    consul_sd_json str
    id str
    The provider-assigned unique ID for this managed resource.
    port int
    uri str
    address_realm str
    credential_update bool
    encoded_token str
    jmes_path_query str
    minimum_monitors str
    reject_unauthorized bool
    trust_ca str
    type str
    undetectable_action str
    update_interval str
    consulSdJson String
    id String
    The provider-assigned unique ID for this managed resource.
    port Number
    uri String
    addressRealm String
    credentialUpdate Boolean
    encodedToken String
    jmesPathQuery String
    minimumMonitors String
    rejectUnauthorized Boolean
    trustCa String
    type String
    undetectableAction String
    updateInterval String

    Package Details

    Repository
    f5 BIG-IP pulumi/pulumi-f5bigip
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the bigip Terraform Provider.
    f5bigip logo
    f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi