published on Monday, Jun 29, 2026 by terraform-lxd
published on Monday, Jun 29, 2026 by terraform-lxd
The provider type for the lxd package. By default, resources use package-wide configuration
settings, however an explicit Provider instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args?: ProviderArgs, opts?: CustomResourceOptions);@overload
def Provider(resource_name: str,
args: Optional[ProviderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_remote: Optional[str] = None,
remotes: Optional[Sequence[ProviderRemoteArgs]] = None)func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:lxd
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumi_lxd" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProviderArgs
- 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 ProviderArgs
- 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 ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider 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 Provider resource accepts the following input properties:
- Default
Remote string - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- Remotes
List<Provider
Remote> - LXD Remote
- Default
Remote string - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- Remotes
[]Provider
Remote Args - LXD Remote
- default_
remote string - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- remotes list(object)
- LXD Remote
- default
Remote String - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- remotes
List<Provider
Remote> - LXD Remote
- default
Remote string - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- remotes
Provider
Remote[] - LXD Remote
- default_
remote str - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- remotes
Sequence[Provider
Remote Args] - LXD Remote
- default
Remote String - Name of the default LXD remote to use when no remote is specified in the resource. If two or more remotes are defined, one must be set as the default.
- remotes List<Property Map>
- LXD Remote
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider 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.
Provider Resource Methods
TerraformConfig Method
This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
Using TerraformConfig
terraformConfig(): Output<{[key: string]: any}>def terraform_config() -> Output[Provider.Terraform_configResult]func (r *Provider) TerraformConfig() (pulumi.MapOutput, error)public Output<ImmutableDictionary<string, object>> TerraformConfig()TerraformConfig Result
- Result Dictionary<string, object>
- Result map[string]interface{}
- result map(any)
- result Map<String,Object>
- result {[key: string]: any}
- result Mapping[str, Any]
- result Map<Any>
Supporting Types
ProviderRemote, ProviderRemoteArgs
- Address string
- Address of the LXD or SimpleStreams remote.
- Name string
- Name of the LXD remote.
- Bearer
Token string - Bearer token for authentication.
- Bearer
Token stringFile - Path to the file containing the bearer token for authentication.
- Client
Certificate string - PEM-encoded client certificate for mTLS authentication.
- Client
Certificate stringFile - Path to the PEM-encoded client certificate for mTLS authentication.
- Client
Key string - PEM-encoded private key for mTLS authentication.
- Client
Key stringFile - Path to the PEM-encoded private key for mTLS authentication.
- Protocol string
- Remote protocol
- Server
Certificate stringFingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- Trust
Token string - The trust token used for initial authentication with the LXD remote.
- Address string
- Address of the LXD or SimpleStreams remote.
- Name string
- Name of the LXD remote.
- Bearer
Token string - Bearer token for authentication.
- Bearer
Token stringFile - Path to the file containing the bearer token for authentication.
- Client
Certificate string - PEM-encoded client certificate for mTLS authentication.
- Client
Certificate stringFile - Path to the PEM-encoded client certificate for mTLS authentication.
- Client
Key string - PEM-encoded private key for mTLS authentication.
- Client
Key stringFile - Path to the PEM-encoded private key for mTLS authentication.
- Protocol string
- Remote protocol
- Server
Certificate stringFingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- Trust
Token string - The trust token used for initial authentication with the LXD remote.
- address string
- Address of the LXD or SimpleStreams remote.
- name string
- Name of the LXD remote.
- bearer_
token string - Bearer token for authentication.
- bearer_
token_ stringfile - Path to the file containing the bearer token for authentication.
- client_
certificate string - PEM-encoded client certificate for mTLS authentication.
- client_
certificate_ stringfile - Path to the PEM-encoded client certificate for mTLS authentication.
- client_
key string - PEM-encoded private key for mTLS authentication.
- client_
key_ stringfile - Path to the PEM-encoded private key for mTLS authentication.
- protocol string
- Remote protocol
- server_
certificate_ stringfingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- trust_
token string - The trust token used for initial authentication with the LXD remote.
- address String
- Address of the LXD or SimpleStreams remote.
- name String
- Name of the LXD remote.
- bearer
Token String - Bearer token for authentication.
- bearer
Token StringFile - Path to the file containing the bearer token for authentication.
- client
Certificate String - PEM-encoded client certificate for mTLS authentication.
- client
Certificate StringFile - Path to the PEM-encoded client certificate for mTLS authentication.
- client
Key String - PEM-encoded private key for mTLS authentication.
- client
Key StringFile - Path to the PEM-encoded private key for mTLS authentication.
- protocol String
- Remote protocol
- server
Certificate StringFingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- trust
Token String - The trust token used for initial authentication with the LXD remote.
- address string
- Address of the LXD or SimpleStreams remote.
- name string
- Name of the LXD remote.
- bearer
Token string - Bearer token for authentication.
- bearer
Token stringFile - Path to the file containing the bearer token for authentication.
- client
Certificate string - PEM-encoded client certificate for mTLS authentication.
- client
Certificate stringFile - Path to the PEM-encoded client certificate for mTLS authentication.
- client
Key string - PEM-encoded private key for mTLS authentication.
- client
Key stringFile - Path to the PEM-encoded private key for mTLS authentication.
- protocol string
- Remote protocol
- server
Certificate stringFingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- trust
Token string - The trust token used for initial authentication with the LXD remote.
- address str
- Address of the LXD or SimpleStreams remote.
- name str
- Name of the LXD remote.
- bearer_
token str - Bearer token for authentication.
- bearer_
token_ strfile - Path to the file containing the bearer token for authentication.
- client_
certificate str - PEM-encoded client certificate for mTLS authentication.
- client_
certificate_ strfile - Path to the PEM-encoded client certificate for mTLS authentication.
- client_
key str - PEM-encoded private key for mTLS authentication.
- client_
key_ strfile - Path to the PEM-encoded private key for mTLS authentication.
- protocol str
- Remote protocol
- server_
certificate_ strfingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- trust_
token str - The trust token used for initial authentication with the LXD remote.
- address String
- Address of the LXD or SimpleStreams remote.
- name String
- Name of the LXD remote.
- bearer
Token String - Bearer token for authentication.
- bearer
Token StringFile - Path to the file containing the bearer token for authentication.
- client
Certificate String - PEM-encoded client certificate for mTLS authentication.
- client
Certificate StringFile - Path to the PEM-encoded client certificate for mTLS authentication.
- client
Key String - PEM-encoded private key for mTLS authentication.
- client
Key StringFile - Path to the PEM-encoded private key for mTLS authentication.
- protocol String
- Remote protocol
- server
Certificate StringFingerprint - SHA-256 fingerprint of the remote server's TLS certificate. Used to pin and verify the server certificate.
- trust
Token String - The trust token used for initial authentication with the LXD remote.
Package Details
- Repository
- lxd terraform-lxd/terraform-provider-lxd
- License
- Notes
- This Pulumi package is based on the
lxdTerraform Provider.
published on Monday, Jun 29, 2026 by terraform-lxd