1. Packages
  2. Nutanix
  3. API Docs
  4. VmGcUpdateV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.VmGcUpdateV2

Explore with Pulumi AI

Create VmGcUpdateV2 Resource

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

Constructor syntax

new VmGcUpdateV2(name: string, args: VmGcUpdateV2Args, opts?: CustomResourceOptions);
@overload
def VmGcUpdateV2(resource_name: str,
                 args: VmGcUpdateV2Args,
                 opts: Optional[ResourceOptions] = None)

@overload
def VmGcUpdateV2(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 ext_id: Optional[str] = None,
                 configs: Optional[Sequence[VmGcUpdateV2ConfigArgs]] = None)
func NewVmGcUpdateV2(ctx *Context, name string, args VmGcUpdateV2Args, opts ...ResourceOption) (*VmGcUpdateV2, error)
public VmGcUpdateV2(string name, VmGcUpdateV2Args args, CustomResourceOptions? opts = null)
public VmGcUpdateV2(String name, VmGcUpdateV2Args args)
public VmGcUpdateV2(String name, VmGcUpdateV2Args args, CustomResourceOptions options)
type: nutanix:VmGcUpdateV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VmGcUpdateV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VmGcUpdateV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VmGcUpdateV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VmGcUpdateV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VmGcUpdateV2Args
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 vmGcUpdateV2Resource = new Nutanix.VmGcUpdateV2("vmGcUpdateV2Resource", new()
{
    ExtId = "string",
    Configs = new[]
    {
        new Nutanix.Inputs.VmGcUpdateV2ConfigArgs
        {
            CloudInits = new[]
            {
                new Nutanix.Inputs.VmGcUpdateV2ConfigCloudInitArgs
                {
                    CloudInitScripts = new[]
                    {
                        new Nutanix.Inputs.VmGcUpdateV2ConfigCloudInitCloudInitScriptArgs
                        {
                            CustomKeys = new[]
                            {
                                new Nutanix.Inputs.VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyArgs
                                {
                                    KeyValuePairs = new[]
                                    {
                                        new Nutanix.Inputs.VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyKeyValuePairArgs
                                        {
                                            Name = "string",
                                            Value = "string",
                                        },
                                    },
                                },
                            },
                            UserDatas = new[]
                            {
                                new Nutanix.Inputs.VmGcUpdateV2ConfigCloudInitCloudInitScriptUserDataArgs
                                {
                                    Value = "string",
                                },
                            },
                        },
                    },
                    DatasourceType = "string",
                    Metadata = "string",
                },
            },
            Syspreps = new[]
            {
                new Nutanix.Inputs.VmGcUpdateV2ConfigSysprepArgs
                {
                    InstallType = "string",
                    SysprepScripts = new[]
                    {
                        new Nutanix.Inputs.VmGcUpdateV2ConfigSysprepSysprepScriptArgs
                        {
                            CustomKeyValues = new[]
                            {
                                new Nutanix.Inputs.VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueArgs
                                {
                                    KeyValuePairs = new[]
                                    {
                                        new Nutanix.Inputs.VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueKeyValuePairArgs
                                        {
                                            Name = "string",
                                            Value = "string",
                                        },
                                    },
                                },
                            },
                            UnattendXmls = new[]
                            {
                                new Nutanix.Inputs.VmGcUpdateV2ConfigSysprepSysprepScriptUnattendXmlArgs
                                {
                                    Value = "string",
                                },
                            },
                        },
                    },
                },
            },
        },
    },
});
Copy
example, err := nutanix.NewVmGcUpdateV2(ctx, "vmGcUpdateV2Resource", &nutanix.VmGcUpdateV2Args{
	ExtId: pulumi.String("string"),
	Configs: nutanix.VmGcUpdateV2ConfigArray{
		&nutanix.VmGcUpdateV2ConfigArgs{
			CloudInits: nutanix.VmGcUpdateV2ConfigCloudInitArray{
				&nutanix.VmGcUpdateV2ConfigCloudInitArgs{
					CloudInitScripts: nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptArray{
						&nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptArgs{
							CustomKeys: nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyArray{
								&nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyArgs{
									KeyValuePairs: nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyKeyValuePairArray{
										&nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyKeyValuePairArgs{
											Name:  pulumi.String("string"),
											Value: pulumi.String("string"),
										},
									},
								},
							},
							UserDatas: nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptUserDataArray{
								&nutanix.VmGcUpdateV2ConfigCloudInitCloudInitScriptUserDataArgs{
									Value: pulumi.String("string"),
								},
							},
						},
					},
					DatasourceType: pulumi.String("string"),
					Metadata:       pulumi.String("string"),
				},
			},
			Syspreps: nutanix.VmGcUpdateV2ConfigSysprepArray{
				&nutanix.VmGcUpdateV2ConfigSysprepArgs{
					InstallType: pulumi.String("string"),
					SysprepScripts: nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptArray{
						&nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptArgs{
							CustomKeyValues: nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueArray{
								&nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueArgs{
									KeyValuePairs: nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueKeyValuePairArray{
										&nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueKeyValuePairArgs{
											Name:  pulumi.String("string"),
											Value: pulumi.String("string"),
										},
									},
								},
							},
							UnattendXmls: nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptUnattendXmlArray{
								&nutanix.VmGcUpdateV2ConfigSysprepSysprepScriptUnattendXmlArgs{
									Value: pulumi.String("string"),
								},
							},
						},
					},
				},
			},
		},
	},
})
Copy
var vmGcUpdateV2Resource = new VmGcUpdateV2("vmGcUpdateV2Resource", VmGcUpdateV2Args.builder()
    .extId("string")
    .configs(VmGcUpdateV2ConfigArgs.builder()
        .cloudInits(VmGcUpdateV2ConfigCloudInitArgs.builder()
            .cloudInitScripts(VmGcUpdateV2ConfigCloudInitCloudInitScriptArgs.builder()
                .customKeys(VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyArgs.builder()
                    .keyValuePairs(VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyKeyValuePairArgs.builder()
                        .name("string")
                        .value("string")
                        .build())
                    .build())
                .userDatas(VmGcUpdateV2ConfigCloudInitCloudInitScriptUserDataArgs.builder()
                    .value("string")
                    .build())
                .build())
            .datasourceType("string")
            .metadata("string")
            .build())
        .syspreps(VmGcUpdateV2ConfigSysprepArgs.builder()
            .installType("string")
            .sysprepScripts(VmGcUpdateV2ConfigSysprepSysprepScriptArgs.builder()
                .customKeyValues(VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueArgs.builder()
                    .keyValuePairs(VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueKeyValuePairArgs.builder()
                        .name("string")
                        .value("string")
                        .build())
                    .build())
                .unattendXmls(VmGcUpdateV2ConfigSysprepSysprepScriptUnattendXmlArgs.builder()
                    .value("string")
                    .build())
                .build())
            .build())
        .build())
    .build());
