1. Packages
  2. libvirt
  3. API Docs
  4. Ignition
libvirt v0.5.0 published on Wednesday, Sep 25, 2024 by Pulumi

libvirt.Ignition

Explore with Pulumi AI

libvirt logo
libvirt v0.5.0 published on Wednesday, Sep 25, 2024 by Pulumi

    Create Ignition Resource

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

    Constructor syntax

    new Ignition(name: string, args: IgnitionArgs, opts?: CustomResourceOptions);
    @overload
    def Ignition(resource_name: str,
                 args: IgnitionArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ignition(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 content: Optional[str] = None,
                 name: Optional[str] = None,
                 pool: Optional[str] = None)
    func NewIgnition(ctx *Context, name string, args IgnitionArgs, opts ...ResourceOption) (*Ignition, error)
    public Ignition(string name, IgnitionArgs args, CustomResourceOptions? opts = null)
    public Ignition(String name, IgnitionArgs args)
    public Ignition(String name, IgnitionArgs args, CustomResourceOptions options)
    
    type: libvirt:Ignition
    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 IgnitionArgs
    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 IgnitionArgs
    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 IgnitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IgnitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IgnitionArgs
    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 ignitionResource = new Libvirt.Ignition("ignitionResource", new()
    {
        Content = "string",
        Name = "string",
        Pool = "string",
    });
    
    example, err := libvirt.NewIgnition(ctx, "ignitionResource", &libvirt.IgnitionArgs{
    	Content: pulumi.String("string"),
    	Name:    pulumi.String("string"),
    	Pool:    pulumi.String("string"),
    })
    
    var ignitionResource = new Ignition("ignitionResource", IgnitionArgs.builder()
        .content("string")
        .name("string")
        .pool("string")
        .build());
    
    ignition_resource = libvirt.Ignition("ignitionResource",
        content="string",
        name="string",
        pool="string")
    
    const ignitionResource = new libvirt.Ignition("ignitionResource", {
        content: "string",
        name: "string",
        pool: "string",
    });
    
    type: libvirt:Ignition
    properties:
        content: string
        name: string
        pool: string
    

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

    Content string
    Name string
    A unique name for the resource, required by libvirt.
    Pool string
    The pool where the resource will be created. If not given, the default pool will be used.
    Content string
    Name string
    A unique name for the resource, required by libvirt.
    Pool string
    The pool where the resource will be created. If not given, the default pool will be used.
    content String
    name String
    A unique name for the resource, required by libvirt.
    pool String
    The pool where the resource will be created. If not given, the default pool will be used.
    content string
    name string
    A unique name for the resource, required by libvirt.
    pool string
    The pool where the resource will be created. If not given, the default pool will be used.
    content str
    name str
    A unique name for the resource, required by libvirt.
    pool str
    The pool where the resource will be created. If not given, the default pool will be used.
    content String
    name String
    A unique name for the resource, required by libvirt.
    pool String
    The pool where the resource will be created. If not given, the default pool will be used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ignition 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 Ignition Resource

    Get an existing Ignition 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?: IgnitionState, opts?: CustomResourceOptions): Ignition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content: Optional[str] = None,
            name: Optional[str] = None,
            pool: Optional[str] = None) -> Ignition
    func GetIgnition(ctx *Context, name string, id IDInput, state *IgnitionState, opts ...ResourceOption) (*Ignition, error)
    public static Ignition Get(string name, Input<string> id, IgnitionState? state, CustomResourceOptions? opts = null)
    public static Ignition get(String name, Output<String> id, IgnitionState 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:
    Content string
    Name string
    A unique name for the resource, required by libvirt.
    Pool string
    The pool where the resource will be created. If not given, the default pool will be used.
    Content string
    Name string
    A unique name for the resource, required by libvirt.
    Pool string
    The pool where the resource will be created. If not given, the default pool will be used.
    content String
    name String
    A unique name for the resource, required by libvirt.
    pool String
    The pool where the resource will be created. If not given, the default pool will be used.
    content string
    name string
    A unique name for the resource, required by libvirt.
    pool string
    The pool where the resource will be created. If not given, the default pool will be used.
    content str
    name str
    A unique name for the resource, required by libvirt.
    pool str
    The pool where the resource will be created. If not given, the default pool will be used.
    content String
    name String
    A unique name for the resource, required by libvirt.
    pool String
    The pool where the resource will be created. If not given, the default pool will be used.

    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.5.0 published on Wednesday, Sep 25, 2024 by Pulumi