1. Packages
  2. Nsxt Provider
  3. API Docs
  4. getUpgradePostcheck
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.getUpgradePostcheck

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    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",
    });
    
    import pulumi
    import pulumi_nsxt as nsxt
    
    pc = nsxt.get_upgrade_postcheck(upgrade_run_id=nsxt_upgrade_run["test"]["id"],
        type="EDGE")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      pc:
        fn::invoke:
          function: nsxt:getUpgradePostcheck
          arguments:
            upgradeRunId: ${nsxt_upgrade_run.test.id}
            type: EDGE
    

    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>
    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]
    func GetUpgradePostcheck(ctx *Context, args *GetUpgradePostcheckArgs, opts ...InvokeOption) (*GetUpgradePostcheckResult, error)
    func GetUpgradePostcheckOutput(ctx *Context, args *GetUpgradePostcheckOutputArgs, opts ...InvokeOption) GetUpgradePostcheckResultOutput

    > 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)
    }
    public static CompletableFuture<GetUpgradePostcheckResult> getUpgradePostcheck(GetUpgradePostcheckArgs args, InvokeOptions options)
    public static Output<GetUpgradePostcheckResult> getUpgradePostcheck(GetUpgradePostcheckArgs args, InvokeOptions options)
    
    fn::invoke:
      function: nsxt:index/getUpgradePostcheck:getUpgradePostcheck
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Type string
    Component type of upgrade post-checks. Supported type: EDGE, HOST.
    UpgradeRunId string
    The ID of corresponding nsxt.UpgradeRun resource.
    Delay double
    Id string
    ID of upgrade unit group.
    Interval double
    Timeout double
    Type string
    Component type of upgrade post-checks. Supported type: EDGE, HOST.
    UpgradeRunId string
    The ID of corresponding nsxt.UpgradeRun resource.
    Delay float64
    Id string
    ID of upgrade unit group.
    Interval float64
    Timeout float64
    type String
    Component type of upgrade post-checks. Supported type: EDGE, HOST.
    upgradeRunId String
    The ID of corresponding nsxt.UpgradeRun resource.
    delay Double
    id String
    ID of upgrade unit group.
    interval Double
    timeout Double
    type string
    Component type of upgrade post-checks. Supported type: EDGE, HOST.
    upgradeRunId string
    The ID of corresponding nsxt.UpgradeRun resource.
    delay number
    id string
    ID of upgrade unit group.
    interval number
    timeout number
    type str
    Component type of upgrade post-checks. Supported type: EDGE, HOST.
    upgrade_run_id str
    The ID of corresponding nsxt.UpgradeRun resource.
    delay float
    id str
    ID of upgrade unit group.
    interval float
    timeout float
    type String
    Component type of upgrade post-checks. Supported type: EDGE, HOST.
    upgradeRunId 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 string
    Details about current execution of upgrade post-checks.
    FailureCount double
    Total count of generated failures or warnings in last execution of upgrade post-checks },
    Id string
    ID of upgrade unit group.
    Status string
    Status of execution of upgrade post-checks.
    Details string
    Details about current execution of upgrade post-checks.
    FailureCount float64
    Total count of generated failures or warnings in last execution of upgrade post-checks },
    Id string
    ID of upgrade unit group.
    Status string
    Status of execution of upgrade post-checks.
    details String
    Details about current execution of upgrade post-checks.
    failureCount Double
    Total count of generated failures or warnings in last execution of upgrade post-checks },
    id String
    ID of upgrade unit group.
    status String
    Status of execution of upgrade post-checks.
    details string
    Details about current execution of upgrade post-checks.
    failureCount number
    Total count of generated failures or warnings in last execution of upgrade post-checks },
    id string
    ID of upgrade unit group.
    status string
    Status of execution of upgrade post-checks.
    details str
    Details about current execution of upgrade post-checks.
    failure_count float
    Total count of generated failures or warnings in last execution of upgrade post-checks },
    id str
    ID of upgrade unit group.
    status str
    Status of execution of upgrade post-checks.
    details String
    Details about current execution of upgrade post-checks.
    failureCount Number
    Total count of generated failures or warnings in last execution of upgrade post-checks },
    id String
    ID of upgrade unit group.
    status 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.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware