UpdateRunArgs

data class UpdateRunArgs(val clusterName: Output<String>? = null, val description: Output<String>? = null, val duration: Output<String>? = null, val endTimeUtc: Output<String>? = null, val errorMessage: Output<String>? = null, val lastUpdatedTime: Output<String>? = null, val lastUpdatedTimeUtc: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val startTimeUtc: Output<String>? = null, val state: Output<Either<String, UpdateRunPropertiesState>>? = null, val status: Output<String>? = null, val steps: Output<List<StepArgs>>? = null, val timeStarted: Output<String>? = null, val updateName: Output<String>? = null, val updateRunName: Output<String>? = null) : ConvertibleToJava<UpdateRunArgs>

Details of an Update run Uses Azure REST API version 2023-03-01. Other available API versions: 2022-12-15-preview, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01, 2024-09-01-preview, 2024-12-01-preview.

Example Usage

Get Update runs under cluster resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var updateRun = new AzureNative.AzureStackHCI.UpdateRun("updateRun", new()
{
ClusterName = "testcluster",
Description = "Update Azure Stack.",
EndTimeUtc = "2022-04-06T13:58:42.969006+00:00",
ErrorMessage = "",
LastUpdatedTimeUtc = "2022-04-06T13:58:42.969006+00:00",
Name = "Unnamed step",
ResourceGroupName = "testrg",
StartTimeUtc = "2022-04-06T01:36:33.3876751+00:00",
Status = "Success",
Steps = new[]
{
new AzureNative.AzureStackHCI.Inputs.StepArgs
{
Description = "Prepare for SSU update",
EndTimeUtc = "2022-04-06T01:37:16.8728314+00:00",
ErrorMessage = "",
LastUpdatedTimeUtc = "2022-04-06T01:37:16.8728314+00:00",
Name = "PreUpdate Cloud",
StartTimeUtc = "2022-04-06T01:36:33.3876751+00:00",
Status = "Success",
Steps = new() { },
},
},
UpdateName = "Microsoft4.2203.2.32",
UpdateRunName = "23b779ba-0d52-4a80-8571-45ca74664ec3",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewUpdateRun(ctx, "updateRun", &azurestackhci.UpdateRunArgs{
ClusterName: pulumi.String("testcluster"),
Description: pulumi.String("Update Azure Stack."),
EndTimeUtc: pulumi.String("2022-04-06T13:58:42.969006+00:00"),
ErrorMessage: pulumi.String(""),
LastUpdatedTimeUtc: pulumi.String("2022-04-06T13:58:42.969006+00:00"),
Name: pulumi.String("Unnamed step"),
ResourceGroupName: pulumi.String("testrg"),
StartTimeUtc: pulumi.String("2022-04-06T01:36:33.3876751+00:00"),
Status: pulumi.String("Success"),
Steps: azurestackhci.StepArray{
&azurestackhci.StepArgs{
Description: pulumi.String("Prepare for SSU update"),
EndTimeUtc: pulumi.String("2022-04-06T01:37:16.8728314+00:00"),
ErrorMessage: pulumi.String(""),
LastUpdatedTimeUtc: pulumi.String("2022-04-06T01:37:16.8728314+00:00"),
Name: pulumi.String("PreUpdate Cloud"),
StartTimeUtc: pulumi.String("2022-04-06T01:36:33.3876751+00:00"),
Status: pulumi.String("Success"),
Steps: azurestackhci.StepArray{},
},
},
UpdateName: pulumi.String("Microsoft4.2203.2.32"),
UpdateRunName: pulumi.String("23b779ba-0d52-4a80-8571-45ca74664ec3"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurestackhci.UpdateRun;
import com.pulumi.azurenative.azurestackhci.UpdateRunArgs;
import com.pulumi.azurenative.azurestackhci.inputs.StepArgs;
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 updateRun = new UpdateRun("updateRun", UpdateRunArgs.builder()
.clusterName("testcluster")
.description("Update Azure Stack.")
.endTimeUtc("2022-04-06T13:58:42.969006+00:00")
.errorMessage("")
.lastUpdatedTimeUtc("2022-04-06T13:58:42.969006+00:00")
.name("Unnamed step")
.resourceGroupName("testrg")
.startTimeUtc("2022-04-06T01:36:33.3876751+00:00")
.status("Success")
.steps(StepArgs.builder()
.description("Prepare for SSU update")
.endTimeUtc("2022-04-06T01:37:16.8728314+00:00")
.errorMessage("")
.lastUpdatedTimeUtc("2022-04-06T01:37:16.8728314+00:00")
.name("PreUpdate Cloud")
.startTimeUtc("2022-04-06T01:36:33.3876751+00:00")
.status("Success")
.steps()
.build())
.updateName("Microsoft4.2203.2.32")
.updateRunName("23b779ba-0d52-4a80-8571-45ca74664ec3")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:azurestackhci:UpdateRun Microsoft4.2203.2.32/23b779ba-0d52-4a80-8571-45ca74664ec3 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}/updateRuns/{updateRunName}

Constructors

Link copied to clipboard
constructor(clusterName: Output<String>? = null, description: Output<String>? = null, duration: Output<String>? = null, endTimeUtc: Output<String>? = null, errorMessage: Output<String>? = null, lastUpdatedTime: Output<String>? = null, lastUpdatedTimeUtc: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, startTimeUtc: Output<String>? = null, state: Output<Either<String, UpdateRunPropertiesState>>? = null, status: Output<String>? = null, steps: Output<List<StepArgs>>? = null, timeStarted: Output<String>? = null, updateName: Output<String>? = null, updateRunName: Output<String>? = null)

Properties

Link copied to clipboard
val clusterName: Output<String>? = null

The name of the cluster.

Link copied to clipboard
val description: Output<String>? = null

More detailed description of the step.

Link copied to clipboard
val duration: Output<String>? = null

Duration of the update run.

Link copied to clipboard
val endTimeUtc: Output<String>? = null

When the step reached a terminal state.

Link copied to clipboard
val errorMessage: Output<String>? = null

Error message, specified if the step is in a failed state.

Link copied to clipboard
val lastUpdatedTime: Output<String>? = null

Timestamp of the most recently completed step in the update run.

Link copied to clipboard
val lastUpdatedTimeUtc: Output<String>? = null

Completion time of this step or the last completed sub-step.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>? = null

Name of the step.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val startTimeUtc: Output<String>? = null

When the step started, or empty if it has not started executing.

Link copied to clipboard
val state: Output<Either<String, UpdateRunPropertiesState>>? = null

State of the update run.

Link copied to clipboard
val status: Output<String>? = null

Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.

Link copied to clipboard
val steps: Output<List<StepArgs>>? = null

Recursive model for child steps of this step.

Link copied to clipboard
val timeStarted: Output<String>? = null

Timestamp of the update run was started.

Link copied to clipboard
val updateName: Output<String>? = null

The name of the Update

Link copied to clipboard
val updateRunName: Output<String>? = null

The name of the Update Run

Functions

Link copied to clipboard
open override fun toJava(): UpdateRunArgs