Update Run Args
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 Azure REST API version: 2023-03-01. Other available API versions: 2022-12-15-preview, 2023-06-01, 2023-08-01.
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",
});
});
Content copied to clipboard
package main
import (
"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.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
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("description", "Prepare for SSU update"),
Map.entry("endTimeUtc", "2022-04-06T01:37:16.8728314+00:00"),
Map.entry("errorMessage", ""),
Map.entry("lastUpdatedTimeUtc", "2022-04-06T01:37:16.8728314+00:00"),
Map.entry("name", "PreUpdate Cloud"),
Map.entry("startTimeUtc", "2022-04-06T01:36:33.3876751+00:00"),
Map.entry("status", "Success"),
Map.entry("steps", )
))
.updateName("Microsoft4.2203.2.32")
.updateRunName("23b779ba-0d52-4a80-8571-45ca74664ec3")
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
fun UpdateRunArgs(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)