Consul v3.12.1 published on Friday, Aug 23, 2024 by Pulumi
consul.ConfigEntryServiceRouter
Explore with Pulumi AI
Example Usage
Create ConfigEntryServiceRouter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigEntryServiceRouter(name: string, args?: ConfigEntryServiceRouterArgs, opts?: CustomResourceOptions);
@overload
def ConfigEntryServiceRouter(resource_name: str,
args: Optional[ConfigEntryServiceRouterArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigEntryServiceRouter(resource_name: str,
opts: Optional[ResourceOptions] = None,
meta: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
partition: Optional[str] = None,
routes: Optional[Sequence[ConfigEntryServiceRouterRouteArgs]] = None)
func NewConfigEntryServiceRouter(ctx *Context, name string, args *ConfigEntryServiceRouterArgs, opts ...ResourceOption) (*ConfigEntryServiceRouter, error)
public ConfigEntryServiceRouter(string name, ConfigEntryServiceRouterArgs? args = null, CustomResourceOptions? opts = null)
public ConfigEntryServiceRouter(String name, ConfigEntryServiceRouterArgs args)
public ConfigEntryServiceRouter(String name, ConfigEntryServiceRouterArgs args, CustomResourceOptions options)
type: consul:ConfigEntryServiceRouter
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 ConfigEntryServiceRouterArgs
- 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 ConfigEntryServiceRouterArgs
- 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 ConfigEntryServiceRouterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigEntryServiceRouterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigEntryServiceRouterArgs
- 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 configEntryServiceRouterResource = new Consul.ConfigEntryServiceRouter("configEntryServiceRouterResource", new()
{
Meta =
{
{ "string", "string" },
},
Name = "string",
Namespace = "string",
Partition = "string",
Routes = new[]
{
new Consul.Inputs.ConfigEntryServiceRouterRouteArgs
{
Destination = new Consul.Inputs.ConfigEntryServiceRouterRouteDestinationArgs
{
IdleTimeout = "string",
Namespace = "string",
NumRetries = 0,
Partition = "string",
PrefixRewrite = "string",
RequestHeaders = new Consul.Inputs.ConfigEntryServiceRouterRouteDestinationRequestHeadersArgs
{
Add =
{
{ "string", "string" },
},
Removes = new[]
{
"string",
},
Set =
{
{ "string", "string" },
},
},
RequestTimeout = "string",
ResponseHeaders = new Consul.Inputs.ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs
{
Add =
{
{ "string", "string" },
},
Removes = new[]
{
"string",
},
Set =
{
{ "string", "string" },
},
},
RetryOnConnectFailure = false,
RetryOnStatusCodes = new[]
{
0,
},
RetryOns = new[]
{
"string",
},
Service = "string",
ServiceSubset = "string",
},
Match = new Consul.Inputs.ConfigEntryServiceRouterRouteMatchArgs
{
Http = new Consul.Inputs.ConfigEntryServiceRouterRouteMatchHttpArgs
{
Headers = new[]
{
new Consul.Inputs.ConfigEntryServiceRouterRouteMatchHttpHeaderArgs
{
Exact = "string",
Invert = false,
Name = "string",
Prefix = "string",
Present = false,
Regex = "string",
Suffix = "string",
},
},
Methods = new[]
{
"string",
},
PathExact = "string",
PathPrefix = "string",
PathRegex = "string",
QueryParams = new[]
{
new Consul.Inputs.ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs
{
Exact = "string",
Name = "string",
Present = false,
Regex = "string",
},
},
},
},
},
},
});
example, err := consul.NewConfigEntryServiceRouter(ctx, "configEntryServiceRouterResource", &consul.ConfigEntryServiceRouterArgs{
Meta: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Partition: pulumi.String("string"),
Routes: consul.ConfigEntryServiceRouterRouteArray{
&consul.ConfigEntryServiceRouterRouteArgs{
Destination: &consul.ConfigEntryServiceRouterRouteDestinationArgs{
IdleTimeout: pulumi.String("string"),
Namespace: pulumi.String("string"),
NumRetries: pulumi.Int(0),
Partition: pulumi.String("string"),
PrefixRewrite: pulumi.String("string"),
RequestHeaders: &consul.ConfigEntryServiceRouterRouteDestinationRequestHeadersArgs{
Add: pulumi.StringMap{
"string": pulumi.String("string"),
},
Removes: pulumi.StringArray{
pulumi.String("string"),
},
Set: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
RequestTimeout: pulumi.String("string"),
ResponseHeaders: &consul.ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs{
Add: pulumi.StringMap{
"string": pulumi.String("string"),
},
Removes: pulumi.StringArray{
pulumi.String("string"),
},
Set: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
RetryOnConnectFailure: pulumi.Bool(false),
RetryOnStatusCodes: pulumi.IntArray{
pulumi.Int(0),
},
RetryOns: pulumi.StringArray{
pulumi.String("string"),
},
Service: pulumi.String("string"),
ServiceSubset: pulumi.String("string"),
},
Match: &consul.ConfigEntryServiceRouterRouteMatchArgs{
Http: &consul.ConfigEntryServiceRouterRouteMatchHttpArgs{
Headers: consul.ConfigEntryServiceRouterRouteMatchHttpHeaderArray{
&consul.ConfigEntryServiceRouterRouteMatchHttpHeaderArgs{
Exact: pulumi.String("string"),
Invert: pulumi.Bool(false),
Name: pulumi.String("string"),
Prefix: pulumi.String("string"),
Present: pulumi.Bool(false),
Regex: pulumi.String("string"),
Suffix: pulumi.String("string"),
},
},
Methods: pulumi.StringArray{
pulumi.String("string"),
},
PathExact: pulumi.String("string"),
PathPrefix: pulumi.String("string"),
PathRegex: pulumi.String("string"),
QueryParams: consul.ConfigEntryServiceRouterRouteMatchHttpQueryParamArray{
&consul.ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs{
Exact: pulumi.String("string"),
Name: pulumi.String("string"),
Present: pulumi.Bool(false),
Regex: pulumi.String("string"),
},
},
},
},
},
},
})
var configEntryServiceRouterResource = new ConfigEntryServiceRouter("configEntryServiceRouterResource", ConfigEntryServiceRouterArgs.builder()
.meta(Map.of("string", "string"))
.name("string")
.namespace("string")
.partition("string")
.routes(ConfigEntryServiceRouterRouteArgs.builder()
.destination(ConfigEntryServiceRouterRouteDestinationArgs.builder()
.idleTimeout("string")
.namespace("string")
.numRetries(0)
.partition("string")
.prefixRewrite("string")
.requestHeaders(ConfigEntryServiceRouterRouteDestinationRequestHeadersArgs.builder()
.add(Map.of("string", "string"))
.removes("string")
.set(Map.of("string", "string"))
.build())
.requestTimeout("string")
.responseHeaders(ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs.builder()
.add(Map.of("string", "string"))
.removes("string")
.set(Map.of("string", "string"))
.build())
.retryOnConnectFailure(false)
.retryOnStatusCodes(0)
.retryOns("string")
.service("string")
.serviceSubset("string")
.build())
.match(ConfigEntryServiceRouterRouteMatchArgs.builder()
.http(ConfigEntryServiceRouterRouteMatchHttpArgs.builder()
.headers(ConfigEntryServiceRouterRouteMatchHttpHeaderArgs.builder()
.exact("string")
.invert(false)
.name("string")
.prefix("string")
.present(false)
.regex("string")
.suffix("string")
.build())
.methods("string")
.pathExact("string")
.pathPrefix("string")
.pathRegex("string")
.queryParams(ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs.builder()
.exact("string")
.name("string")
.present(false)
.regex("string")
.build())
.build())
.build())
.build())
.build());
config_entry_service_router_resource = consul.ConfigEntryServiceRouter("configEntryServiceRouterResource",
meta={
"string": "string",
},
name="string",
namespace="string",
partition="string",
routes=[consul.ConfigEntryServiceRouterRouteArgs(
destination=consul.ConfigEntryServiceRouterRouteDestinationArgs(
idle_timeout="string",
namespace="string",
num_retries=0,
partition="string",
prefix_rewrite="string",
request_headers=consul.ConfigEntryServiceRouterRouteDestinationRequestHeadersArgs(
add={
"string": "string",
},
removes=["string"],
set={
"string": "string",
},
),
request_timeout="string",
response_headers=consul.ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs(
add={
"string": "string",
},
removes=["string"],
set={
"string": "string",
},
),
retry_on_connect_failure=False,
retry_on_status_codes=[0],
retry_ons=["string"],
service="string",
service_subset="string",
),
match=consul.ConfigEntryServiceRouterRouteMatchArgs(
http=consul.ConfigEntryServiceRouterRouteMatchHttpArgs(
headers=[consul.ConfigEntryServiceRouterRouteMatchHttpHeaderArgs(
exact="string",
invert=False,
name="string",
prefix="string",
present=False,
regex="string",
suffix="string",
)],
methods=["string"],
path_exact="string",
path_prefix="string",
path_regex="string",
query_params=[consul.ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs(
exact="string",
name="string",
present=False,
regex="string",
)],
),
),
)])
const configEntryServiceRouterResource = new consul.ConfigEntryServiceRouter("configEntryServiceRouterResource", {
meta: {
string: "string",
},
name: "string",
namespace: "string",
partition: "string",
routes: [{
destination: {
idleTimeout: "string",
namespace: "string",
numRetries: 0,
partition: "string",
prefixRewrite: "string",
requestHeaders: {
add: {
string: "string",
},
removes: ["string"],
set: {
string: "string",
},
},
requestTimeout: "string",
responseHeaders: {
add: {
string: "string",
},
removes: ["string"],
set: {
string: "string",
},
},
retryOnConnectFailure: false,
retryOnStatusCodes: [0],
retryOns: ["string"],
service: "string",
serviceSubset: "string",
},
match: {
http: {
headers: [{
exact: "string",
invert: false,
name: "string",
prefix: "string",
present: false,
regex: "string",
suffix: "string",
}],
methods: ["string"],
pathExact: "string",
pathPrefix: "string",
pathRegex: "string",
queryParams: [{
exact: "string",
name: "string",
present: false,
regex: "string",
}],
},
},
}],
});
type: consul:ConfigEntryServiceRouter
properties:
meta:
string: string
name: string
namespace: string
partition: string
routes:
- destination:
idleTimeout: string
namespace: string
numRetries: 0
partition: string
prefixRewrite: string
requestHeaders:
add:
string: string
removes:
- string
set:
string: string
requestTimeout: string
responseHeaders:
add:
string: string
removes:
- string
set:
string: string
retryOnConnectFailure: false
retryOnStatusCodes:
- 0
retryOns:
- string
service: string
serviceSubset: string
match:
http:
headers:
- exact: string
invert: false
name: string
prefix: string
present: false
regex: string
suffix: string
methods:
- string
pathExact: string
pathPrefix: string
pathRegex: string
queryParams:
- exact: string
name: string
present: false
regex: string
ConfigEntryServiceRouter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ConfigEntryServiceRouter resource accepts the following input properties:
- Meta Dictionary<string, string>
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace to apply the configuration entry.
- Partition string
- Specifies the admin partition to apply the configuration entry.
- Routes
List<Config
Entry Service Router Route> - Defines the possible routes for L7 requests.
- Meta map[string]string
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace to apply the configuration entry.
- Partition string
- Specifies the admin partition to apply the configuration entry.
- Routes
[]Config
Entry Service Router Route Args - Defines the possible routes for L7 requests.
- meta Map<String,String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace to apply the configuration entry.
- partition String
- Specifies the admin partition to apply the configuration entry.
- routes
List<Config
Entry Service Router Route> - Defines the possible routes for L7 requests.
- meta {[key: string]: string}
- Specifies key-value pairs to add to the KV store.
- name string
- Specifies a name for the configuration entry.
- namespace string
- Specifies the namespace to apply the configuration entry.
- partition string
- Specifies the admin partition to apply the configuration entry.
- routes
Config
Entry Service Router Route[] - Defines the possible routes for L7 requests.
- meta Mapping[str, str]
- Specifies key-value pairs to add to the KV store.
- name str
- Specifies a name for the configuration entry.
- namespace str
- Specifies the namespace to apply the configuration entry.
- partition str
- Specifies the admin partition to apply the configuration entry.
- routes
Sequence[Config
Entry Service Router Route Args] - Defines the possible routes for L7 requests.
- meta Map<String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace to apply the configuration entry.
- partition String
- Specifies the admin partition to apply the configuration entry.
- routes List<Property Map>
- Defines the possible routes for L7 requests.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigEntryServiceRouter resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ConfigEntryServiceRouter Resource
Get an existing ConfigEntryServiceRouter 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?: ConfigEntryServiceRouterState, opts?: CustomResourceOptions): ConfigEntryServiceRouter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
meta: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
partition: Optional[str] = None,
routes: Optional[Sequence[ConfigEntryServiceRouterRouteArgs]] = None) -> ConfigEntryServiceRouter
func GetConfigEntryServiceRouter(ctx *Context, name string, id IDInput, state *ConfigEntryServiceRouterState, opts ...ResourceOption) (*ConfigEntryServiceRouter, error)
public static ConfigEntryServiceRouter Get(string name, Input<string> id, ConfigEntryServiceRouterState? state, CustomResourceOptions? opts = null)
public static ConfigEntryServiceRouter get(String name, Output<String> id, ConfigEntryServiceRouterState 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.
- Meta Dictionary<string, string>
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace to apply the configuration entry.
- Partition string
- Specifies the admin partition to apply the configuration entry.
- Routes
List<Config
Entry Service Router Route> - Defines the possible routes for L7 requests.
- Meta map[string]string
- Specifies key-value pairs to add to the KV store.
- Name string
- Specifies a name for the configuration entry.
- Namespace string
- Specifies the namespace to apply the configuration entry.
- Partition string
- Specifies the admin partition to apply the configuration entry.
- Routes
[]Config
Entry Service Router Route Args - Defines the possible routes for L7 requests.
- meta Map<String,String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace to apply the configuration entry.
- partition String
- Specifies the admin partition to apply the configuration entry.
- routes
List<Config
Entry Service Router Route> - Defines the possible routes for L7 requests.
- meta {[key: string]: string}
- Specifies key-value pairs to add to the KV store.
- name string
- Specifies a name for the configuration entry.
- namespace string
- Specifies the namespace to apply the configuration entry.
- partition string
- Specifies the admin partition to apply the configuration entry.
- routes
Config
Entry Service Router Route[] - Defines the possible routes for L7 requests.
- meta Mapping[str, str]
- Specifies key-value pairs to add to the KV store.
- name str
- Specifies a name for the configuration entry.
- namespace str
- Specifies the namespace to apply the configuration entry.
- partition str
- Specifies the admin partition to apply the configuration entry.
- routes
Sequence[Config
Entry Service Router Route Args] - Defines the possible routes for L7 requests.
- meta Map<String>
- Specifies key-value pairs to add to the KV store.
- name String
- Specifies a name for the configuration entry.
- namespace String
- Specifies the namespace to apply the configuration entry.
- partition String
- Specifies the admin partition to apply the configuration entry.
- routes List<Property Map>
- Defines the possible routes for L7 requests.
Supporting Types
ConfigEntryServiceRouterRoute, ConfigEntryServiceRouterRouteArgs
- Destination
Config
Entry Service Router Route Destination - Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
- Match
Config
Entry Service Router Route Match - Describes a set of criteria that Consul compares incoming L7 traffic with.
- Destination
Config
Entry Service Router Route Destination - Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
- Match
Config
Entry Service Router Route Match - Describes a set of criteria that Consul compares incoming L7 traffic with.
- destination
Config
Entry Service Router Route Destination - Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
- match
Config
Entry Service Router Route Match - Describes a set of criteria that Consul compares incoming L7 traffic with.
- destination
Config
Entry Service Router Route Destination - Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
- match
Config
Entry Service Router Route Match - Describes a set of criteria that Consul compares incoming L7 traffic with.
- destination
Config
Entry Service Router Route Destination - Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
- match
Config
Entry Service Router Route Match - Describes a set of criteria that Consul compares incoming L7 traffic with.
- destination Property Map
- Specifies the target service to route matching requests to, as well as behavior for the request to follow when routed.
- match Property Map
- Describes a set of criteria that Consul compares incoming L7 traffic with.
ConfigEntryServiceRouterRouteDestination, ConfigEntryServiceRouterRouteDestinationArgs
- Idle
Timeout string - Specifies the total amount of time permitted for the request stream to be idle.
- Namespace string
- Specifies the Consul namespace to resolve the service from instead of the current namespace.
- Num
Retries int - Specifies the number of times to retry the request when a retry condition occurs.
- Partition string
- Specifies the Consul admin partition to resolve the service from instead of the current partition.
- Prefix
Rewrite string - Specifies rewrites to the HTTP request path before proxying it to its final destination.
- Request
Headers ConfigEntry Service Router Route Destination Request Headers - Specifies a set of HTTP-specific header modification rules applied to requests routed with the service router.
- Request
Timeout string - Specifies the total amount of time permitted for the entire downstream request to be processed, including retry attempts.
- Response
Headers ConfigEntry Service Router Route Destination Response Headers - Specifies a set of HTTP-specific header modification rules applied to responses routed with the service router.
- Retry
On boolConnect Failure - Specifies that connection failure errors that trigger a retry request.
- Retry
On List<int>Status Codes - Specifies a list of integers for HTTP response status codes that trigger a retry request.
- Retry
Ons List<string> - Specifies a list of conditions for Consul to retry requests based on the response from an upstream service.
- Service string
- Specifies the name of the service to resolve.
- Service
Subset string - Specifies a named subset of the given service to resolve instead of the one defined as that service's
default_subset
in the service resolver configuration entry.
- Idle
Timeout string - Specifies the total amount of time permitted for the request stream to be idle.
- Namespace string
- Specifies the Consul namespace to resolve the service from instead of the current namespace.
- Num
Retries int - Specifies the number of times to retry the request when a retry condition occurs.
- Partition string
- Specifies the Consul admin partition to resolve the service from instead of the current partition.
- Prefix
Rewrite string - Specifies rewrites to the HTTP request path before proxying it to its final destination.
- Request
Headers ConfigEntry Service Router Route Destination Request Headers - Specifies a set of HTTP-specific header modification rules applied to requests routed with the service router.
- Request
Timeout string - Specifies the total amount of time permitted for the entire downstream request to be processed, including retry attempts.
- Response
Headers ConfigEntry Service Router Route Destination Response Headers - Specifies a set of HTTP-specific header modification rules applied to responses routed with the service router.
- Retry
On boolConnect Failure - Specifies that connection failure errors that trigger a retry request.
- Retry
On []intStatus Codes - Specifies a list of integers for HTTP response status codes that trigger a retry request.
- Retry
Ons []string - Specifies a list of conditions for Consul to retry requests based on the response from an upstream service.
- Service string
- Specifies the name of the service to resolve.
- Service
Subset string - Specifies a named subset of the given service to resolve instead of the one defined as that service's
default_subset
in the service resolver configuration entry.
- idle
Timeout String - Specifies the total amount of time permitted for the request stream to be idle.
- namespace String
- Specifies the Consul namespace to resolve the service from instead of the current namespace.
- num
Retries Integer - Specifies the number of times to retry the request when a retry condition occurs.
- partition String
- Specifies the Consul admin partition to resolve the service from instead of the current partition.
- prefix
Rewrite String - Specifies rewrites to the HTTP request path before proxying it to its final destination.
- request
Headers ConfigEntry Service Router Route Destination Request Headers - Specifies a set of HTTP-specific header modification rules applied to requests routed with the service router.
- request
Timeout String - Specifies the total amount of time permitted for the entire downstream request to be processed, including retry attempts.
- response
Headers ConfigEntry Service Router Route Destination Response Headers - Specifies a set of HTTP-specific header modification rules applied to responses routed with the service router.
- retry
On BooleanConnect Failure - Specifies that connection failure errors that trigger a retry request.
- retry
On List<Integer>Status Codes - Specifies a list of integers for HTTP response status codes that trigger a retry request.
- retry
Ons List<String> - Specifies a list of conditions for Consul to retry requests based on the response from an upstream service.
- service String
- Specifies the name of the service to resolve.
- service
Subset String - Specifies a named subset of the given service to resolve instead of the one defined as that service's
default_subset
in the service resolver configuration entry.
- idle
Timeout string - Specifies the total amount of time permitted for the request stream to be idle.
- namespace string
- Specifies the Consul namespace to resolve the service from instead of the current namespace.
- num
Retries number - Specifies the number of times to retry the request when a retry condition occurs.
- partition string
- Specifies the Consul admin partition to resolve the service from instead of the current partition.
- prefix
Rewrite string - Specifies rewrites to the HTTP request path before proxying it to its final destination.
- request
Headers ConfigEntry Service Router Route Destination Request Headers - Specifies a set of HTTP-specific header modification rules applied to requests routed with the service router.
- request
Timeout string - Specifies the total amount of time permitted for the entire downstream request to be processed, including retry attempts.
- response
Headers ConfigEntry Service Router Route Destination Response Headers - Specifies a set of HTTP-specific header modification rules applied to responses routed with the service router.
- retry
On booleanConnect Failure - Specifies that connection failure errors that trigger a retry request.
- retry
On number[]Status Codes - Specifies a list of integers for HTTP response status codes that trigger a retry request.
- retry
Ons string[] - Specifies a list of conditions for Consul to retry requests based on the response from an upstream service.
- service string
- Specifies the name of the service to resolve.
- service
Subset string - Specifies a named subset of the given service to resolve instead of the one defined as that service's
default_subset
in the service resolver configuration entry.
- idle_
timeout str - Specifies the total amount of time permitted for the request stream to be idle.
- namespace str
- Specifies the Consul namespace to resolve the service from instead of the current namespace.
- num_
retries int - Specifies the number of times to retry the request when a retry condition occurs.
- partition str
- Specifies the Consul admin partition to resolve the service from instead of the current partition.
- prefix_
rewrite str - Specifies rewrites to the HTTP request path before proxying it to its final destination.
- request_
headers ConfigEntry Service Router Route Destination Request Headers - Specifies a set of HTTP-specific header modification rules applied to requests routed with the service router.
- request_
timeout str - Specifies the total amount of time permitted for the entire downstream request to be processed, including retry attempts.
- response_
headers ConfigEntry Service Router Route Destination Response Headers - Specifies a set of HTTP-specific header modification rules applied to responses routed with the service router.
- retry_
on_ boolconnect_ failure - Specifies that connection failure errors that trigger a retry request.
- retry_
on_ Sequence[int]status_ codes - Specifies a list of integers for HTTP response status codes that trigger a retry request.
- retry_
ons Sequence[str] - Specifies a list of conditions for Consul to retry requests based on the response from an upstream service.
- service str
- Specifies the name of the service to resolve.
- service_
subset str - Specifies a named subset of the given service to resolve instead of the one defined as that service's
default_subset
in the service resolver configuration entry.
- idle
Timeout String - Specifies the total amount of time permitted for the request stream to be idle.
- namespace String
- Specifies the Consul namespace to resolve the service from instead of the current namespace.
- num
Retries Number - Specifies the number of times to retry the request when a retry condition occurs.
- partition String
- Specifies the Consul admin partition to resolve the service from instead of the current partition.
- prefix
Rewrite String - Specifies rewrites to the HTTP request path before proxying it to its final destination.
- request
Headers Property Map - Specifies a set of HTTP-specific header modification rules applied to requests routed with the service router.
- request
Timeout String - Specifies the total amount of time permitted for the entire downstream request to be processed, including retry attempts.
- response
Headers Property Map - Specifies a set of HTTP-specific header modification rules applied to responses routed with the service router.
- retry
On BooleanConnect Failure - Specifies that connection failure errors that trigger a retry request.
- retry
On List<Number>Status Codes - Specifies a list of integers for HTTP response status codes that trigger a retry request.
- retry
Ons List<String> - Specifies a list of conditions for Consul to retry requests based on the response from an upstream service.
- service String
- Specifies the name of the service to resolve.
- service
Subset String - Specifies a named subset of the given service to resolve instead of the one defined as that service's
default_subset
in the service resolver configuration entry.
ConfigEntryServiceRouterRouteDestinationRequestHeaders, ConfigEntryServiceRouterRouteDestinationRequestHeadersArgs
- Add Dictionary<string, string>
- Defines a set of key-value pairs to add to the header. Use header names as the keys.
- Removes List<string>
- Defines a list of headers to remove.
- Set Dictionary<string, string>
- Defines a set of key-value pairs to add to the request header or to replace existing header values with.
ConfigEntryServiceRouterRouteDestinationResponseHeaders, ConfigEntryServiceRouterRouteDestinationResponseHeadersArgs
- Add Dictionary<string, string>
- Defines a set of key-value pairs to add to the header. Use header names as the keys
- Removes List<string>
- Defines a list of headers to remove.
- Set Dictionary<string, string>
- Defines a set of key-value pairs to add to the response header or to replace existing header values with
ConfigEntryServiceRouterRouteMatch, ConfigEntryServiceRouterRouteMatchArgs
- Http
Config
Entry Service Router Route Match Http - Specifies a set of HTTP criteria used to evaluate incoming L7 traffic for matches.
- Http
Config
Entry Service Router Route Match Http - Specifies a set of HTTP criteria used to evaluate incoming L7 traffic for matches.
- http
Config
Entry Service Router Route Match Http - Specifies a set of HTTP criteria used to evaluate incoming L7 traffic for matches.
- http
Config
Entry Service Router Route Match Http - Specifies a set of HTTP criteria used to evaluate incoming L7 traffic for matches.
- http
Config
Entry Service Router Route Match Http - Specifies a set of HTTP criteria used to evaluate incoming L7 traffic for matches.
- http Property Map
- Specifies a set of HTTP criteria used to evaluate incoming L7 traffic for matches.
ConfigEntryServiceRouterRouteMatchHttp, ConfigEntryServiceRouterRouteMatchHttpArgs
- Headers
List<Config
Entry Service Router Route Match Http Header> - Specifies information in the HTTP request header to match with.
- Methods List<string>
- Specifies HTTP methods that the match applies to.
- Path
Exact string - Specifies the exact path to match on the HTTP request path.
- Path
Prefix string - Specifies the path prefix to match on the HTTP request path.
- Path
Regex string - Specifies a regular expression to match on the HTTP request path.
- Query
Params List<ConfigEntry Service Router Route Match Http Query Param> - Specifies information to match to on HTTP query parameters.
- Headers
[]Config
Entry Service Router Route Match Http Header - Specifies information in the HTTP request header to match with.
- Methods []string
- Specifies HTTP methods that the match applies to.
- Path
Exact string - Specifies the exact path to match on the HTTP request path.
- Path
Prefix string - Specifies the path prefix to match on the HTTP request path.
- Path
Regex string - Specifies a regular expression to match on the HTTP request path.
- Query
Params []ConfigEntry Service Router Route Match Http Query Param - Specifies information to match to on HTTP query parameters.
- headers
List<Config
Entry Service Router Route Match Http Header> - Specifies information in the HTTP request header to match with.
- methods List<String>
- Specifies HTTP methods that the match applies to.
- path
Exact String - Specifies the exact path to match on the HTTP request path.
- path
Prefix String - Specifies the path prefix to match on the HTTP request path.
- path
Regex String - Specifies a regular expression to match on the HTTP request path.
- query
Params List<ConfigEntry Service Router Route Match Http Query Param> - Specifies information to match to on HTTP query parameters.
- headers
Config
Entry Service Router Route Match Http Header[] - Specifies information in the HTTP request header to match with.
- methods string[]
- Specifies HTTP methods that the match applies to.
- path
Exact string - Specifies the exact path to match on the HTTP request path.
- path
Prefix string - Specifies the path prefix to match on the HTTP request path.
- path
Regex string - Specifies a regular expression to match on the HTTP request path.
- query
Params ConfigEntry Service Router Route Match Http Query Param[] - Specifies information to match to on HTTP query parameters.
- headers
Sequence[Config
Entry Service Router Route Match Http Header] - Specifies information in the HTTP request header to match with.
- methods Sequence[str]
- Specifies HTTP methods that the match applies to.
- path_
exact str - Specifies the exact path to match on the HTTP request path.
- path_
prefix str - Specifies the path prefix to match on the HTTP request path.
- path_
regex str - Specifies a regular expression to match on the HTTP request path.
- query_
params Sequence[ConfigEntry Service Router Route Match Http Query Param] - Specifies information to match to on HTTP query parameters.
- headers List<Property Map>
- Specifies information in the HTTP request header to match with.
- methods List<String>
- Specifies HTTP methods that the match applies to.
- path
Exact String - Specifies the exact path to match on the HTTP request path.
- path
Prefix String - Specifies the path prefix to match on the HTTP request path.
- path
Regex String - Specifies a regular expression to match on the HTTP request path.
- query
Params List<Property Map> - Specifies information to match to on HTTP query parameters.
ConfigEntryServiceRouterRouteMatchHttpHeader, ConfigEntryServiceRouterRouteMatchHttpHeaderArgs
- Exact string
- Specifies that a request matches when the header with the given name is this exact value.
- Invert bool
- Specifies that the logic for the HTTP header match should be inverted.
- Name string
- Specifies the name of the HTTP header to match.
- Prefix string
- Specifies that a request matches when the header with the given name has this prefix.
- Present bool
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP header. - Regex string
- Specifies that a request matches when the header with the given name matches this regular expression.
- Suffix string
- Specifies that a request matches when the header with the given name has this suffix.
- Exact string
- Specifies that a request matches when the header with the given name is this exact value.
- Invert bool
- Specifies that the logic for the HTTP header match should be inverted.
- Name string
- Specifies the name of the HTTP header to match.
- Prefix string
- Specifies that a request matches when the header with the given name has this prefix.
- Present bool
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP header. - Regex string
- Specifies that a request matches when the header with the given name matches this regular expression.
- Suffix string
- Specifies that a request matches when the header with the given name has this suffix.
- exact String
- Specifies that a request matches when the header with the given name is this exact value.
- invert Boolean
- Specifies that the logic for the HTTP header match should be inverted.
- name String
- Specifies the name of the HTTP header to match.
- prefix String
- Specifies that a request matches when the header with the given name has this prefix.
- present Boolean
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP header. - regex String
- Specifies that a request matches when the header with the given name matches this regular expression.
- suffix String
- Specifies that a request matches when the header with the given name has this suffix.
- exact string
- Specifies that a request matches when the header with the given name is this exact value.
- invert boolean
- Specifies that the logic for the HTTP header match should be inverted.
- name string
- Specifies the name of the HTTP header to match.
- prefix string
- Specifies that a request matches when the header with the given name has this prefix.
- present boolean
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP header. - regex string
- Specifies that a request matches when the header with the given name matches this regular expression.
- suffix string
- Specifies that a request matches when the header with the given name has this suffix.
- exact str
- Specifies that a request matches when the header with the given name is this exact value.
- invert bool
- Specifies that the logic for the HTTP header match should be inverted.
- name str
- Specifies the name of the HTTP header to match.
- prefix str
- Specifies that a request matches when the header with the given name has this prefix.
- present bool
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP header. - regex str
- Specifies that a request matches when the header with the given name matches this regular expression.
- suffix str
- Specifies that a request matches when the header with the given name has this suffix.
- exact String
- Specifies that a request matches when the header with the given name is this exact value.
- invert Boolean
- Specifies that the logic for the HTTP header match should be inverted.
- name String
- Specifies the name of the HTTP header to match.
- prefix String
- Specifies that a request matches when the header with the given name has this prefix.
- present Boolean
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP header. - regex String
- Specifies that a request matches when the header with the given name matches this regular expression.
- suffix String
- Specifies that a request matches when the header with the given name has this suffix.
ConfigEntryServiceRouterRouteMatchHttpQueryParam, ConfigEntryServiceRouterRouteMatchHttpQueryParamArgs
- Exact string
- Specifies that a request matches when the query parameter with the given name is this exact value.
- Name string
- Specifies the name of the HTTP query parameter to match.
- Present bool
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP query parameter. - Regex string
- Specifies that a request matches when the query parameter with the given name matches this regular expression.
- Exact string
- Specifies that a request matches when the query parameter with the given name is this exact value.
- Name string
- Specifies the name of the HTTP query parameter to match.
- Present bool
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP query parameter. - Regex string
- Specifies that a request matches when the query parameter with the given name matches this regular expression.
- exact String
- Specifies that a request matches when the query parameter with the given name is this exact value.
- name String
- Specifies the name of the HTTP query parameter to match.
- present Boolean
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP query parameter. - regex String
- Specifies that a request matches when the query parameter with the given name matches this regular expression.
- exact string
- Specifies that a request matches when the query parameter with the given name is this exact value.
- name string
- Specifies the name of the HTTP query parameter to match.
- present boolean
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP query parameter. - regex string
- Specifies that a request matches when the query parameter with the given name matches this regular expression.
- exact str
- Specifies that a request matches when the query parameter with the given name is this exact value.
- name str
- Specifies the name of the HTTP query parameter to match.
- present bool
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP query parameter. - regex str
- Specifies that a request matches when the query parameter with the given name matches this regular expression.
- exact String
- Specifies that a request matches when the query parameter with the given name is this exact value.
- name String
- Specifies the name of the HTTP query parameter to match.
- present Boolean
- Specifies that a request matches when the value in the
name
argument is present anywhere in the HTTP query parameter. - regex String
- Specifies that a request matches when the query parameter with the given name matches this regular expression.
Package Details
- Repository
- HashiCorp Consul pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consul
Terraform Provider.