f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi
f5bigip.fast.getConsulServiceDiscovery
Explore with Pulumi AI
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.
- Address
Realm string - 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 string - Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
- Jmes
Path stringQuery - Custom JMESPath Query.
- Minimum
Monitors string - Member is down when fewer than minimum monitors report it healthy.
- bool
- If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
- Trust
Ca string - CA Bundle to validate server certificates.
- Type string
- Undetectable
Action string - Action to take when node cannot be detected,default
remove
. - Update
Interval 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.
- Address
Realm string - 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 string - Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
- Jmes
Path stringQuery - Custom JMESPath Query.
- Minimum
Monitors string - Member is down when fewer than minimum monitors report it healthy.
- bool
- If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
- Trust
Ca string - CA Bundle to validate server certificates.
- Type string
- Undetectable
Action string - Action to take when node cannot be detected,default
remove
. - Update
Interval 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.
- address
Realm String - Specifies whether to look for public or private IP addresses,default
private
. - credential
Update Boolean - Specifies whether you are updating your credentials,default
false
. - encoded
Token String - Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
- jmes
Path StringQuery - Custom JMESPath Query.
- minimum
Monitors String - Member is down when fewer than minimum monitors report it healthy.
- Boolean
- If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
- trust
Ca String - CA Bundle to validate server certificates.
- type String
- undetectable
Action String - Action to take when node cannot be detected,default
remove
. - update
Interval 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.
- address
Realm string - Specifies whether to look for public or private IP addresses,default
private
. - credential
Update boolean - Specifies whether you are updating your credentials,default
false
. - encoded
Token string - Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
- jmes
Path stringQuery - Custom JMESPath Query.
- minimum
Monitors string - Member is down when fewer than minimum monitors report it healthy.
- boolean
- If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
- trust
Ca string - CA Bundle to validate server certificates.
- type string
- undetectable
Action string - Action to take when node cannot be detected,default
remove
. - update
Interval 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_ strquery - Custom JMESPath Query.
- minimum_
monitors str - Member is down when fewer than minimum monitors report it healthy.
- 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.
- address
Realm String - Specifies whether to look for public or private IP addresses,default
private
. - credential
Update Boolean - Specifies whether you are updating your credentials,default
false
. - encoded
Token String - Base 64 encoded bearer token to make requests to the Consul API. Will be stored in the declaration in an encrypted format.
- jmes
Path StringQuery - Custom JMESPath Query.
- minimum
Monitors String - Member is down when fewer than minimum monitors report it healthy.
- Boolean
- If true, the server certificate is verified against the list of supplied/default CAs when making requests to the Consul API.
- trust
Ca String - CA Bundle to validate server certificates.
- type String
- undetectable
Action String - Action to take when node cannot be detected,default
remove
. - update
Interval String - Update interval for service discovery.
getConsulServiceDiscovery Result
The following output properties are available:
- Consul
Sd stringJson - Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- Uri string
- Address
Realm string - Credential
Update bool - Encoded
Token string - Jmes
Path stringQuery - Minimum
Monitors string - bool
- Trust
Ca string - Type string
- Undetectable
Action string - Update
Interval string
- Consul
Sd stringJson - Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- Uri string
- Address
Realm string - Credential
Update bool - Encoded
Token string - Jmes
Path stringQuery - Minimum
Monitors string - bool
- Trust
Ca string - Type string
- Undetectable
Action string - Update
Interval string
- consul
Sd StringJson - id String
- The provider-assigned unique ID for this managed resource.
- port Integer
- uri String
- address
Realm String - credential
Update Boolean - encoded
Token String - jmes
Path StringQuery - minimum
Monitors String - Boolean
- trust
Ca String - type String
- undetectable
Action String - update
Interval String
- consul
Sd stringJson - id string
- The provider-assigned unique ID for this managed resource.
- port number
- uri string
- address
Realm string - credential
Update boolean - encoded
Token string - jmes
Path stringQuery - minimum
Monitors string - boolean
- trust
Ca string - type string
- undetectable
Action string - update
Interval string
- consul_
sd_ strjson - 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_ strquery - minimum_
monitors str - bool
- trust_
ca str - type str
- undetectable_
action str - update_
interval str
- consul
Sd StringJson - id String
- The provider-assigned unique ID for this managed resource.
- port Number
- uri String
- address
Realm String - credential
Update Boolean - encoded
Token String - jmes
Path StringQuery - minimum
Monitors String - Boolean
- trust
Ca String - type String
- undetectable
Action String - update
Interval 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.