1. Packages
  2. threefold
  3. API Docs
  4. provider
  5. Deployment
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold

threefold.provider.Deployment

Explore with Pulumi AI

threefold logo
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold

    Create Deployment Resource

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

    Constructor syntax

    new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
    @overload
    def Deployment(resource_name: str,
                   args: DeploymentArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Deployment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   name: Optional[str] = None,
                   node_id: Optional[Any] = None,
                   disks: Optional[Sequence[DiskArgs]] = None,
                   network_name: Optional[str] = None,
                   qsfs: Optional[Sequence[QSFSInputArgs]] = None,
                   solution_provider: Optional[int] = None,
                   solution_type: Optional[str] = None,
                   vms: Optional[Sequence[VMInputArgs]] = None,
                   zdbs: Optional[Sequence[ZDBInputArgs]] = None)
    func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
    public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
    public Deployment(String name, DeploymentArgs args)
    public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
    
    type: threefold:provider:Deployment
    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 DeploymentArgs
    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 DeploymentArgs
    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 DeploymentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeploymentArgs
    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 deploymentResource = new Threefold.Provider.Deployment("deploymentResource", new()
    {
        Name = "string",
        Node_id = "any",
        Disks = new[]
        {
            new Threefold.Provider.Inputs.DiskArgs
            {
                Name = "string",
                Size = 0,
                Description = "string",
            },
        },
        Network_name = "string",
        Qsfs = new[]
        {
            new Threefold.Provider.Inputs.QSFSInputArgs
            {
                Minimal_shards = 0,
                Encryption_key = "string",
                Expected_shards = 0,
                Groups = new[]
                {
                    new Threefold.Provider.Inputs.GroupArgs
                    {
                        Backends = new[]
                        {
                            new Threefold.Provider.Inputs.BackendArgs
                            {
                                Address = "string",
                                Namespace = "string",
                                Password = "string",
                            },
                        },
                    },
                },
                Max_zdb_data_dir_size = 0,
                Metadata = new Threefold.Provider.Inputs.MetadataArgs
                {
                    Encryption_key = "string",
                    Prefix = "string",
                    Backends = new[]
                    {
                        new Threefold.Provider.Inputs.BackendArgs
                        {
                            Address = "string",
                            Namespace = "string",
                            Password = "string",
                        },
                    },
                    Encryption_algorithm = "string",
                    Type = "string",
                },
                Cache = 0,
                Name = "string",
                Redundant_groups = 0,
                Redundant_nodes = 0,
                Compression_algorithm = "string",
                Description = "string",
                Encryption_algorithm = "string",
            },
        },
        Solution_provider = 0,
        Solution_type = "string",
        Vms = new[]
        {
            new Threefold.Provider.Inputs.VMInputArgs
            {
                Memory = 0,
                Network_name = "string",
                Name = "string",
                Cpu = 0,
                Flist = "string",
                Mounts = new[]
                {
                    new Threefold.Provider.Inputs.MountArgs
                    {
                        Disk_name = "string",
                        Mount_point = "string",
                    },
                },
                Gpus = new[]
                {
                    "string",
                },
                Flist_checksum = "string",
                Env_vars = 
                {
                    { "string", "string" },
                },
                Mycelium_ip_seed = "string",
                Entrypoint = "string",
                Description = "string",
                Planetary = false,
                Public_ip = false,
                Public_ip6 = false,
                Rootfs_size = 0,
                Zlogs = new[]
                {
                    new Threefold.Provider.Inputs.ZlogArgs
                    {
                        Output = "string",
                        Zmachine = "string",
                    },
                },
            },
        },
        Zdbs = new[]
        {
            new Threefold.Provider.Inputs.ZDBInputArgs
            {
                Name = "string",
                Password = "string",
                Size = 0,
                Description = "string",
                Mode = "string",
                Public = false,
            },
        },
    });
    
    example, err := provider.NewDeployment(ctx, "deploymentResource", &provider.DeploymentArgs{
    	Name:    pulumi.String("string"),
    	Node_id: pulumi.Any("any"),
    	Disks: provider.DiskArray{
    		&provider.DiskArgs{
    			Name:        pulumi.String("string"),
    			Size:        pulumi.Int(0),
    			Description: pulumi.String("string"),
    		},
    	},
    	Network_name: pulumi.String("string"),
    	Qsfs: provider.QSFSInputArray{
    		&provider.QSFSInputArgs{
    			Minimal_shards:  pulumi.Int(0),
    			Encryption_key:  pulumi.String("string"),
    			Expected_shards: pulumi.Int(0),
    			Groups: provider.GroupArray{
    				&provider.GroupArgs{
    					Backends: provider.BackendArray{
    						&provider.BackendArgs{
    							Address:   pulumi.String("string"),
    							Namespace: pulumi.String("string"),
    							Password:  pulumi.String("string"),
    						},
    					},
    				},
    			},
    			Max_zdb_data_dir_size: pulumi.Int(0),
    			Metadata: &provider.MetadataArgs{
    				Encryption_key: pulumi.String("string"),
    				Prefix:         pulumi.String("string"),
    				Backends: provider.BackendArray{
    					&provider.BackendArgs{
    						Address:   pulumi.String("string"),
    						Namespace: pulumi.String("string"),
    						Password:  pulumi.String("string"),
    					},
    				},
    				Encryption_algorithm: pulumi.String("string"),
    				Type:                 pulumi.String("string"),
    			},
    			Cache:                 pulumi.Int(0),
    			Name:                  pulumi.String("string"),
    			Redundant_groups:      pulumi.Int(0),
    			Redundant_nodes:       pulumi.Int(0),
    			Compression_algorithm: pulumi.String("string"),
    			Description:           pulumi.String("string"),
    			Encryption_algorithm:  pulumi.String("string"),
    		},
    	},
    	Solution_provider: pulumi.Int(0),
    	Solution_type:     pulumi.String("string"),
    	Vms: provider.VMInputArray{
    		&provider.VMInputArgs{
    			Memory:       pulumi.Int(0),
    			Network_name: pulumi.String("string"),
    			Name:         pulumi.String("string"),
    			Cpu:          pulumi.Int(0),
    			Flist:        pulumi.String("string"),
    			Mounts: provider.MountArray{
    				&provider.MountArgs{
    					Disk_name:   pulumi.String("string"),
    					Mount_point: pulumi.String("string"),
    				},
    			},
    			Gpus: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Flist_checksum: pulumi.String("string"),
    			Env_vars: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Mycelium_ip_seed: pulumi.String("string"),
    			Entrypoint:       pulumi.String("string"),
    			Description:      pulumi.String("string"),
    			Planetary:        pulumi.Bool(false),
    			Public_ip:        pulumi.Bool(false),
    			Public_ip6:       pulumi.Bool(false),
    			Rootfs_size:      pulumi.Int(0),
    			Zlogs: provider.ZlogArray{
    				&provider.ZlogArgs{
    					Output:   pulumi.String("string"),
    					Zmachine: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Zdbs: provider.ZDBInputArray{
    		&provider.ZDBInputArgs{
    			Name:        pulumi.String("string"),
    			Password:    pulumi.String("string"),
    			Size:        pulumi.Int(0),
    			Description: pulumi.String("string"),
    			Mode:        pulumi.String("string"),
    			Public:      pulumi.Bool(false),
    		},
    	},
    })
    
    var deploymentResource = new Deployment("deploymentResource", DeploymentArgs.builder()
        .name("string")
        .node_id("any")
        .disks(DiskArgs.builder()
            .name("string")
            .size(0)
            .description("string")
            .build())
        .network_name("string")
        .qsfs(QSFSInputArgs.builder()
            .minimal_shards(0)
            .encryption_key("string")
            .expected_shards(0)
            .groups(GroupArgs.builder()
                .backends(BackendArgs.builder()
                    .address("string")
                    .namespace("string")
                    .password("string")
                    .build())
                .build())
            .max_zdb_data_dir_size(0)
            .metadata(MetadataArgs.builder()
                .encryption_key("string")
                .prefix("string")
                .backends(BackendArgs.builder()
                    .address("string")
                    .namespace("string")
                    .password("string")
                    .build())
                .encryption_algorithm("string")
                .type("string")
                .build())
            .cache(0)
            .name("string")
            .redundant_groups(0)
            .redundant_nodes(0)
            .compression_algorithm("string")
            .description("string")
            .encryption_algorithm("string")
            .build())
        .solution_provider(0)
        .solution_type("string")
        .vms(VMInputArgs.builder()
            .memory(0)
            .network_name("string")
            .name("string")
            .cpu(0)
            .flist("string")
            .mounts(MountArgs.builder()
                .disk_name("string")
                .mount_point("string")
                .build())
            .gpus("string")
            .flist_checksum("string")
            .env_vars(Map.of("string", "string"))
            .mycelium_ip_seed("string")
            .entrypoint("string")
            .description("string")
            .planetary(false)
            .public_ip(false)
            .public_ip6(false)
            .rootfs_size(0)
            .zlogs(ZlogArgs.builder()
                .output("string")
                .zmachine("string")
                .build())
            .build())
        .zdbs(ZDBInputArgs.builder()
            .name("string")
            .password("string")
            .size(0)
            .description("string")
            .mode("string")
            .public_(false)
            .build())
        .build());
    
    deployment_resource = threefold.provider.Deployment("deploymentResource",
        name="string",
        node_id="any",
        disks=[threefold.provider.DiskArgs(
            name="string",
            size=0,
            description="string",
        )],
        network_name="string",
        qsfs=[threefold.provider.QSFSInputArgs(
            minimal_shards=0,
            encryption_key="string",
            expected_shards=0,
            groups=[threefold.provider.GroupArgs(
                backends=[threefold.provider.BackendArgs(
                    address="string",
                    namespace="string",
                    password="string",
                )],
            )],
            max_zdb_data_dir_size=0,
            metadata=threefold.provider.MetadataArgs(
                encryption_key="string",
                prefix="string",
                backends=[threefold.provider.BackendArgs(
                    address="string",
                    namespace="string",
                    password="string",
                )],
                encryption_algorithm="string",
                type="string",
            ),
            cache=0,
            name="string",
            redundant_groups=0,
            redundant_nodes=0,
            compression_algorithm="string",
            description="string",
            encryption_algorithm="string",
        )],
        solution_provider=0,
        solution_type="string",
        vms=[threefold.provider.VMInputArgs(
            memory=0,
            network_name="string",
            name="string",
            cpu=0,
            flist="string",
            mounts=[threefold.provider.MountArgs(
                disk_name="string",
                mount_point="string",
            )],
            gpus=["string"],
            flist_checksum="string",
            env_vars={
                "string": "string",
            },
            mycelium_ip_seed="string",
            entrypoint="string",
            description="string",
            planetary=False,
            public_ip=False,
            public_ip6=False,
            rootfs_size=0,
            zlogs=[threefold.provider.ZlogArgs(
                output="string",
                zmachine="string",
            )],
        )],
        zdbs=[threefold.provider.ZDBInputArgs(
            name="string",
            password="string",
            size=0,
            description="string",
            mode="string",
            public=False,
        )])
    
    const deploymentResource = new threefold.provider.Deployment("deploymentResource", {
        name: "string",
        node_id: "any",
        disks: [{
            name: "string",
            size: 0,
            description: "string",
        }],
        network_name: "string",
        qsfs: [{
            minimal_shards: 0,
            encryption_key: "string",
            expected_shards: 0,
            groups: [{
                backends: [{
                    address: "string",
                    namespace: "string",
                    password: "string",
                }],
            }],
            max_zdb_data_dir_size: 0,
            metadata: {
                encryption_key: "string",
                prefix: "string",
                backends: [{
                    address: "string",
                    namespace: "string",
                    password: "string",
                }],
                encryption_algorithm: "string",
                type: "string",
            },
            cache: 0,
            name: "string",
            redundant_groups: 0,
            redundant_nodes: 0,
            compression_algorithm: "string",
            description: "string",
            encryption_algorithm: "string",
        }],
        solution_provider: 0,
        solution_type: "string",
        vms: [{
            memory: 0,
            network_name: "string",
            name: "string",
            cpu: 0,
            flist: "string",
            mounts: [{
                disk_name: "string",
                mount_point: "string",
            }],
            gpus: ["string"],
            flist_checksum: "string",
            env_vars: {
                string: "string",
            },
            mycelium_ip_seed: "string",
            entrypoint: "string",
            description: "string",
            planetary: false,
            public_ip: false,
            public_ip6: false,
            rootfs_size: 0,
            zlogs: [{
                output: "string",
                zmachine: "string",
            }],
        }],
        zdbs: [{
            name: "string",
            password: "string",
            size: 0,
            description: "string",
            mode: "string",
            "public": false,
        }],
    });
    
    type: threefold:provider:Deployment
    properties:
        disks:
            - description: string
              name: string
              size: 0
        name: string
        network_name: string
        node_id: any
        qsfs:
            - cache: 0
              compression_algorithm: string
              description: string
              encryption_algorithm: string
              encryption_key: string
              expected_shards: 0
              groups:
                - backends:
                    - address: string
                      namespace: string
                      password: string
              max_zdb_data_dir_size: 0
              metadata:
                backends:
                    - address: string
                      namespace: string
                      password: string
                encryption_algorithm: string
                encryption_key: string
                prefix: string
                type: string
              minimal_shards: 0
              name: string
              redundant_groups: 0
              redundant_nodes: 0
        solution_provider: 0
        solution_type: string
        vms:
            - cpu: 0
              description: string
              entrypoint: string
              env_vars:
                string: string
              flist: string
              flist_checksum: string
              gpus:
                - string
              memory: 0
              mounts:
                - disk_name: string
                  mount_point: string
              mycelium_ip_seed: string
              name: string
              network_name: string
              planetary: false
              public_ip: false
              public_ip6: false
              rootfs_size: 0
              zlogs:
                - output: string
                  zmachine: string
        zdbs:
            - description: string
              mode: string
              name: string
              password: string
              public: false
              size: 0
    

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

    Outputs

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

    Contract_id int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip_range string
    Node_deployment_id Dictionary<string, int>
    Qsfs_computed List<QSFSComputed>
    Vms_computed List<VMComputed>
    Zdbs_computed List<ZDBComputed>
    Contract_id int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip_range string
    Node_deployment_id map[string]int
    Qsfs_computed []QSFSComputed
    Vms_computed []VMComputed
    Zdbs_computed []ZDBComputed
    contract_id Integer
    id String
    The provider-assigned unique ID for this managed resource.
    ip_range String
    node_deployment_id Map<String,Integer>
    qsfs_computed List<QSFSComputed>
    vms_computed List<VMComputed>
    zdbs_computed List<ZDBComputed>
    contract_id number
    id string
    The provider-assigned unique ID for this managed resource.
    ip_range string
    node_deployment_id {[key: string]: number}
    qsfs_computed QSFSComputed[]
    vms_computed VMComputed[]
    zdbs_computed ZDBComputed[]
    contract_id Number
    id String
    The provider-assigned unique ID for this managed resource.
    ip_range String
    node_deployment_id Map<Number>
    qsfs_computed List<Property Map>
    vms_computed List<Property Map>
    zdbs_computed List<Property Map>

    Supporting Types

    Backend, BackendArgs

    Address string
    Namespace string
    Password string
    Address string
    Namespace string
    Password string
    address String
    namespace String
    password String
    address string
    namespace string
    password string
    address String
    namespace String
    password String

    Disk, DiskArgs

    Name string
    Size int
    Description string
    Name string
    Size int
    Description string
    name String
    size Integer
    description String
    name string
    size number
    description string
    name String
    size Number
    description String

    Group, GroupArgs

    Metadata, MetadataArgs

    Mount, MountArgs

    Disk_name string
    Mount_point string
    Disk_name string
    Mount_point string
    disk_name String
    mount_point String
    disk_name string
    mount_point string
    disk_name String
    mount_point String

    QSFSComputed, QSFSComputedArgs

    QSFSInput, QSFSInputArgs

    VMComputed, VMComputedArgs

    Computed_ip string
    Computed_ip6 string
    Console_url string
    Mycelium_ip string
    Planetary_ip string
    Ip string
    Computed_ip string
    Computed_ip6 string
    Console_url string
    Mycelium_ip string
    Planetary_ip string
    Ip string
    computed_ip String
    computed_ip6 String
    console_url String
    mycelium_ip String
    planetary_ip String
    ip String
    computed_ip string
    computed_ip6 string
    console_url string
    mycelium_ip string
    planetary_ip string
    ip string
    computed_ip String
    computed_ip6 String
    console_url String
    mycelium_ip String
    planetary_ip String
    ip String

    VMInput, VMInputArgs

    Cpu int
    Flist string
    Memory int
    Name string
    Network_name string
    Description string
    Entrypoint string
    Env_vars Dictionary<string, string>
    Flist_checksum string
    Gpus List<string>
    Mounts List<Mount>
    Mycelium_ip_seed string
    Planetary bool
    Public_ip bool
    Public_ip6 bool
    Rootfs_size int
    Zlogs List<Zlog>
    Cpu int
    Flist string
    Memory int
    Name string
    Network_name string
    Description string
    Entrypoint string
    Env_vars map[string]string
    Flist_checksum string
    Gpus []string
    Mounts []Mount
    Mycelium_ip_seed string
    Planetary bool
    Public_ip bool
    Public_ip6 bool
    Rootfs_size int
    Zlogs []Zlog
    cpu Integer
    flist String
    memory Integer
    name String
    network_name String
    description String
    entrypoint String
    env_vars Map<String,String>
    flist_checksum String
    gpus List<String>
    mounts List<Mount>
    mycelium_ip_seed String
    planetary Boolean
    public_ip Boolean
    public_ip6 Boolean
    rootfs_size Integer
    zlogs List<Zlog>
    cpu number
    flist string
    memory number
    name string
    network_name string
    description string
    entrypoint string
    env_vars {[key: string]: string}
    flist_checksum string
    gpus string[]
    mounts Mount[]
    mycelium_ip_seed string
    planetary boolean
    public_ip boolean
    public_ip6 boolean
    rootfs_size number
    zlogs Zlog[]
    cpu Number
    flist String
    memory Number
    name String
    network_name String
    description String
    entrypoint String
    env_vars Map<String>
    flist_checksum String
    gpus List<String>
    mounts List<Property Map>
    mycelium_ip_seed String
    planetary Boolean
    public_ip Boolean
    public_ip6 Boolean
    rootfs_size Number
    zlogs List<Property Map>

    ZDBComputed, ZDBComputedArgs

    Ips List<string>
    Namespace string
    Port int
    Ips []string
    Namespace string
    Port int
    ips List<String>
    namespace String
    port Integer
    ips string[]
    namespace string
    port number
    ips Sequence[str]
    namespace str
    port int
    ips List<String>
    namespace String
    port Number

    ZDBInput, ZDBInputArgs

    Name string
    Password string
    Size int
    Description string
    Mode string
    Public bool
    Name string
    Password string
    Size int
    Description string
    Mode string
    Public bool
    name String
    password String
    size Integer
    description String
    mode String
    public_ Boolean
    name string
    password string
    size number
    description string
    mode string
    public boolean
    name str
    password str
    size int
    description str
    mode str
    public bool
    name String
    password String
    size Number
    description String
    mode String
    public Boolean

    Zlog, ZlogArgs

    Output string
    Zmachine string
    Output string
    Zmachine string
    output String
    zmachine String
    output string
    zmachine string
    output String
    zmachine String

    Package Details

    Repository
    threefold threefoldtech/pulumi-threefold
    License
    Apache-2.0
    threefold logo
    Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold