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

nsxt.getUpgradePostcheck

Explore with Pulumi AI

This data source provides information about Upgrade post-check results.

Example Usage

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

const pc = nsxt.getUpgradePostcheck({
    upgradeRunId: nsxt_upgrade_run.test.id,
    type: "EDGE",
});
Copy
import pulumi
import pulumi_nsxt as nsxt

pc = nsxt.get_upgrade_postcheck(upgrade_run_id=nsxt_upgrade_run["test"]["id"],
    type="EDGE")
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.GetUpgradePostcheck(ctx, &nsxt.GetUpgradePostcheckArgs{
			UpgradeRunId: nsxt_upgrade_run.Test.Id,
			Type:         "EDGE",
		}, nil)
		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 pc = Nsxt.GetUpgradePostcheck.Invoke(new()
    {
        UpgradeRunId = nsxt_upgrade_run.Test.Id,
        Type = "EDGE",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nsxt.NsxtFunctions;
import com.pulumi.nsxt.inputs.GetUpgradePostcheckArgs;
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) {
        final var pc = NsxtFunctions.getUpgradePostcheck(GetUpgradePostcheckArgs.builder()
            .upgradeRunId(nsxt_upgrade_run.test().id())
            .type("EDGE")
            .build());

    }
}
Copy
variables:
  pc:
    fn::invoke:
      function: nsxt:getUpgradePostcheck
      arguments:
        upgradeRunId: ${nsxt_upgrade_run.test.id}
        type: EDGE
Copy

