1. Packages
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. FleetAgentDownloadSource
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic

    Creates a new Fleet Agent Binary Download Source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    const example = new elasticstack.FleetAgentDownloadSource("example", {
        name: "Agent Download Source example",
        host: "https://artifacts.elastic.co/downloads/elastic-agent",
        "default": false,
    });
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    example = elasticstack.FleetAgentDownloadSource("example",
        name="Agent Download Source example",
        host="https://artifacts.elastic.co/downloads/elastic-agent",
        default=False)
    
    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.NewFleetAgentDownloadSource(ctx, "example", &elasticstack.FleetAgentDownloadSourceArgs{
    			Name:    pulumi.String("Agent Download Source example"),
    			Host:    pulumi.String("https://artifacts.elastic.co/downloads/elastic-agent"),
    			Default: pulumi.Bool(false),
    		})
    		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.FleetAgentDownloadSource("example", new()
        {
            Name = "Agent Download Source example",
            Host = "https://artifacts.elastic.co/downloads/elastic-agent",
            Default = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.FleetAgentDownloadSource;
    import com.pulumi.elasticstack.FleetAgentDownloadSourceArgs;
    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 FleetAgentDownloadSource("example", FleetAgentDownloadSourceArgs.builder()
                .name("Agent Download Source example")
                .host("https://artifacts.elastic.co/downloads/elastic-agent")
                .default_(false)
                .build());
    
        }
    }
    
    resources:
      example:
        type: elasticstack:FleetAgentDownloadSource
        properties:
          name: Agent Download Source example
          host: https://artifacts.elastic.co/downloads/elastic-agent
          default: false
    
    Example coming soon!
    

    Create FleetAgentDownloadSource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FleetAgentDownloadSource(name: string, args: FleetAgentDownloadSourceArgs, opts?: CustomResourceOptions);
    @overload
    def FleetAgentDownloadSource(resource_name: str,
                                 args: FleetAgentDownloadSourceArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetAgentDownloadSource(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 host: Optional[str] = None,
                                 default: Optional[bool] = None,
                                 kibana_connections: Optional[Sequence[FleetAgentDownloadSourceKibanaConnectionArgs]] = None,
                                 name: Optional[str] = None,
                                 proxy_id: Optional[str] = None,
                                 source_id: Optional[str] = None,
                                 space_ids: Optional[Sequence[str]] = None)
    func NewFleetAgentDownloadSource(ctx *Context, name string, args FleetAgentDownloadSourceArgs, opts ...ResourceOption) (*FleetAgentDownloadSource, error)
    public FleetAgentDownloadSource(string name, FleetAgentDownloadSourceArgs args, CustomResourceOptions? opts = null)
    public FleetAgentDownloadSource(String name, FleetAgentDownloadSourceArgs args)
    public FleetAgentDownloadSource(String name, FleetAgentDownloadSourceArgs args, CustomResourceOptions options)
    
    type: elasticstack:FleetAgentDownloadSource
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "elasticstack_fleetagentdownloadsource" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FleetAgentDownloadSourceArgs
    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 FleetAgentDownloadSourceArgs
    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 FleetAgentDownloadSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetAgentDownloadSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetAgentDownloadSourceArgs
    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 fleetAgentDownloadSourceResource = new Elasticstack.FleetAgentDownloadSource("fleetAgentDownloadSourceResource", new()
    {
        Host = "string",
        Default = false,
        KibanaConnections = new[]
        {
            new Elasticstack.Inputs.FleetAgentDownloadSourceKibanaConnectionArgs
            {
                ApiKey = "string",
                BearerToken = "string",
                CaCerts = new[]
                {
                    "string",
                },
                Endpoints = new[]
                {
                    "string",
                },
                Insecure = false,
                Password = "string",
                Username = "string",
            },
        },
        Name = "string",
        ProxyId = "string",
        SourceId = "string",
        SpaceIds = new[]
        {
            "string",
        },
    });
    
    example, err := elasticstack.NewFleetAgentDownloadSource(ctx, "fleetAgentDownloadSourceResource", &elasticstack.FleetAgentDownloadSourceArgs{
    	Host:    pulumi.String("string"),
    	Default: pulumi.Bool(false),
    	KibanaConnections: elasticstack.FleetAgentDownloadSourceKibanaConnectionArray{
    		&elasticstack.FleetAgentDownloadSourceKibanaConnectionArgs{
    			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"),
    	ProxyId:  pulumi.String("string"),
    	SourceId: pulumi.String("string"),
    	SpaceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "elasticstack_fleetagentdownloadsource" "fleetAgentDownloadSourceResource" {
      host    = "string"
      default = false
      kibana_connections {
        api_key      = "string"
        bearer_token = "string"
        ca_certs     = ["string"]
        endpoints    = ["string"]
        insecure     = false
        password     = "string"
        username     = "string"
      }
      name      = "string"
      proxy_id  = "string"
      source_id = "string"
      space_ids = ["string"]
    }
    
    var fleetAgentDownloadSourceResource = new FleetAgentDownloadSource("fleetAgentDownloadSourceResource", FleetAgentDownloadSourceArgs.builder()
        .host("string")
        .default_(false)
        .kibanaConnections(FleetAgentDownloadSourceKibanaConnectionArgs.builder()
            .apiKey("string")
            .bearerToken("string")
            .caCerts("string")
            .endpoints("string")
            .insecure(false)
            .password("string")
            .username("string")
            .build())
        .name("string")
        .proxyId("string")
        .sourceId("string")
        .spaceIds("string")
        .build());
    
    fleet_agent_download_source_resource = elasticstack.FleetAgentDownloadSource("fleetAgentDownloadSourceResource",
        host="string",
        default=False,
        kibana_connections=[{
            "api_key": "string",
            "bearer_token": "string",
            "ca_certs": ["string"],
            "endpoints": ["string"],
            "insecure": False,
            "password": "string",
            "username": "string",
        }],
        name="string",
        proxy_id="string",
        source_id="string",
        space_ids=["string"])
    
    const fleetAgentDownloadSourceResource = new elasticstack.FleetAgentDownloadSource("fleetAgentDownloadSourceResource", {
        host: "string",
        "default": false,
        kibanaConnections: [{
            apiKey: "string",
            bearerToken: "string",
            caCerts: ["string"],
            endpoints: ["string"],
            insecure: false,
            password: "string",
            username: "string",
        }],
        name: "string",
        proxyId: "string",
        sourceId: "string",
        spaceIds: ["string"],
    });
    
    type: elasticstack:FleetAgentDownloadSource
    properties:
        default: false
        host: string
        kibanaConnections:
            - apiKey: string
              bearerToken: string
              caCerts:
                - string
              endpoints:
                - string
              insecure: false
              password: string
              username: string
        name: string
        proxyId: string
        sourceId: string
        spaceIds:
            - string
    

    FleetAgentDownloadSource 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 FleetAgentDownloadSource resource accepts the following input properties:

    Host string
    The base URL from which Elastic Agents will download binaries.
    Default bool
    Set this download source as the default for agents.
    KibanaConnections List<FleetAgentDownloadSourceKibanaConnection>
    Kibana connection configuration block.
    Name string
    The name of the Fleet agent download source.
    ProxyId string
    The ID of the proxy to use for this download source.
    SourceId string
    Unique identifier of the Fleet agent download source.
    SpaceIds List<string>
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    Host string
    The base URL from which Elastic Agents will download binaries.
    Default bool
    Set this download source as the default for agents.
    KibanaConnections []FleetAgentDownloadSourceKibanaConnectionArgs
    Kibana connection configuration block.
    Name string
    The name of the Fleet agent download source.
    ProxyId string
    The ID of the proxy to use for this download source.
    SourceId string
    Unique identifier of the Fleet agent download source.
    SpaceIds []string
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    host string
    The base URL from which Elastic Agents will download binaries.
    default bool
    Set this download source as the default for agents.
    kibana_connections list(object)
    Kibana connection configuration block.
    name string
    The name of the Fleet agent download source.
    proxy_id string
    The ID of the proxy to use for this download source.
    source_id string
    Unique identifier of the Fleet agent download source.
    space_ids list(string)
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    host String
    The base URL from which Elastic Agents will download binaries.
    default_ Boolean
    Set this download source as the default for agents.
    kibanaConnections List<FleetAgentDownloadSourceKibanaConnection>
    Kibana connection configuration block.
    name String
    The name of the Fleet agent download source.
    proxyId String
    The ID of the proxy to use for this download source.
    sourceId String
    Unique identifier of the Fleet agent download source.
    spaceIds List<String>
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    host string
    The base URL from which Elastic Agents will download binaries.
    default boolean
    Set this download source as the default for agents.
    kibanaConnections FleetAgentDownloadSourceKibanaConnection[]
    Kibana connection configuration block.
    name string
    The name of the Fleet agent download source.
    proxyId string
    The ID of the proxy to use for this download source.
    sourceId string
    Unique identifier of the Fleet agent download source.
    spaceIds string[]
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    host str
    The base URL from which Elastic Agents will download binaries.
    default bool
    Set this download source as the default for agents.
    kibana_connections Sequence[FleetAgentDownloadSourceKibanaConnectionArgs]
    Kibana connection configuration block.
    name str
    The name of the Fleet agent download source.
    proxy_id str
    The ID of the proxy to use for this download source.
    source_id str
    Unique identifier of the Fleet agent download source.
    space_ids Sequence[str]
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    host String
    The base URL from which Elastic Agents will download binaries.
    default Boolean
    Set this download source as the default for agents.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    name String
    The name of the Fleet agent download source.
    proxyId String
    The ID of the proxy to use for this download source.
    sourceId String
    Unique identifier of the Fleet agent download source.
    spaceIds List<String>
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FleetAgentDownloadSource 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 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 FleetAgentDownloadSource Resource

    Get an existing FleetAgentDownloadSource 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?: FleetAgentDownloadSourceState, opts?: CustomResourceOptions): FleetAgentDownloadSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default: Optional[bool] = None,
            host: Optional[str] = None,
            kibana_connections: Optional[Sequence[FleetAgentDownloadSourceKibanaConnectionArgs]] = None,
            name: Optional[str] = None,
            proxy_id: Optional[str] = None,
            source_id: Optional[str] = None,
            space_ids: Optional[Sequence[str]] = None) -> FleetAgentDownloadSource
    func GetFleetAgentDownloadSource(ctx *Context, name string, id IDInput, state *FleetAgentDownloadSourceState, opts ...ResourceOption) (*FleetAgentDownloadSource, error)
    public static FleetAgentDownloadSource Get(string name, Input<string> id, FleetAgentDownloadSourceState? state, CustomResourceOptions? opts = null)
    public static FleetAgentDownloadSource get(String name, Output<String> id, FleetAgentDownloadSourceState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:FleetAgentDownloadSource    get:      id: ${id}
    import {
      to = elasticstack_fleetagentdownloadsource.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.
    The following state arguments are supported:
    Default bool
    Set this download source as the default for agents.
    Host string
    The base URL from which Elastic Agents will download binaries.
    KibanaConnections List<FleetAgentDownloadSourceKibanaConnection>
    Kibana connection configuration block.
    Name string
    The name of the Fleet agent download source.
    ProxyId string
    The ID of the proxy to use for this download source.
    SourceId string
    Unique identifier of the Fleet agent download source.
    SpaceIds List<string>
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    Default bool
    Set this download source as the default for agents.
    Host string
    The base URL from which Elastic Agents will download binaries.
    KibanaConnections []FleetAgentDownloadSourceKibanaConnectionArgs
    Kibana connection configuration block.
    Name string
    The name of the Fleet agent download source.
    ProxyId string
    The ID of the proxy to use for this download source.
    SourceId string
    Unique identifier of the Fleet agent download source.
    SpaceIds []string
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    default bool
    Set this download source as the default for agents.
    host string
    The base URL from which Elastic Agents will download binaries.
    kibana_connections list(object)
    Kibana connection configuration block.
    name string
    The name of the Fleet agent download source.
    proxy_id string
    The ID of the proxy to use for this download source.
    source_id string
    Unique identifier of the Fleet agent download source.
    space_ids list(string)
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    default_ Boolean
    Set this download source as the default for agents.
    host String
    The base URL from which Elastic Agents will download binaries.
    kibanaConnections List<FleetAgentDownloadSourceKibanaConnection>
    Kibana connection configuration block.
    name String
    The name of the Fleet agent download source.
    proxyId String
    The ID of the proxy to use for this download source.
    sourceId String
    Unique identifier of the Fleet agent download source.
    spaceIds List<String>
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    default boolean
    Set this download source as the default for agents.
    host string
    The base URL from which Elastic Agents will download binaries.
    kibanaConnections FleetAgentDownloadSourceKibanaConnection[]
    Kibana connection configuration block.
    name string
    The name of the Fleet agent download source.
    proxyId string
    The ID of the proxy to use for this download source.
    sourceId string
    Unique identifier of the Fleet agent download source.
    spaceIds string[]
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    default bool
    Set this download source as the default for agents.
    host str
    The base URL from which Elastic Agents will download binaries.
    kibana_connections Sequence[FleetAgentDownloadSourceKibanaConnectionArgs]
    Kibana connection configuration block.
    name str
    The name of the Fleet agent download source.
    proxy_id str
    The ID of the proxy to use for this download source.
    source_id str
    Unique identifier of the Fleet agent download source.
    space_ids Sequence[str]
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.
    default Boolean
    Set this download source as the default for agents.
    host String
    The base URL from which Elastic Agents will download binaries.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    name String
    The name of the Fleet agent download source.
    proxyId String
    The ID of the proxy to use for this download source.
    sourceId String
    Unique identifier of the Fleet agent download source.
    spaceIds List<String>
    The Kibana space IDs where this download source is available. When set, the download source will be created and managed within the specified space. Note: The order of space IDs does not matter as this is a set.

    Supporting Types

    FleetAgentDownloadSourceKibanaConnection, FleetAgentDownloadSourceKibanaConnectionArgs

    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts 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.
    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts []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.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts 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.
    apiKey string
    API Key to use for authentication to Kibana
    bearerToken string
    Bearer Token to use for authentication to Kibana
    caCerts 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.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts 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 elasticstack Terraform Provider.
    Viewing docs for elasticstack 0.15.0
    published on Thursday, May 14, 2026 by elastic
      Try Pulumi Cloud free. Your team will thank you.