1. Packages
  2. libvirt
  3. API Docs
  4. CloudInitDisk
libvirt v0.4.6 published on Friday, May 24, 2024 by Pulumi

libvirt.CloudInitDisk

Explore with Pulumi AI

libvirt logo
libvirt v0.4.6 published on Friday, May 24, 2024 by Pulumi

    Create CloudInitDisk Resource

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

    Constructor syntax

    new CloudInitDisk(name: string, args?: CloudInitDiskArgs, opts?: CustomResourceOptions);
    @overload
    def CloudInitDisk(resource_name: str,
                      args: Optional[CloudInitDiskArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @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)
    func NewCloudInitDisk(ctx *Context, name string, args *CloudInitDiskArgs, opts ...ResourceOption) (*CloudInitDisk, error)
    public CloudInitDisk(string name, CloudInitDiskArgs? args = null, CustomResourceOptions? opts = null)
    public CloudInitDisk(String name, CloudInitDiskArgs args)
    public CloudInitDisk(String name, CloudInitDiskArgs args, CustomResourceOptions options)
    
    type: libvirt:CloudInitDisk
    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 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.
    name String
    The unique name of the resource.
    args CloudInitDiskArgs
    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 cloudInitDiskResource = new Libvirt.CloudInitDisk("cloudInitDiskResource", new()
    {
        MetaData = "string",
        Name = "string",
        NetworkConfig = "string",
        Pool = "string",
        UserData = "string",
    });
    
    example, err := libvirt.NewCloudInitDisk(ctx, "cloudInitDiskResource", &libvirt.CloudInitDiskArgs{
    	MetaData:      pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	NetworkConfig: pulumi.String("string"),
    	Pool:          pulumi.String("string"),
    	UserData:      pulumi.String("string"),
    })
    
    var cloudInitDiskResource = new CloudInitDisk("cloudInitDiskResource", CloudInitDiskArgs.builder()
        .metaData("string")
        .name("string")
        .networkConfig("string")
        .pool("string")
        .userData("string")
        .build());
    
    cloud_init_disk_resource = libvirt.CloudInitDisk("cloudInitDiskResource",
        meta_data="string",
        name="string",
        network_config="string",
        pool="string",
        user_data="string")
    
    const cloudInitDiskResource = new libvirt.CloudInitDisk("cloudInitDiskResource", {
        metaData: "string",
        name: "string",
        networkConfig: "string",
        pool: "string",
        userData: "string",
    });
    
    type: libvirt:CloudInitDisk
    properties:
        metaData: string
        name: string
        networkConfig: string
        pool: string
        userData: string
    

    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.
    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.
    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.

    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 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.

    Look up 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)
    public static CloudInitDisk get(String name, Output<String> id, CloudInitDiskState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    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.
    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.
    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.

    Package Details

    Repository
    libvirt pulumi/pulumi-libvirt
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the libvirt Terraform Provider.
    libvirt logo
    libvirt v0.4.6 published on Friday, May 24, 2024 by Pulumi