Using getUpgradePostcheck

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getUpgradePostcheck(args: GetUpgradePostcheckArgs, opts?: InvokeOptions): Promise<GetUpgradePostcheckResult>
function getUpgradePostcheckOutput(args: GetUpgradePostcheckOutputArgs, opts?: InvokeOptions): Output<GetUpgradePostcheckResult>
Copy
def get_upgrade_postcheck(delay: Optional[float] = None,
                          id: Optional[str] = None,
                          interval: Optional[float] = None,
                          timeout: Optional[float] = None,
                          type: Optional[str] = None,
                          upgrade_run_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetUpgradePostcheckResult
def get_upgrade_postcheck_output(delay: Optional[pulumi.Input[float]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          interval: Optional[pulumi.Input[float]] = None,
                          timeout: Optional[pulumi.Input[float]] = None,
                          type: Optional[pulumi.Input[str]] = None,
                          upgrade_run_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetUpgradePostcheckResult]
Copy
func GetUpgradePostcheck(ctx *Context, args *GetUpgradePostcheckArgs, opts ...InvokeOption) (*GetUpgradePostcheckResult, error)
func GetUpgradePostcheckOutput(ctx *Context, args *GetUpgradePostcheckOutputArgs, opts ...InvokeOption) GetUpgradePostcheckResultOutput
Copy

> Note: This function is named GetUpgradePostcheck in the Go SDK.

public static class GetUpgradePostcheck 
{
    public static Task<GetUpgradePostcheckResult> InvokeAsync(GetUpgradePostcheckArgs args, InvokeOptions? opts = null)
    public static Output<GetUpgradePostcheckResult> Invoke(GetUpgradePostcheckInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUpgradePostcheckResult> getUpgradePostcheck(GetUpgradePostcheckArgs args, InvokeOptions options)
public static Output<GetUpgradePostcheckResult> getUpgradePostcheck(GetUpgradePostcheckArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nsxt:index/getUpgradePostcheck:getUpgradePostcheck
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Type This property is required. string
Component type of upgrade post-checks. Supported type: EDGE, HOST.
UpgradeRunId This property is required. string
The ID of corresponding nsxt.UpgradeRun resource.
Delay double
Id string
ID of upgrade unit group.
Interval double
Timeout double
Type This property is required. string
Component type of upgrade post-checks. Supported type: EDGE, HOST.
UpgradeRunId This property is required. string
The ID of corresponding nsxt.UpgradeRun resource.
Delay float64
Id string
ID of upgrade unit group.
Interval float64
Timeout float64
type This property is required. String
Component type of upgrade post-checks. Supported type: EDGE, HOST.
upgradeRunId This property is required. String
The ID of corresponding nsxt.UpgradeRun resource.
delay Double
id String
ID of upgrade unit group.
interval Double
timeout Double
type This property is required. string
Component type of upgrade post-checks. Supported type: EDGE, HOST.
upgradeRunId This property is required. string
The ID of corresponding nsxt.UpgradeRun resource.
delay number
id string
ID of upgrade unit group.
interval number
timeout number
type This property is required. str
Component type of upgrade post-checks. Supported type: EDGE, HOST.
upgrade_run_id This property is required. str
The ID of corresponding nsxt.UpgradeRun resource.
delay float
id str
ID of upgrade unit group.
interval float
timeout float
type This property is required. String
Component type of upgrade post-checks. Supported type: EDGE, HOST.
upgradeRunId This property is required. String
The ID of corresponding nsxt.UpgradeRun resource.
delay Number
id String
ID of upgrade unit group.
interval Number
timeout Number

getUpgradePostcheck Result

The following output properties are available:

FailedGroups List<GetUpgradePostcheckFailedGroup>
(Computed) The description of the resource.
Id string
ID of upgrade unit group.
Type string
UpgradeRunId string
Delay double
Interval double
Timeout double
FailedGroups []GetUpgradePostcheckFailedGroup
(Computed) The description of the resource.
Id string
ID of upgrade unit group.
Type string
UpgradeRunId string
Delay float64
Interval float64
Timeout float64
failedGroups List<GetUpgradePostcheckFailedGroup>
(Computed) The description of the resource.
id String
ID of upgrade unit group.
type String
upgradeRunId String
delay Double
interval Double
timeout Double
failedGroups GetUpgradePostcheckFailedGroup[]
(Computed) The description of the resource.
id string
ID of upgrade unit group.
type string
upgradeRunId string
delay number
interval number
timeout number
failed_groups Sequence[GetUpgradePostcheckFailedGroup]
(Computed) The description of the resource.
id str
ID of upgrade unit group.
type str
upgrade_run_id str
delay float
interval float
timeout float
failedGroups List<Property Map>
(Computed) The description of the resource.
id String
ID of upgrade unit group.
type String
upgradeRunId String
delay Number
interval Number
timeout Number

Supporting Types

GetUpgradePostcheckFailedGroup

Details This property is required. string
Details about current execution of upgrade post-checks.
FailureCount This property is required. double
Total count of generated failures or warnings in last execution of upgrade post-checks },
Id This property is required. string
ID of upgrade unit group.
Status This property is required. string
Status of execution of upgrade post-checks.
Details This property is required. string
Details about current execution of upgrade post-checks.
FailureCount This property is required. float64
Total count of generated failures or warnings in last execution of upgrade post-checks },
Id This property is required. string
ID of upgrade unit group.
Status This property is required. string
Status of execution of upgrade post-checks.
details This property is required. String
Details about current execution of upgrade post-checks.
failureCount This property is required. Double
Total count of generated failures or warnings in last execution of upgrade post-checks },
id This property is required. String
ID of upgrade unit group.
status This property is required. String
Status of execution of upgrade post-checks.
details This property is required. string
Details about current execution of upgrade post-checks.
failureCount This property is required. number
Total count of generated failures or warnings in last execution of upgrade post-checks },
id This property is required. string
ID of upgrade unit group.
status This property is required. string
Status of execution of upgrade post-checks.
details This property is required. str
Details about current execution of upgrade post-checks.
failure_count This property is required. float
Total count of generated failures or warnings in last execution of upgrade post-checks },
id This property is required. str
ID of upgrade unit group.
status This property is required. str
Status of execution of upgrade post-checks.
details This property is required. String
Details about current execution of upgrade post-checks.
failureCount This property is required. Number
Total count of generated failures or warnings in last execution of upgrade post-checks },
id This property is required. String
ID of upgrade unit group.
status This property is required. String
Status of execution of upgrade post-checks.

Package Details

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