Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

libvirt

v0.2.0 published on Thursday, Nov 11, 2021 by Pulumi

CloudInitDisk

Create a CloudInitDisk Resource

new CloudInitDisk(name: string, args?: CloudInitDiskArgs, opts?: CustomResourceOptions);
@overload
def CloudInitDisk(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  meta_data: Optional[str] = None,
                  name: Optional[str] = None,
                  network_config: Optional[str] = None,
                  pool: Optional[str] = None,
                  user_data: Optional[str] = None)
@overload
def CloudInitDisk(resource_name: str,
                  args: Optional[CloudInitDiskArgs] = None,
                  opts: Optional[ResourceOptions] = None)
func NewCloudInitDisk(ctx *Context, name string, args *CloudInitDiskArgs, opts ...ResourceOption) (*CloudInitDisk, error)
public CloudInitDisk(string name, CloudInitDiskArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CloudInitDiskArgs
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 CloudInitDiskArgs
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 CloudInitDiskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CloudInitDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

MetaData string
cloud-init user data.
Name string
A unique name for the resource, required by libvirt.
NetworkConfig string
cloud-init network-config data.
Pool string
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
UserData string
cloud-init user data.
MetaData string
cloud-init user data.
Name string
A unique name for the resource, required by libvirt.
NetworkConfig string
cloud-init network-config data.
Pool string
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
UserData string
cloud-init user data.
metaData string
cloud-init user data.
name string
A unique name for the resource, required by libvirt.
networkConfig string
cloud-init network-config data.
pool string
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
userData string
cloud-init user data.
meta_data str
cloud-init user data.
name str
A unique name for the resource, required by libvirt.
network_config str
cloud-init network-config data.
pool str
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
user_data str
cloud-init user data.

Outputs

All input properties are implicitly available as output properties. Additionally, the CloudInitDisk 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing CloudInitDisk Resource

Get an existing CloudInitDisk 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?: CloudInitDiskState, opts?: CustomResourceOptions): CloudInitDisk
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        meta_data: Optional[str] = None,
        name: Optional[str] = None,
        network_config: Optional[str] = None,
        pool: Optional[str] = None,
        user_data: Optional[str] = None) -> CloudInitDisk
func GetCloudInitDisk(ctx *Context, name string, id IDInput, state *CloudInitDiskState, opts ...ResourceOption) (*CloudInitDisk, error)
public static CloudInitDisk Get(string name, Input<string> id, CloudInitDiskState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

MetaData string
cloud-init user data.
Name string
A unique name for the resource, required by libvirt.
NetworkConfig string
cloud-init network-config data.
Pool string
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
UserData string
cloud-init user data.
MetaData string
cloud-init user data.
Name string
A unique name for the resource, required by libvirt.
NetworkConfig string
cloud-init network-config data.
Pool string
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
UserData string
cloud-init user data.
metaData string
cloud-init user data.
name string
A unique name for the resource, required by libvirt.
networkConfig string
cloud-init network-config data.
pool string
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
userData string
cloud-init user data.
meta_data str
cloud-init user data.
name str
A unique name for the resource, required by libvirt.
network_config str
cloud-init network-config data.
pool str
The pool where the resource will be created. If not given, the default pool will be used. For user_data, network_config and meta_data parameters have a look at upstream doc: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
user_data str
cloud-init user data.

Package Details

Repository
https://github.com/pulumi/pulumi-libvirt
License
Apache-2.0
Notes
This Pulumi package is based on the libvirt Terraform Provider.