libvirt.CloudInitDisk
Explore with Pulumi AI
Create 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)
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.
- 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.
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:
- Meta
Data string cloud-init user data.
- Name string
A unique name for the resource, required by libvirt.
- Network
Config 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- User
Data string cloud-init user data.
- Meta
Data string cloud-init user data.
- Name string
A unique name for the resource, required by libvirt.
- Network
Config 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- User
Data string cloud-init user data.
- meta
Data String cloud-init user data.
- name String
A unique name for the resource, required by libvirt.
- network
Config 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- user
Data String cloud-init user data.
- meta
Data string cloud-init user data.
- name string
A unique name for the resource, required by libvirt.
- network
Config 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- user
Data 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.
- meta
Data String cloud-init user data.
- name String
A unique name for the resource, required by libvirt.
- network
Config 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- user
Data 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.
- Meta
Data string cloud-init user data.
- Name string
A unique name for the resource, required by libvirt.
- Network
Config 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- User
Data string cloud-init user data.
- Meta
Data string cloud-init user data.
- Name string
A unique name for the resource, required by libvirt.
- Network
Config 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- User
Data string cloud-init user data.
- meta
Data String cloud-init user data.
- name String
A unique name for the resource, required by libvirt.
- network
Config 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- user
Data String cloud-init user data.
- meta
Data string cloud-init user data.
- name string
A unique name for the resource, required by libvirt.
- network
Config 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- user
Data 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.
- meta
Data String cloud-init user data.
- name String
A unique name for the resource, required by libvirt.
- network
Config 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- user
Data 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.