1. Packages
  2. Juju Provider
  3. API Docs
  4. JaasController
Viewing docs for juju 1.4.0-rc1
published on Tuesday, Mar 24, 2026 by juju
juju logo
Viewing docs for juju 1.4.0-rc1
published on Tuesday, Mar 24, 2026 by juju

    A resource that represents a controller registered in JAAS (JIMM).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as juju from "@pulumi/juju";
    
    const _this = new juju.Controller("this", {name: "my-controller"});
    const jaas = new juju.JaasController("jaas", {
        name: _this.name,
        uuid: _this.controllerUuid,
        apiAddresses: _this.apiAddresses,
        caCertificate: _this.caCert,
        username: _this.username,
        password: _this.password,
        tlsHostname: "juju-apiserver",
    });
    
    import pulumi
    import pulumi_juju as juju
    
    this = juju.Controller("this", name="my-controller")
    jaas = juju.JaasController("jaas",
        name=this.name,
        uuid=this.controller_uuid,
        api_addresses=this.api_addresses,
        ca_certificate=this.ca_cert,
        username=this.username,
        password=this.password,
        tls_hostname="juju-apiserver")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/juju/juju"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		this, err := juju.NewController(ctx, "this", &juju.ControllerArgs{
    			Name: pulumi.String("my-controller"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = juju.NewJaasController(ctx, "jaas", &juju.JaasControllerArgs{
    			Name:          this.Name,
    			Uuid:          this.ControllerUuid,
    			ApiAddresses:  this.ApiAddresses,
    			CaCertificate: this.CaCert,
    			Username:      this.Username,
    			Password:      this.Password,
    			TlsHostname:   pulumi.String("juju-apiserver"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Juju = Pulumi.Juju;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Juju.Controller("this", new()
        {
            Name = "my-controller",
        });
    
        var jaas = new Juju.JaasController("jaas", new()
        {
            Name = @this.Name,
            Uuid = @this.ControllerUuid,
            ApiAddresses = @this.ApiAddresses,
            CaCertificate = @this.CaCert,
            Username = @this.Username,
            Password = @this.Password,
            TlsHostname = "juju-apiserver",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.juju.Controller;
    import com.pulumi.juju.ControllerArgs;
    import com.pulumi.juju.JaasController;
    import com.pulumi.juju.JaasControllerArgs;
    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 this_ = new Controller("this", ControllerArgs.builder()
                .name("my-controller")
                .build());
    
            var jaas = new JaasController("jaas", JaasControllerArgs.builder()
                .name(this_.name())
                .uuid(this_.controllerUuid())
                .apiAddresses(this_.apiAddresses())
                .caCertificate(this_.caCert())
                .username(this_.username())
                .password(this_.password())
                .tlsHostname("juju-apiserver")
                .build());
    
        }
    }
    
    resources:
      this:
        type: juju:Controller
        properties:
          name: my-controller
      jaas:
        type: juju:JaasController
        properties:
          name: ${this.name}
          uuid: ${this.controllerUuid}
          apiAddresses: ${this.apiAddresses}
          caCertificate: ${this.caCert}
          username: ${this.username}
          password: ${this.password}
          tlsHostname: juju-apiserver
    

    Create JaasController Resource

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

    Constructor syntax

    new JaasController(name: string, args: JaasControllerArgs, opts?: CustomResourceOptions);
    @overload
    def JaasController(resource_name: str,
                       args: JaasControllerArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def JaasController(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       password: Optional[str] = None,
                       username: Optional[str] = None,
                       uuid: Optional[str] = None,
                       api_addresses: Optional[Sequence[str]] = None,
                       ca_certificate: Optional[str] = None,
                       force: Optional[bool] = None,
                       name: Optional[str] = None,
                       public_address: Optional[str] = None,
                       tls_hostname: Optional[str] = None)
    func NewJaasController(ctx *Context, name string, args JaasControllerArgs, opts ...ResourceOption) (*JaasController, error)
    public JaasController(string name, JaasControllerArgs args, CustomResourceOptions? opts = null)
    public JaasController(String name, JaasControllerArgs args)
    public JaasController(String name, JaasControllerArgs args, CustomResourceOptions options)
    
    type: juju:JaasController
    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 JaasControllerArgs
    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 JaasControllerArgs
    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 JaasControllerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JaasControllerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JaasControllerArgs
    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 jaasControllerResource = new Juju.JaasController("jaasControllerResource", new()
    {
        Password = "string",
        Username = "string",
        Uuid = "string",
        ApiAddresses = new[]
        {
            "string",
        },
        CaCertificate = "string",
        Force = false,
        Name = "string",
        PublicAddress = "string",
        TlsHostname = "string",
    });
    
    example, err := juju.NewJaasController(ctx, "jaasControllerResource", &juju.JaasControllerArgs{
    	Password: pulumi.String("string"),
    	Username: pulumi.String("string"),
    	Uuid:     pulumi.String("string"),
    	ApiAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	CaCertificate: pulumi.String("string"),
    	Force:         pulumi.Bool(false),
    	Name:          pulumi.String("string"),
    	PublicAddress: pulumi.String("string"),
    	TlsHostname:   pulumi.String("string"),
    })
    
    var jaasControllerResource = new JaasController("jaasControllerResource", JaasControllerArgs.builder()
        .password("string")
        .username("string")
        .uuid("string")
        .apiAddresses("string")
        .caCertificate("string")
        .force(false)
        .name("string")
        .publicAddress("string")
        .tlsHostname("string")
        .build());
    
    jaas_controller_resource = juju.JaasController("jaasControllerResource",
        password="string",
        username="string",
        uuid="string",
        api_addresses=["string"],
        ca_certificate="string",
        force=False,
        name="string",
        public_address="string",
        tls_hostname="string")
    
    const jaasControllerResource = new juju.JaasController("jaasControllerResource", {
        password: "string",
        username: "string",
        uuid: "string",
        apiAddresses: ["string"],
        caCertificate: "string",
        force: false,
        name: "string",
        publicAddress: "string",
        tlsHostname: "string",
    });
    
    type: juju:JaasController
    properties:
        apiAddresses:
            - string
        caCertificate: string
        force: false
        name: string
        password: string
        publicAddress: string
        tlsHostname: string
        username: string
        uuid: string
    

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

    Password string
    Password that JIMM should use to connect to the controller.
    Username string
    Username that JIMM should use to connect to the controller.
    Uuid string
    UUID of the controller.
    ApiAddresses List<string>
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    CaCertificate string
    CA certificate for the controller.
    Force bool
    Force removal when deleting (only required when the controller is still available).
    Name string
    Name of the controller to register.
    PublicAddress string
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    TlsHostname string
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    Password string
    Password that JIMM should use to connect to the controller.
    Username string
    Username that JIMM should use to connect to the controller.
    Uuid string
    UUID of the controller.
    ApiAddresses []string
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    CaCertificate string
    CA certificate for the controller.
    Force bool
    Force removal when deleting (only required when the controller is still available).
    Name string
    Name of the controller to register.
    PublicAddress string
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    TlsHostname string
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    password String
    Password that JIMM should use to connect to the controller.
    username String
    Username that JIMM should use to connect to the controller.
    uuid String
    UUID of the controller.
    apiAddresses List<String>
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    caCertificate String
    CA certificate for the controller.
    force Boolean
    Force removal when deleting (only required when the controller is still available).
    name String
    Name of the controller to register.
    publicAddress String
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    tlsHostname String
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    password string
    Password that JIMM should use to connect to the controller.
    username string
    Username that JIMM should use to connect to the controller.
    uuid string
    UUID of the controller.
    apiAddresses string[]
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    caCertificate string
    CA certificate for the controller.
    force boolean
    Force removal when deleting (only required when the controller is still available).
    name string
    Name of the controller to register.
    publicAddress string
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    tlsHostname string
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    password str
    Password that JIMM should use to connect to the controller.
    username str
    Username that JIMM should use to connect to the controller.
    uuid str
    UUID of the controller.
    api_addresses Sequence[str]
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    ca_certificate str
    CA certificate for the controller.
    force bool
    Force removal when deleting (only required when the controller is still available).
    name str
    Name of the controller to register.
    public_address str
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    tls_hostname str
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    password String
    Password that JIMM should use to connect to the controller.
    username String
    Username that JIMM should use to connect to the controller.
    uuid String
    UUID of the controller.
    apiAddresses List<String>
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    caCertificate String
    CA certificate for the controller.
    force Boolean
    Force removal when deleting (only required when the controller is still available).
    name String
    Name of the controller to register.
    publicAddress String
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    tlsHostname String
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the JaasController resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the controller (available/deprecated/unavailable).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the controller (available/deprecated/unavailable).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the controller (available/deprecated/unavailable).
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the controller (available/deprecated/unavailable).
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the controller (available/deprecated/unavailable).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the controller (available/deprecated/unavailable).

    Look up Existing JaasController Resource

    Get an existing JaasController 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?: JaasControllerState, opts?: CustomResourceOptions): JaasController
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_addresses: Optional[Sequence[str]] = None,
            ca_certificate: Optional[str] = None,
            force: Optional[bool] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            public_address: Optional[str] = None,
            status: Optional[str] = None,
            tls_hostname: Optional[str] = None,
            username: Optional[str] = None,
            uuid: Optional[str] = None) -> JaasController
    func GetJaasController(ctx *Context, name string, id IDInput, state *JaasControllerState, opts ...ResourceOption) (*JaasController, error)
    public static JaasController Get(string name, Input<string> id, JaasControllerState? state, CustomResourceOptions? opts = null)
    public static JaasController get(String name, Output<String> id, JaasControllerState state, CustomResourceOptions options)
    resources:  _:    type: juju:JaasController    get:      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:
    ApiAddresses List<string>
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    CaCertificate string
    CA certificate for the controller.
    Force bool
    Force removal when deleting (only required when the controller is still available).
    Name string
    Name of the controller to register.
    Password string
    Password that JIMM should use to connect to the controller.
    PublicAddress string
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    Status string
    Status of the controller (available/deprecated/unavailable).
    TlsHostname string
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    Username string
    Username that JIMM should use to connect to the controller.
    Uuid string
    UUID of the controller.
    ApiAddresses []string
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    CaCertificate string
    CA certificate for the controller.
    Force bool
    Force removal when deleting (only required when the controller is still available).
    Name string
    Name of the controller to register.
    Password string
    Password that JIMM should use to connect to the controller.
    PublicAddress string
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    Status string
    Status of the controller (available/deprecated/unavailable).
    TlsHostname string
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    Username string
    Username that JIMM should use to connect to the controller.
    Uuid string
    UUID of the controller.
    apiAddresses List<String>
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    caCertificate String
    CA certificate for the controller.
    force Boolean
    Force removal when deleting (only required when the controller is still available).
    name String
    Name of the controller to register.
    password String
    Password that JIMM should use to connect to the controller.
    publicAddress String
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    status String
    Status of the controller (available/deprecated/unavailable).
    tlsHostname String
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    username String
    Username that JIMM should use to connect to the controller.
    uuid String
    UUID of the controller.
    apiAddresses string[]
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    caCertificate string
    CA certificate for the controller.
    force boolean
    Force removal when deleting (only required when the controller is still available).
    name string
    Name of the controller to register.
    password string
    Password that JIMM should use to connect to the controller.
    publicAddress string
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    status string
    Status of the controller (available/deprecated/unavailable).
    tlsHostname string
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    username string
    Username that JIMM should use to connect to the controller.
    uuid string
    UUID of the controller.
    api_addresses Sequence[str]
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    ca_certificate str
    CA certificate for the controller.
    force bool
    Force removal when deleting (only required when the controller is still available).
    name str
    Name of the controller to register.
    password str
    Password that JIMM should use to connect to the controller.
    public_address str
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    status str
    Status of the controller (available/deprecated/unavailable).
    tls_hostname str
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    username str
    Username that JIMM should use to connect to the controller.
    uuid str
    UUID of the controller.
    apiAddresses List<String>
    API addresses of the controller. If the controller is HA, only 1 address needs to be provided but multiple addresses are also accepted.
    caCertificate String
    CA certificate for the controller.
    force Boolean
    Force removal when deleting (only required when the controller is still available).
    name String
    Name of the controller to register.
    password String
    Password that JIMM should use to connect to the controller.
    publicAddress String
    Public address of the controller (typically host:port) to be used instead of providing api_addresses.
    status String
    Status of the controller (available/deprecated/unavailable).
    tlsHostname String
    Hostname used for TLS verification. When connecting directly to a controller, you may need to specify a TLS hostname for SNI purposes that matches the controller's self-signed certificate.
    username String
    Username that JIMM should use to connect to the controller.
    uuid String
    UUID of the controller.

    Package Details

    Repository
    juju juju/terraform-provider-juju
    License
    Notes
    This Pulumi package is based on the juju Terraform Provider.
    juju logo
    Viewing docs for juju 1.4.0-rc1
    published on Tuesday, Mar 24, 2026 by juju
      Try Pulumi Cloud free. Your team will thank you.