1. Packages
  2. Nsxt Provider
  3. API Docs
  4. UpgradePrecheckAcknowledge
nsxt 3.8.0 published on Monday, Apr 14, 2025 by vmware

nsxt.UpgradePrecheckAcknowledge

Explore with Pulumi AI

This resource provides a method for acknowledging the failed prechecks for NSXT upgrade.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nsxt from "@pulumi/nsxt";

const test = new nsxt.UpgradePrecheckAcknowledge("test", {
    precheckIds: [
        "backupOperationCheck",
        "pUBCheck",
    ],
    targetVersion: nsxt_upgrade_prepare.test.target_version,
});
Copy
import pulumi
import pulumi_nsxt as nsxt

test = nsxt.UpgradePrecheckAcknowledge("test",
    precheck_ids=[
        "backupOperationCheck",
        "pUBCheck",
    ],
    target_version=nsxt_upgrade_prepare["test"]["target_version"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nsxt/v3/nsxt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nsxt.NewUpgradePrecheckAcknowledge(ctx, "test", &nsxt.UpgradePrecheckAcknowledgeArgs{
			PrecheckIds: pulumi.StringArray{
				pulumi.String("backupOperationCheck"),
				pulumi.String("pUBCheck"),
			},
			TargetVersion: pulumi.Any(nsxt_upgrade_prepare.Test.Target_version),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nsxt = Pulumi.Nsxt;

return await Deployment.RunAsync(() => 
{
    var test = new Nsxt.UpgradePrecheckAcknowledge("test", new()
    {
        PrecheckIds = new[]
        {
            "backupOperationCheck",
            "pUBCheck",
        },
        TargetVersion = nsxt_upgrade_prepare.Test.Target_version,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nsxt.UpgradePrecheckAcknowledge;
import com.pulumi.nsxt.UpgradePrecheckAcknowledgeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new UpgradePrecheckAcknowledge("test", UpgradePrecheckAcknowledgeArgs.builder()
            .precheckIds(            
                "backupOperationCheck",
                "pUBCheck")
            .targetVersion(nsxt_upgrade_prepare.test().target_version())
            .build());

    }
}
Copy
resources:
  test:
    type: nsxt:UpgradePrecheckAcknowledge
    properties:
      precheckIds:
        - backupOperationCheck
        - pUBCheck
      targetVersion: ${nsxt_upgrade_prepare.test.target_version}
Copy

Create UpgradePrecheckAcknowledge Resource

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

Constructor syntax

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

@overload
def UpgradePrecheckAcknowledge(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               precheck_ids: Optional[Sequence[str]] = None,
                               target_version: Optional[str] = None,
                               upgrade_precheck_acknowledge_id: Optional[str] = None)
func NewUpgradePrecheckAcknowledge(ctx *Context, name string, args UpgradePrecheckAcknowledgeArgs, opts ...ResourceOption) (*UpgradePrecheckAcknowledge, error)
public UpgradePrecheckAcknowledge(string name, UpgradePrecheckAcknowledgeArgs args, CustomResourceOptions? opts = null)
public UpgradePrecheckAcknowledge(String name, UpgradePrecheckAcknowledgeArgs args)
public UpgradePrecheckAcknowledge(String name, UpgradePrecheckAcknowledgeArgs args, CustomResourceOptions options)
type: nsxt:UpgradePrecheckAcknowledge
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. UpgradePrecheckAcknowledgeArgs
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. UpgradePrecheckAcknowledgeArgs
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. UpgradePrecheckAcknowledgeArgs
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. UpgradePrecheckAcknowledgeArgs
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. UpgradePrecheckAcknowledgeArgs
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 upgradePrecheckAcknowledgeResource = new Nsxt.UpgradePrecheckAcknowledge("upgradePrecheckAcknowledgeResource", new()
{
    PrecheckIds = new[]
    {
        "string",
    },
    TargetVersion = "string",
    UpgradePrecheckAcknowledgeId = "string",
});
Copy
example, err := nsxt.NewUpgradePrecheckAcknowledge(ctx, "upgradePrecheckAcknowledgeResource", &nsxt.UpgradePrecheckAcknowledgeArgs{
PrecheckIds: pulumi.StringArray{
pulumi.String("string"),
},
TargetVersion: pulumi.String("string"),
UpgradePrecheckAcknowledgeId: pulumi.String("string"),
})
Copy
var upgradePrecheckAcknowledgeResource = new UpgradePrecheckAcknowledge("upgradePrecheckAcknowledgeResource", UpgradePrecheckAcknowledgeArgs.builder()
    .precheckIds("string")
    .targetVersion("string")
    .upgradePrecheckAcknowledgeId("string")
    .build());
Copy
upgrade_precheck_acknowledge_resource = nsxt.UpgradePrecheckAcknowledge("upgradePrecheckAcknowledgeResource",
    precheck_ids=["string"],
    target_version="string",
    upgrade_precheck_acknowledge_id="string")
Copy
const upgradePrecheckAcknowledgeResource = new nsxt.UpgradePrecheckAcknowledge("upgradePrecheckAcknowledgeResource", {
    precheckIds: ["string"],
    targetVersion: "string",
    upgradePrecheckAcknowledgeId: "string",
});
Copy
type: nsxt:UpgradePrecheckAcknowledge
properties:
    precheckIds:
        - string
    targetVersion: string
    upgradePrecheckAcknowledgeId: string
Copy

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

PrecheckIds This property is required. List<string>
List of ids of failed prechecks user wants to acknowledge.
TargetVersion This property is required. string
Target system version
UpgradePrecheckAcknowledgeId string
ID of the precheck warning.
PrecheckIds This property is required. []string
List of ids of failed prechecks user wants to acknowledge.
TargetVersion This property is required. string
Target system version
UpgradePrecheckAcknowledgeId string
ID of the precheck warning.
precheckIds This property is required. List<String>
List of ids of failed prechecks user wants to acknowledge.
targetVersion This property is required. String
Target system version
upgradePrecheckAcknowledgeId String
ID of the precheck warning.
precheckIds This property is required. string[]
List of ids of failed prechecks user wants to acknowledge.
targetVersion This property is required. string
Target system version
upgradePrecheckAcknowledgeId string
ID of the precheck warning.
precheck_ids This property is required. Sequence[str]
List of ids of failed prechecks user wants to acknowledge.
target_version This property is required. str
Target system version
upgrade_precheck_acknowledge_id str
ID of the precheck warning.
precheckIds This property is required. List<String>
List of ids of failed prechecks user wants to acknowledge.
targetVersion This property is required. String
Target system version
upgradePrecheckAcknowledgeId String
ID of the precheck warning.

Outputs

All input properties are implicitly available as output properties. Additionally, the UpgradePrecheckAcknowledge resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
PrecheckWarnings List<UpgradePrecheckAcknowledgePrecheckWarning>
(Computed) State of all precheck warnings.
Id string
The provider-assigned unique ID for this managed resource.
PrecheckWarnings []UpgradePrecheckAcknowledgePrecheckWarning
(Computed) State of all precheck warnings.
id String
The provider-assigned unique ID for this managed resource.
precheckWarnings List<UpgradePrecheckAcknowledgePrecheckWarning>
(Computed) State of all precheck warnings.
id string
The provider-assigned unique ID for this managed resource.
precheckWarnings UpgradePrecheckAcknowledgePrecheckWarning[]
(Computed) State of all precheck warnings.
id str
The provider-assigned unique ID for this managed resource.
precheck_warnings Sequence[UpgradePrecheckAcknowledgePrecheckWarning]
(Computed) State of all precheck warnings.
id String
The provider-assigned unique ID for this managed resource.
precheckWarnings List<Property Map>
(Computed) State of all precheck warnings.

Look up Existing UpgradePrecheckAcknowledge Resource

Get an existing UpgradePrecheckAcknowledge 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?: UpgradePrecheckAcknowledgeState, opts?: CustomResourceOptions): UpgradePrecheckAcknowledge
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        precheck_ids: Optional[Sequence[str]] = None,
        precheck_warnings: Optional[Sequence[UpgradePrecheckAcknowledgePrecheckWarningArgs]] = None,
        target_version: Optional[str] = None,
        upgrade_precheck_acknowledge_id: Optional[str] = None) -> UpgradePrecheckAcknowledge
func GetUpgradePrecheckAcknowledge(ctx *Context, name string, id IDInput, state *UpgradePrecheckAcknowledgeState, opts ...ResourceOption) (*UpgradePrecheckAcknowledge, error)
public static UpgradePrecheckAcknowledge Get(string name, Input<string> id, UpgradePrecheckAcknowledgeState? state, CustomResourceOptions? opts = null)
public static UpgradePrecheckAcknowledge get(String name, Output<String> id, UpgradePrecheckAcknowledgeState state, CustomResourceOptions options)
resources:  _:    type: nsxt:UpgradePrecheckAcknowledge    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.
The following state arguments are supported:
PrecheckIds List<string>
List of ids of failed prechecks user wants to acknowledge.
PrecheckWarnings List<UpgradePrecheckAcknowledgePrecheckWarning>
(Computed) State of all precheck warnings.
TargetVersion string
Target system version
UpgradePrecheckAcknowledgeId string
ID of the precheck warning.
PrecheckIds []string
List of ids of failed prechecks user wants to acknowledge.
PrecheckWarnings []UpgradePrecheckAcknowledgePrecheckWarningArgs
(Computed) State of all precheck warnings.
TargetVersion string
Target system version
UpgradePrecheckAcknowledgeId string
ID of the precheck warning.
precheckIds List<String>
List of ids of failed prechecks user wants to acknowledge.
precheckWarnings List<UpgradePrecheckAcknowledgePrecheckWarning>
(Computed) State of all precheck warnings.
targetVersion String
Target system version
upgradePrecheckAcknowledgeId String
ID of the precheck warning.
precheckIds string[]
List of ids of failed prechecks user wants to acknowledge.
precheckWarnings UpgradePrecheckAcknowledgePrecheckWarning[]
(Computed) State of all precheck warnings.
targetVersion string
Target system version
upgradePrecheckAcknowledgeId string
ID of the precheck warning.
precheck_ids Sequence[str]
List of ids of failed prechecks user wants to acknowledge.
precheck_warnings Sequence[UpgradePrecheckAcknowledgePrecheckWarningArgs]
(Computed) State of all precheck warnings.
target_version str
Target system version
upgrade_precheck_acknowledge_id str
ID of the precheck warning.
precheckIds List<String>
List of ids of failed prechecks user wants to acknowledge.
precheckWarnings List<Property Map>
(Computed) State of all precheck warnings.
targetVersion String
Target system version
upgradePrecheckAcknowledgeId String
ID of the precheck warning.

Supporting Types

UpgradePrecheckAcknowledgePrecheckWarning
, UpgradePrecheckAcknowledgePrecheckWarningArgs

Id This property is required. string
ID of the precheck warning.
IsAcknowledged This property is required. bool
Boolean value which identifies if the precheck warning has been acknowledged.
Message This property is required. string
Message of the precheck warning.
Id This property is required. string
ID of the precheck warning.
IsAcknowledged This property is required. bool
Boolean value which identifies if the precheck warning has been acknowledged.
Message This property is required. string
Message of the precheck warning.
id This property is required. String
ID of the precheck warning.
isAcknowledged This property is required. Boolean
Boolean value which identifies if the precheck warning has been acknowledged.
message This property is required. String
Message of the precheck warning.
id This property is required. string
ID of the precheck warning.
isAcknowledged This property is required. boolean
Boolean value which identifies if the precheck warning has been acknowledged.
message This property is required. string
Message of the precheck warning.
id This property is required. str
ID of the precheck warning.
is_acknowledged This property is required. bool
Boolean value which identifies if the precheck warning has been acknowledged.
message This property is required. str
Message of the precheck warning.
id This property is required. String
ID of the precheck warning.
isAcknowledged This property is required. Boolean
Boolean value which identifies if the precheck warning has been acknowledged.
message This property is required. String
Message of the precheck warning.

Import

ing

Importing is not supported for this resource.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
nsxt vmware/terraform-provider-nsxt
License
Notes
This Pulumi package is based on the nsxt Terraform Provider.