Copy
vm_gc_update_v2_resource = nutanix.VmGcUpdateV2("vmGcUpdateV2Resource",
    ext_id="string",
    configs=[{
        "cloud_inits": [{
            "cloud_init_scripts": [{
                "custom_keys": [{
                    "key_value_pairs": [{
                        "name": "string",
                        "value": "string",
                    }],
                }],
                "user_datas": [{
                    "value": "string",
                }],
            }],
            "datasource_type": "string",
            "metadata": "string",
        }],
        "syspreps": [{
            "install_type": "string",
            "sysprep_scripts": [{
                "custom_key_values": [{
                    "key_value_pairs": [{
                        "name": "string",
                        "value": "string",
                    }],
                }],
                "unattend_xmls": [{
                    "value": "string",
                }],
            }],
        }],
    }])
Copy
const vmGcUpdateV2Resource = new nutanix.VmGcUpdateV2("vmGcUpdateV2Resource", {
    extId: "string",
    configs: [{
        cloudInits: [{
            cloudInitScripts: [{
                customKeys: [{
                    keyValuePairs: [{
                        name: "string",
                        value: "string",
                    }],
                }],
                userDatas: [{
                    value: "string",
                }],
            }],
            datasourceType: "string",
            metadata: "string",
        }],
        syspreps: [{
            installType: "string",
            sysprepScripts: [{
                customKeyValues: [{
                    keyValuePairs: [{
                        name: "string",
                        value: "string",
                    }],
                }],
                unattendXmls: [{
                    value: "string",
                }],
            }],
        }],
    }],
});
Copy
type: nutanix:VmGcUpdateV2
properties:
    configs:
        - cloudInits:
            - cloudInitScripts:
                - customKeys:
                    - keyValuePairs:
                        - name: string
                          value: string
                  userDatas:
                    - value: string
              datasourceType: string
              metadata: string
          syspreps:
            - installType: string
              sysprepScripts:
                - customKeyValues:
                    - keyValuePairs:
                        - name: string
                          value: string
                  unattendXmls:
                    - value: string
    extId: string
