Threefold Grid v0.7.4 published on Thursday, Sep 5, 2024 by Threefold
threefold.Deployment
Explore with Pulumi AI
Threefold Grid v0.7.4 published on Thursday, Sep 5, 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: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.Deployment("deploymentResource", new()
{
Name = "string",
Node_id = "any",
Disks = new[]
{
new Threefold.Inputs.DiskArgs
{
Name = "string",
Size = 0,
Description = "string",
},
},
Network_name = "string",
Qsfs = new[]
{
new Threefold.Inputs.QSFSInputArgs
{
Minimal_shards = 0,
Encryption_key = "string",
Expected_shards = 0,
Groups = new[]
{
new Threefold.Inputs.GroupArgs
{
Backends = new[]
{
new Threefold.Inputs.BackendArgs
{
Address = "string",
Namespace = "string",
Password = "string",
},
},
},
},
Max_zdb_data_dir_size = 0,
Metadata = new Threefold.Inputs.MetadataArgs
{
Encryption_key = "string",
Prefix = "string",
Backends = new[]
{
new Threefold.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.Inputs.VMInputArgs
{
Network_name = "string",
Memory = 0,
Node_id = "any",
Cpu = 0,
Flist = "string",
Name = "string",
Flist_checksum = "string",
Gpus = new[]
{
"string",
},
Entrypoint = "string",
Zlogs = new[]
{
new Threefold.Inputs.ZlogArgs
{
Output = "string",
Zmachine = "string",
},
},
Description = "string",
Mycelium_ip_seed = "string",
Env_vars =
{
{ "string", "string" },
},
Mounts = new[]
{
new Threefold.Inputs.MountArgs
{
Disk_name = "string",
Mount_point = "string",
},
},
Planetary = false,
Public_ip = false,
Public_ip6 = false,
Rootfs_size = 0,
Mycelium = false,
},
},
Zdbs = new[]
{
new Threefold.Inputs.ZDBInputArgs
{
Name = "string",
Password = "string",
Size = 0,
Description = "string",
Mode = "string",
Public = false,
},
},
});
example, err := threefold.NewDeployment(ctx, "deploymentResource", &threefold.DeploymentArgs{
Name: pulumi.String("string"),
Node_id: pulumi.Any("any"),
Disks: threefold.DiskArray{
&threefold.DiskArgs{
Name: pulumi.String("string"),
Size: pulumi.Int(0),
Description: pulumi.String("string"),
},
},
Network_name: pulumi.String("string"),
Qsfs: threefold.QSFSInputArray{
&threefold.QSFSInputArgs{
Minimal_shards: pulumi.Int(0),
Encryption_key: pulumi.String("string"),
Expected_shards: pulumi.Int(0),
Groups: threefold.GroupArray{
&threefold.GroupArgs{
Backends: threefold.BackendArray{
&threefold.BackendArgs{
Address: pulumi.String("string"),
Namespace: pulumi.String("string"),
Password: pulumi.String("string"),
},
},
},
},
Max_zdb_data_dir_size: pulumi.Int(0),
Metadata: &threefold.MetadataArgs{
Encryption_key: pulumi.String("string"),
Prefix: pulumi.String("string"),
Backends: threefold.BackendArray{
&threefold.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: threefold.VMInputArray{
&threefold.VMInputArgs{
Network_name: pulumi.String("string"),
Memory: pulumi.Int(0),
Node_id: pulumi.Any("any"),
Cpu: pulumi.Int(0),
Flist: pulumi.String("string"),
Name: pulumi.String("string"),
Flist_checksum: pulumi.String("string"),
Gpus: pulumi.StringArray{
pulumi.String("string"),
},
Entrypoint: pulumi.String("string"),
Zlogs: threefold.ZlogArray{
&threefold.ZlogArgs{
Output: pulumi.String("string"),
Zmachine: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Mycelium_ip_seed: pulumi.String("string"),
Env_vars: pulumi.StringMap{
"string": pulumi.String("string"),
},
Mounts: threefold.MountArray{
&threefold.MountArgs{
Disk_name: pulumi.String("string"),
Mount_point: pulumi.String("string"),
},
},
Planetary: pulumi.Bool(false),
Public_ip: pulumi.Bool(false),
Public_ip6: pulumi.Bool(false),
Rootfs_size: pulumi.Int(0),
Mycelium: pulumi.Bool(false),
},
},
Zdbs: threefold.ZDBInputArray{
&threefold.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()
.network_name("string")
.memory(0)
.node_id("any")
.cpu(0)
.flist("string")
.name("string")
.flist_checksum("string")
.gpus("string")
.entrypoint("string")
.zlogs(ZlogArgs.builder()
.output("string")
.zmachine("string")
.build())
.description("string")
.mycelium_ip_seed("string")
.env_vars(Map.of("string", "string"))
.mounts(MountArgs.builder()
.disk_name("string")
.mount_point("string")
.build())
.planetary(false)
.public_ip(false)
.public_ip6(false)
.rootfs_size(0)
.mycelium(false)
.build())
.zdbs(ZDBInputArgs.builder()
.name("string")
.password("string")
.size(0)
.description("string")
.mode("string")
.public_(false)
.build())
.build());
deployment_resource = threefold.Deployment("deploymentResource",
name="string",
node_id="any",
disks=[threefold.DiskArgs(
name="string",
size=0,
description="string",
)],
network_name="string",
qsfs=[threefold.QSFSInputArgs(
minimal_shards=0,
encryption_key="string",
expected_shards=0,
groups=[threefold.GroupArgs(
backends=[threefold.BackendArgs(
address="string",
namespace="string",
password="string",
)],
)],
max_zdb_data_dir_size=0,
metadata=threefold.MetadataArgs(
encryption_key="string",
prefix="string",
backends=[threefold.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.VMInputArgs(
network_name="string",
memory=0,
node_id="any",
cpu=0,
flist="string",
name="string",
flist_checksum="string",
gpus=["string"],
entrypoint="string",
zlogs=[threefold.ZlogArgs(
output="string",
zmachine="string",
)],
description="string",
mycelium_ip_seed="string",
env_vars={
"string": "string",
},
mounts=[threefold.MountArgs(
disk_name="string",
mount_point="string",
)],
planetary=False,
public_ip=False,
public_ip6=False,
rootfs_size=0,
mycelium=False,
)],
zdbs=[threefold.ZDBInputArgs(
name="string",
password="string",
size=0,
description="string",
mode="string",
public=False,
)])
const deploymentResource = new threefold.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: [{
network_name: "string",
memory: 0,
node_id: "any",
cpu: 0,
flist: "string",
name: "string",
flist_checksum: "string",
gpus: ["string"],
entrypoint: "string",
zlogs: [{
output: "string",
zmachine: "string",
}],
description: "string",
mycelium_ip_seed: "string",
env_vars: {
string: "string",
},
mounts: [{
disk_name: "string",
mount_point: "string",
}],
planetary: false,
public_ip: false,
public_ip6: false,
rootfs_size: 0,
mycelium: false,
}],
zdbs: [{
name: "string",
password: "string",
size: 0,
description: "string",
mode: "string",
"public": false,
}],
});
type: threefold: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: false
mycelium_ip_seed: string
name: string
network_name: string
node_id: any
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:
- Name string
- Node_
id object - Disks List<Disk>
- Network_
name string - Qsfs List<QSFSInput>
- Solution_
provider int - Solution_
type string - Vms List<VMInput>
- Zdbs List<ZDBInput>
- Name string
- Node_
id interface{} - Disks
[]Disk
Args - Network_
name string - Qsfs
[]QSFSInput
Args - Solution_
provider int - Solution_
type string - Vms
[]VMInput
Args - Zdbs
[]ZDBInput
Args
- name String
- node_
id Object - disks List<Disk>
- network_
name String - qsfs List<QSFSInput>
- solution_
provider Integer - solution_
type String - vms List<VMInput>
- zdbs List<ZDBInput>
- name string
- node_
id any - disks Disk[]
- network_
name string - qsfs QSFSInput[]
- solution_
provider number - solution_
type string - vms VMInput[]
- zdbs ZDBInput[]
- name String
- node_
id Any - disks List<Property Map>
- network_
name String - qsfs List<Property Map>
- solution_
provider Number - solution_
type String - vms List<Property Map>
- zdbs List<Property Map>
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_ Dictionary<string, int>id - 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_ map[string]intid - 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_ Map<String,Integer>id - 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_ {[key: string]: number}id - qsfs_
computed QSFSComputed[] - vms_
computed VMComputed[] - zdbs_
computed ZDBComputed[]
- contract_
id int - id str
- The provider-assigned unique ID for this managed resource.
- ip_
range str - node_
deployment_ Mapping[str, int]id - qsfs_
computed Sequence[QSFSComputed] - vms_
computed Sequence[VMComputed] - zdbs_
computed Sequence[ZDBComputed]
- contract_
id Number - id String
- The provider-assigned unique ID for this managed resource.
- ip_
range String - node_
deployment_ Map<Number>id - qsfs_
computed List<Property Map> - vms_
computed List<Property Map> - zdbs_
computed List<Property Map>
Supporting Types
Backend, BackendArgs
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 str
- size int
- description str
- name String
- size Number
- description String
Group, GroupArgs
Metadata, MetadataArgs
- Encryption_
key string - Prefix string
- Backends List<Backend>
- Encryption_
algorithm string - Type string
- Encryption_
key string - Prefix string
- Backends []Backend
- Encryption_
algorithm string - Type string
- encryption_
key String - prefix String
- backends List<Backend>
- encryption_
algorithm String - type String
- encryption_
key string - prefix string
- backends Backend[]
- encryption_
algorithm string - type string
- encryption_
key String - prefix String
- backends List<Property Map>
- encryption_
algorithm String - type String
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 str - mount_
point str
- disk_
name String - mount_
point String
QSFSComputed, QSFSComputedArgs
- Metrics_
endpoint string
- Metrics_
endpoint string
- metrics_
endpoint String
- metrics_
endpoint string
- metrics_
endpoint str
- metrics_
endpoint String
QSFSInput, QSFSInputArgs
- Cache int
- Encryption_
key string - Expected_
shards int - Groups List<Group>
- Max_
zdb_ intdata_ dir_ size - Metadata Metadata
- Minimal_
shards int - Name string
- Redundant_
groups int - Redundant_
nodes int - Compression_
algorithm string - Description string
- Encryption_
algorithm string
- Cache int
- Encryption_
key string - Expected_
shards int - Groups []Group
- Max_
zdb_ intdata_ dir_ size - Metadata Metadata
- Minimal_
shards int - Name string
- Redundant_
groups int - Redundant_
nodes int - Compression_
algorithm string - Description string
- Encryption_
algorithm string
- cache Integer
- encryption_
key String - expected_
shards Integer - groups List<Group>
- max_
zdb_ Integerdata_ dir_ size - metadata Metadata
- minimal_
shards Integer - name String
- redundant_
groups Integer - redundant_
nodes Integer - compression_
algorithm String - description String
- encryption_
algorithm String
- cache number
- encryption_
key string - expected_
shards number - groups Group[]
- max_
zdb_ numberdata_ dir_ size - metadata Metadata
- minimal_
shards number - name string
- redundant_
groups number - redundant_
nodes number - compression_
algorithm string - description string
- encryption_
algorithm string
- cache Number
- encryption_
key String - expected_
shards Number - groups List<Property Map>
- max_
zdb_ Numberdata_ dir_ size - metadata Property Map
- minimal_
shards Number - name String
- redundant_
groups Number - redundant_
nodes Number - compression_
algorithm String - description String
- encryption_
algorithm String
VMComputed, VMComputedArgs
- Computed_
ip string - Computed_
ip6 string - Console_
url string - Mycelium_
ip string - Mycelium_
ip_ stringseed - Planetary_
ip string - Ip string
- Computed_
ip string - Computed_
ip6 string - Console_
url string - Mycelium_
ip string - Mycelium_
ip_ stringseed - Planetary_
ip string - Ip string
- computed_
ip String - computed_
ip6 String - console_
url String - mycelium_
ip String - mycelium_
ip_ Stringseed - planetary_
ip String - ip String
- computed_
ip string - computed_
ip6 string - console_
url string - mycelium_
ip string - mycelium_
ip_ stringseed - planetary_
ip string - ip string
- computed_
ip str - computed_
ip6 str - console_
url str - mycelium_
ip str - mycelium_
ip_ strseed - planetary_
ip str - ip str
- computed_
ip String - computed_
ip6 String - console_
url String - mycelium_
ip String - mycelium_
ip_ Stringseed - planetary_
ip String - ip String
VMInput, VMInputArgs
- Cpu int
- Flist string
- Memory int
- Name string
- Network_
name string - Node_
id object - Description string
- Entrypoint string
- Env_
vars Dictionary<string, string> - Flist_
checksum string - Gpus List<string>
- Mounts List<Mount>
- Mycelium bool
- Mycelium_
ip_ stringseed - 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 - Node_
id interface{} - Description string
- Entrypoint string
- Env_
vars map[string]string - Flist_
checksum string - Gpus []string
- Mounts []Mount
- Mycelium bool
- Mycelium_
ip_ stringseed - Planetary bool
- Public_
ip bool - Public_
ip6 bool - Rootfs_
size int - Zlogs []Zlog
- cpu Integer
- flist String
- memory Integer
- name String
- network_
name String - node_
id Object - description String
- entrypoint String
- env_
vars Map<String,String> - flist_
checksum String - gpus List<String>
- mounts List<Mount>
- mycelium Boolean
- mycelium_
ip_ Stringseed - 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 - node_
id any - description string
- entrypoint string
- env_
vars {[key: string]: string} - flist_
checksum string - gpus string[]
- mounts Mount[]
- mycelium boolean
- mycelium_
ip_ stringseed - planetary boolean
- public_
ip boolean - public_
ip6 boolean - rootfs_
size number - zlogs Zlog[]
- cpu int
- flist str
- memory int
- name str
- network_
name str - node_
id Any - description str
- entrypoint str
- env_
vars Mapping[str, str] - flist_
checksum str - gpus Sequence[str]
- mounts Sequence[Mount]
- mycelium bool
- mycelium_
ip_ strseed - planetary bool
- public_
ip bool - public_
ip6 bool - rootfs_
size int - zlogs Sequence[Zlog]
- cpu Number
- flist String
- memory Number
- name String
- network_
name String - node_
id Any - description String
- entrypoint String
- env_
vars Map<String> - flist_
checksum String - gpus List<String>
- mounts List<Property Map>
- mycelium Boolean
- mycelium_
ip_ Stringseed - planetary Boolean
- public_
ip Boolean - public_
ip6 Boolean - rootfs_
size Number - zlogs List<Property Map>
ZDBComputed, ZDBComputedArgs
ZDBInput, ZDBInputArgs
Zlog, ZlogArgs
Package Details
- Repository
- threefold threefoldtech/pulumi-threefold
- License
- Apache-2.0
Threefold Grid v0.7.4 published on Thursday, Sep 5, 2024 by Threefold