published on Thursday, May 14, 2026 by elastic
published on Thursday, May 14, 2026 by elastic
Manages Fleet proxies. See the Fleet Proxies API documentation for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const example = new elasticstack.FleetProxy("example", {
name: "My Proxy",
url: "https://proxy.example.com:3128",
certificate: `-----BEGIN CERTIFICATE-----
...`,
certificateKey: `-----BEGIN PRIVATE KEY-----
...`,
certificateAuthorities: `-----BEGIN CERTIFICATE-----
...`,
proxyHeaders: {
"X-Custom-Header": "my-value",
},
});
import pulumi
import pulumi_elasticstack as elasticstack
example = elasticstack.FleetProxy("example",
name="My Proxy",
url="https://proxy.example.com:3128",
certificate="""-----BEGIN CERTIFICATE-----
...""",
certificate_key="""-----BEGIN PRIVATE KEY-----
...""",
certificate_authorities="""-----BEGIN CERTIFICATE-----
...""",
proxy_headers={
"X-Custom-Header": "my-value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticstack.NewFleetProxy(ctx, "example", &elasticstack.FleetProxyArgs{
Name: pulumi.String("My Proxy"),
Url: pulumi.String("https://proxy.example.com:3128"),
Certificate: pulumi.String("-----BEGIN CERTIFICATE-----\n..."),
CertificateKey: pulumi.String("-----BEGIN PRIVATE KEY-----\n..."),
CertificateAuthorities: pulumi.String("-----BEGIN CERTIFICATE-----\n..."),
ProxyHeaders: pulumi.StringMap{
"X-Custom-Header": pulumi.String("my-value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var example = new Elasticstack.FleetProxy("example", new()
{
Name = "My Proxy",
Url = "https://proxy.example.com:3128",
Certificate = @"-----BEGIN CERTIFICATE-----
...",
CertificateKey = @"-----BEGIN PRIVATE KEY-----
...",
CertificateAuthorities = @"-----BEGIN CERTIFICATE-----
...",
ProxyHeaders =
{
{ "X-Custom-Header", "my-value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.FleetProxy;
import com.pulumi.elasticstack.FleetProxyArgs;
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) {
var example = new FleetProxy("example", FleetProxyArgs.builder()
.name("My Proxy")
.url("https://proxy.example.com:3128")
.certificate("""
-----BEGIN CERTIFICATE-----
... """)
.certificateKey("""
-----BEGIN PRIVATE KEY-----
... """)
.certificateAuthorities("""
-----BEGIN CERTIFICATE-----
... """)
.proxyHeaders(Map.of("X-Custom-Header", "my-value"))
.build());
}
}
resources:
example:
type: elasticstack:FleetProxy
properties:
name: My Proxy
url: https://proxy.example.com:3128
certificate: |-
-----BEGIN CERTIFICATE-----
...
certificateKey: |-
-----BEGIN PRIVATE KEY-----
...
certificateAuthorities: |-
-----BEGIN CERTIFICATE-----
...
proxyHeaders:
X-Custom-Header: my-value
Example coming soon!
Create FleetProxy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FleetProxy(name: string, args: FleetProxyArgs, opts?: CustomResourceOptions);@overload
def FleetProxy(resource_name: str,
args: FleetProxyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FleetProxy(resource_name: str,
opts: Optional[ResourceOptions] = None,
url: Optional[str] = None,
certificate: Optional[str] = None,
certificate_authorities: Optional[str] = None,
certificate_key: Optional[str] = None,
kibana_connections: Optional[Sequence[FleetProxyKibanaConnectionArgs]] = None,
name: Optional[str] = None,
proxy_headers: Optional[Mapping[str, str]] = None,
proxy_id: Optional[str] = None,
space_id: Optional[str] = None)func NewFleetProxy(ctx *Context, name string, args FleetProxyArgs, opts ...ResourceOption) (*FleetProxy, error)public FleetProxy(string name, FleetProxyArgs args, CustomResourceOptions? opts = null)
public FleetProxy(String name, FleetProxyArgs args)
public FleetProxy(String name, FleetProxyArgs args, CustomResourceOptions options)
type: elasticstack:FleetProxy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "elasticstack_fleetproxy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FleetProxyArgs
- 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 FleetProxyArgs
- 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 FleetProxyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetProxyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetProxyArgs
- 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 fleetProxyResource = new Elasticstack.FleetProxy("fleetProxyResource", new()
{
Url = "string",
Certificate = "string",
CertificateAuthorities = "string",
CertificateKey = "string",
KibanaConnections = new[]
{
new Elasticstack.Inputs.FleetProxyKibanaConnectionArgs
{
ApiKey = "string",
BearerToken = "string",
CaCerts = new[]
{
"string",
},
Endpoints = new[]
{
"string",
},
Insecure = false,
Password = "string",
Username = "string",
},
},
Name = "string",
ProxyHeaders =
{
{ "string", "string" },
},
ProxyId = "string",
SpaceId = "string",
});
example, err := elasticstack.NewFleetProxy(ctx, "fleetProxyResource", &elasticstack.FleetProxyArgs{
Url: pulumi.String("string"),
Certificate: pulumi.String("string"),
CertificateAuthorities: pulumi.String("string"),
CertificateKey: pulumi.String("string"),
KibanaConnections: elasticstack.FleetProxyKibanaConnectionArray{
&elasticstack.FleetProxyKibanaConnectionArgs{
ApiKey: pulumi.String("string"),
BearerToken: pulumi.String("string"),
CaCerts: pulumi.StringArray{
pulumi.String("string"),
},
Endpoints: pulumi.StringArray{
pulumi.String("string"),
},
Insecure: pulumi.Bool(false),
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
ProxyHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
ProxyId: pulumi.String("string"),
SpaceId: pulumi.String("string"),
})
resource "elasticstack_fleetproxy" "fleetProxyResource" {
url = "string"
certificate = "string"
certificate_authorities = "string"
certificate_key = "string"
kibana_connections {
api_key = "string"
bearer_token = "string"
ca_certs = ["string"]
endpoints = ["string"]
insecure = false
password = "string"
username = "string"
}
name = "string"
proxy_headers = {
"string" = "string"
}
proxy_id = "string"
space_id = "string"
}
var fleetProxyResource = new FleetProxy("fleetProxyResource", FleetProxyArgs.builder()
.url("string")
.certificate("string")
.certificateAuthorities("string")
.certificateKey("string")
.kibanaConnections(FleetProxyKibanaConnectionArgs.builder()
.apiKey("string")
.bearerToken("string")
.caCerts("string")
.endpoints("string")
.insecure(false)
.password("string")
.username("string")
.build())
.name("string")
.proxyHeaders(Map.of("string", "string"))
.proxyId("string")
.spaceId("string")
.build());
fleet_proxy_resource = elasticstack.FleetProxy("fleetProxyResource",
url="string",
certificate="string",
certificate_authorities="string",
certificate_key="string",
kibana_connections=[{
"api_key": "string",
"bearer_token": "string",
"ca_certs": ["string"],
"endpoints": ["string"],
"insecure": False,
"password": "string",
"username": "string",
}],
name="string",
proxy_headers={
"string": "string",
},
proxy_id="string",
space_id="string")
const fleetProxyResource = new elasticstack.FleetProxy("fleetProxyResource", {
url: "string",
certificate: "string",
certificateAuthorities: "string",
certificateKey: "string",
kibanaConnections: [{
apiKey: "string",
bearerToken: "string",
caCerts: ["string"],
endpoints: ["string"],
insecure: false,
password: "string",
username: "string",
}],
name: "string",
proxyHeaders: {
string: "string",
},
proxyId: "string",
spaceId: "string",
});
type: elasticstack:FleetProxy
properties:
certificate: string
certificateAuthorities: string
certificateKey: string
kibanaConnections:
- apiKey: string
bearerToken: string
caCerts:
- string
endpoints:
- string
insecure: false
password: string
username: string
name: string
proxyHeaders:
string: string
proxyId: string
spaceId: string
url: string
FleetProxy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FleetProxy resource accepts the following input properties:
- Url string
- The proxy URL.
- Certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- Certificate
Key string - The proxy certificate key.
- Kibana
Connections List<FleetProxy Kibana Connection> - Kibana connection configuration block.
- Name string
- The proxy name.
- Proxy
Headers Dictionary<string, string> - Additional headers to send to the proxy during CONNECT requests.
- Proxy
Id string - The proxy ID.
- Space
Id string - An identifier for the space. If not provided, the default space is used.
- Url string
- The proxy URL.
- Certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- Certificate
Key string - The proxy certificate key.
- Kibana
Connections []FleetProxy Kibana Connection Args - Kibana connection configuration block.
- Name string
- The proxy name.
- Proxy
Headers map[string]string - Additional headers to send to the proxy during CONNECT requests.
- Proxy
Id string - The proxy ID.
- Space
Id string - An identifier for the space. If not provided, the default space is used.
- url string
- The proxy URL.
- certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- certificate_
key string - The proxy certificate key.
- kibana_
connections list(object) - Kibana connection configuration block.
- name string
- The proxy name.
- proxy_
headers map(string) - Additional headers to send to the proxy during CONNECT requests.
- proxy_
id string - The proxy ID.
- space_
id string - An identifier for the space. If not provided, the default space is used.
- url String
- The proxy URL.
- certificate String
- The proxy certificate.
- String
- The proxy certificate authorities.
- certificate
Key String - The proxy certificate key.
- kibana
Connections List<FleetProxy Kibana Connection> - Kibana connection configuration block.
- name String
- The proxy name.
- proxy
Headers Map<String,String> - Additional headers to send to the proxy during CONNECT requests.
- proxy
Id String - The proxy ID.
- space
Id String - An identifier for the space. If not provided, the default space is used.
- url string
- The proxy URL.
- certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- certificate
Key string - The proxy certificate key.
- kibana
Connections FleetProxy Kibana Connection[] - Kibana connection configuration block.
- name string
- The proxy name.
- proxy
Headers {[key: string]: string} - Additional headers to send to the proxy during CONNECT requests.
- proxy
Id string - The proxy ID.
- space
Id string - An identifier for the space. If not provided, the default space is used.
- url str
- The proxy URL.
- certificate str
- The proxy certificate.
- str
- The proxy certificate authorities.
- certificate_
key str - The proxy certificate key.
- kibana_
connections Sequence[FleetProxy Kibana Connection Args] - Kibana connection configuration block.
- name str
- The proxy name.
- proxy_
headers Mapping[str, str] - Additional headers to send to the proxy during CONNECT requests.
- proxy_
id str - The proxy ID.
- space_
id str - An identifier for the space. If not provided, the default space is used.
- url String
- The proxy URL.
- certificate String
- The proxy certificate.
- String
- The proxy certificate authorities.
- certificate
Key String - The proxy certificate key.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- name String
- The proxy name.
- proxy
Headers Map<String> - Additional headers to send to the proxy during CONNECT requests.
- proxy
Id String - The proxy ID.
- space
Id String - An identifier for the space. If not provided, the default space is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the FleetProxy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Preconfigured bool - Whether the proxy is preconfigured.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Preconfigured bool - Whether the proxy is preconfigured.
- id string
- The provider-assigned unique ID for this managed resource.
- is_
preconfigured bool - Whether the proxy is preconfigured.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Preconfigured Boolean - Whether the proxy is preconfigured.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Preconfigured boolean - Whether the proxy is preconfigured.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
preconfigured bool - Whether the proxy is preconfigured.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Preconfigured Boolean - Whether the proxy is preconfigured.
Look up Existing FleetProxy Resource
Get an existing FleetProxy 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?: FleetProxyState, opts?: CustomResourceOptions): FleetProxy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate: Optional[str] = None,
certificate_authorities: Optional[str] = None,
certificate_key: Optional[str] = None,
is_preconfigured: Optional[bool] = None,
kibana_connections: Optional[Sequence[FleetProxyKibanaConnectionArgs]] = None,
name: Optional[str] = None,
proxy_headers: Optional[Mapping[str, str]] = None,
proxy_id: Optional[str] = None,
space_id: Optional[str] = None,
url: Optional[str] = None) -> FleetProxyfunc GetFleetProxy(ctx *Context, name string, id IDInput, state *FleetProxyState, opts ...ResourceOption) (*FleetProxy, error)public static FleetProxy Get(string name, Input<string> id, FleetProxyState? state, CustomResourceOptions? opts = null)public static FleetProxy get(String name, Output<String> id, FleetProxyState state, CustomResourceOptions options)resources: _: type: elasticstack:FleetProxy get: id: ${id}import {
to = elasticstack_fleetproxy.example
id = "${id}"
}
- 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.
- Certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- Certificate
Key string - The proxy certificate key.
- Is
Preconfigured bool - Whether the proxy is preconfigured.
- Kibana
Connections List<FleetProxy Kibana Connection> - Kibana connection configuration block.
- Name string
- The proxy name.
- Proxy
Headers Dictionary<string, string> - Additional headers to send to the proxy during CONNECT requests.
- Proxy
Id string - The proxy ID.
- Space
Id string - An identifier for the space. If not provided, the default space is used.
- Url string
- The proxy URL.
- Certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- Certificate
Key string - The proxy certificate key.
- Is
Preconfigured bool - Whether the proxy is preconfigured.
- Kibana
Connections []FleetProxy Kibana Connection Args - Kibana connection configuration block.
- Name string
- The proxy name.
- Proxy
Headers map[string]string - Additional headers to send to the proxy during CONNECT requests.
- Proxy
Id string - The proxy ID.
- Space
Id string - An identifier for the space. If not provided, the default space is used.
- Url string
- The proxy URL.
- certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- certificate_
key string - The proxy certificate key.
- is_
preconfigured bool - Whether the proxy is preconfigured.
- kibana_
connections list(object) - Kibana connection configuration block.
- name string
- The proxy name.
- proxy_
headers map(string) - Additional headers to send to the proxy during CONNECT requests.
- proxy_
id string - The proxy ID.
- space_
id string - An identifier for the space. If not provided, the default space is used.
- url string
- The proxy URL.
- certificate String
- The proxy certificate.
- String
- The proxy certificate authorities.
- certificate
Key String - The proxy certificate key.
- is
Preconfigured Boolean - Whether the proxy is preconfigured.
- kibana
Connections List<FleetProxy Kibana Connection> - Kibana connection configuration block.
- name String
- The proxy name.
- proxy
Headers Map<String,String> - Additional headers to send to the proxy during CONNECT requests.
- proxy
Id String - The proxy ID.
- space
Id String - An identifier for the space. If not provided, the default space is used.
- url String
- The proxy URL.
- certificate string
- The proxy certificate.
- string
- The proxy certificate authorities.
- certificate
Key string - The proxy certificate key.
- is
Preconfigured boolean - Whether the proxy is preconfigured.
- kibana
Connections FleetProxy Kibana Connection[] - Kibana connection configuration block.
- name string
- The proxy name.
- proxy
Headers {[key: string]: string} - Additional headers to send to the proxy during CONNECT requests.
- proxy
Id string - The proxy ID.
- space
Id string - An identifier for the space. If not provided, the default space is used.
- url string
- The proxy URL.
- certificate str
- The proxy certificate.
- str
- The proxy certificate authorities.
- certificate_
key str - The proxy certificate key.
- is_
preconfigured bool - Whether the proxy is preconfigured.
- kibana_
connections Sequence[FleetProxy Kibana Connection Args] - Kibana connection configuration block.
- name str
- The proxy name.
- proxy_
headers Mapping[str, str] - Additional headers to send to the proxy during CONNECT requests.
- proxy_
id str - The proxy ID.
- space_
id str - An identifier for the space. If not provided, the default space is used.
- url str
- The proxy URL.
- certificate String
- The proxy certificate.
- String
- The proxy certificate authorities.
- certificate
Key String - The proxy certificate key.
- is
Preconfigured Boolean - Whether the proxy is preconfigured.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- name String
- The proxy name.
- proxy
Headers Map<String> - Additional headers to send to the proxy during CONNECT requests.
- proxy
Id String - The proxy ID.
- space
Id String - An identifier for the space. If not provided, the default space is used.
- url String
- The proxy URL.
Supporting Types
FleetProxyKibanaConnection, FleetProxyKibanaConnectionArgs
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs List<string> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints List<string>
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs []string - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints []string
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- api_
key string - API Key to use for authentication to Kibana
- bearer_
token string - Bearer Token to use for authentication to Kibana
- ca_
certs list(string) - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints list(string)
- insecure bool
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
- api
Key string - API Key to use for authentication to Kibana
- bearer
Token string - Bearer Token to use for authentication to Kibana
- ca
Certs string[] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints string[]
- insecure boolean
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api_
key str - API Key to use for authentication to Kibana
- bearer_
token str - Bearer Token to use for authentication to Kibana
- ca_
certs Sequence[str] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints Sequence[str]
- insecure bool
- Disable TLS certificate validation
- password str
- Password to use for API authentication to Kibana.
- username str
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
published on Thursday, May 14, 2026 by elastic