Copy

VmGcUpdateV2 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VmGcUpdateV2 resource accepts the following input properties:

ExtId This property is required. string
Configs []VmGcUpdateV2ConfigArgs
extId This property is required. String
configs List<VmGcUpdateV2Config>
extId This property is required. string
configs VmGcUpdateV2Config[]
ext_id This property is required. str
configs Sequence[VmGcUpdateV2ConfigArgs]
extId This property is required. String
configs List<Property Map>

Outputs

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

Get an existing VmGcUpdateV2 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?: VmGcUpdateV2State, opts?: CustomResourceOptions): VmGcUpdateV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configs: Optional[Sequence[VmGcUpdateV2ConfigArgs]] = None,
        ext_id: Optional[str] = None) -> VmGcUpdateV2
func GetVmGcUpdateV2(ctx *Context, name string, id IDInput, state *VmGcUpdateV2State, opts ...ResourceOption) (*VmGcUpdateV2, error)
public static VmGcUpdateV2 Get(string name, Input<string> id, VmGcUpdateV2State? state, CustomResourceOptions? opts = null)
public static VmGcUpdateV2 get(String name, Output<String> id, VmGcUpdateV2State state, CustomResourceOptions options)
resources:  _:    type: nutanix:VmGcUpdateV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.

Supporting Types

VmGcUpdateV2Config
, VmGcUpdateV2ConfigArgs

VmGcUpdateV2ConfigCloudInit
, VmGcUpdateV2ConfigCloudInitArgs

VmGcUpdateV2ConfigCloudInitCloudInitScript
, VmGcUpdateV2ConfigCloudInitCloudInitScriptArgs

VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKey
, VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyArgs

VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyKeyValuePair
, VmGcUpdateV2ConfigCloudInitCloudInitScriptCustomKeyKeyValuePairArgs

Name string
Value string
Name string
Value string
name String
value String
name string
value string
name str
value str
name String
value String

VmGcUpdateV2ConfigCloudInitCloudInitScriptUserData
, VmGcUpdateV2ConfigCloudInitCloudInitScriptUserDataArgs

Value string
Value string
value String
value string
value str
value String

VmGcUpdateV2ConfigSysprep
, VmGcUpdateV2ConfigSysprepArgs

VmGcUpdateV2ConfigSysprepSysprepScript
, VmGcUpdateV2ConfigSysprepSysprepScriptArgs

VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValue
, VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueArgs

VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueKeyValuePair
, VmGcUpdateV2ConfigSysprepSysprepScriptCustomKeyValueKeyValuePairArgs

Name string
Value string
Name string
Value string
name String
value String
name string
value string
name str
value str
name String
value String

VmGcUpdateV2ConfigSysprepSysprepScriptUnattendXml
, VmGcUpdateV2ConfigSysprepSysprepScriptUnattendXmlArgs

Value string
Value string
value String
value string
value str
value String

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.