1. Packages
  2. Azure Native
  3. API Docs
  4. storageactions
  5. StorageTask
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.41.0 published on Tuesday, May 14, 2024 by Pulumi

azure-native.storageactions.StorageTask

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.41.0 published on Tuesday, May 14, 2024 by Pulumi

    Represents Storage Task. Azure REST API version: 2023-01-01.

    Example Usage

    PutStorageTask

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var storageTask = new AzureNative.StorageActions.StorageTask("storageTask", new()
        {
            Action = new AzureNative.StorageActions.Inputs.StorageTaskActionArgs
            {
                Else = new AzureNative.StorageActions.Inputs.ElseConditionArgs
                {
                    Operations = new[]
                    {
                        new AzureNative.StorageActions.Inputs.StorageTaskOperationArgs
                        {
                            Name = AzureNative.StorageActions.StorageTaskOperationName.DeleteBlob,
                            OnFailure = AzureNative.StorageActions.OnFailure.@Break,
                            OnSuccess = AzureNative.StorageActions.OnSuccess.@Continue,
                        },
                    },
                },
                If = new AzureNative.StorageActions.Inputs.IfConditionArgs
                {
                    Condition = "[[equals(AccessTier, 'Cool')]]",
                    Operations = new[]
                    {
                        new AzureNative.StorageActions.Inputs.StorageTaskOperationArgs
                        {
                            Name = AzureNative.StorageActions.StorageTaskOperationName.SetBlobTier,
                            OnFailure = AzureNative.StorageActions.OnFailure.@Break,
                            OnSuccess = AzureNative.StorageActions.OnSuccess.@Continue,
                            Parameters = 
                            {
                                { "tier", "Hot" },
                            },
                        },
                    },
                },
            },
            Description = "My Storage task",
            Enabled = true,
            Identity = new AzureNative.StorageActions.Inputs.ManagedServiceIdentityArgs
            {
                Type = AzureNative.StorageActions.ManagedServiceIdentityType.SystemAssigned,
            },
            Location = "westus",
            ResourceGroupName = "res4228",
            StorageTaskName = "mytask1",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/storageactions/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := storageactions.NewStorageTask(ctx, "storageTask", &storageactions.StorageTaskArgs{
    			Action: &storageactions.StorageTaskActionArgs{
    				Else: &storageactions.ElseConditionArgs{
    					Operations: storageactions.StorageTaskOperationArray{
    						&storageactions.StorageTaskOperationArgs{
    							Name:      pulumi.String(storageactions.StorageTaskOperationNameDeleteBlob),
    							OnFailure: storageactions.OnFailureBreak,
    							OnSuccess: storageactions.OnSuccessContinue,
    						},
    					},
    				},
    				If: &storageactions.IfConditionArgs{
    					Condition: pulumi.String("[[equals(AccessTier, 'Cool')]]"),
    					Operations: storageactions.StorageTaskOperationArray{
    						&storageactions.StorageTaskOperationArgs{
    							Name:      pulumi.String(storageactions.StorageTaskOperationNameSetBlobTier),
    							OnFailure: storageactions.OnFailureBreak,
    							OnSuccess: storageactions.OnSuccessContinue,
    							Parameters: pulumi.StringMap{
    								"tier": pulumi.String("Hot"),
    							},
    						},
    					},
    				},
    			},
    			Description: pulumi.String("My Storage task"),
    			Enabled:     pulumi.Bool(true),
    			Identity: &storageactions.ManagedServiceIdentityArgs{
    				Type: pulumi.String(storageactions.ManagedServiceIdentityTypeSystemAssigned),
    			},
    			Location:          pulumi.String("westus"),
    			ResourceGroupName: pulumi.String("res4228"),
    			StorageTaskName:   pulumi.String("mytask1"),
    		})
    		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.storageactions.StorageTask;
    import com.pulumi.azurenative.storageactions.StorageTaskArgs;
    import com.pulumi.azurenative.storageactions.inputs.StorageTaskActionArgs;
    import com.pulumi.azurenative.storageactions.inputs.ElseConditionArgs;
    import com.pulumi.azurenative.storageactions.inputs.IfConditionArgs;
    import com.pulumi.azurenative.storageactions.inputs.ManagedServiceIdentityArgs;
    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 storageTask = new StorageTask("storageTask", StorageTaskArgs.builder()        
                .action(StorageTaskActionArgs.builder()
                    .else_(ElseConditionArgs.builder()
                        .operations(StorageTaskOperationArgs.builder()
                            .name("DeleteBlob")
                            .onFailure("break")
                            .onSuccess("continue")
                            .build())
                        .build())
                    .if_(IfConditionArgs.builder()
                        .condition("[[equals(AccessTier, 'Cool')]]")
                        .operations(StorageTaskOperationArgs.builder()
                            .name("SetBlobTier")
                            .onFailure("break")
                            .onSuccess("continue")
                            .parameters(Map.of("tier", "Hot"))
                            .build())
                        .build())
                    .build())
                .description("My Storage task")
                .enabled(true)
                .identity(ManagedServiceIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .location("westus")
                .resourceGroupName("res4228")
                .storageTaskName("mytask1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    storage_task = azure_native.storageactions.StorageTask("storageTask",
        action=azure_native.storageactions.StorageTaskActionArgs(
            else_=azure_native.storageactions.ElseConditionArgs(
                operations=[azure_native.storageactions.StorageTaskOperationArgs(
                    name=azure_native.storageactions.StorageTaskOperationName.DELETE_BLOB,
                    on_failure=azure_native.storageactions.OnFailure.BREAK_,
                    on_success=azure_native.storageactions.OnSuccess.CONTINUE_,
                )],
            ),
            if_=azure_native.storageactions.IfConditionArgs(
                condition="[[equals(AccessTier, 'Cool')]]",
                operations=[azure_native.storageactions.StorageTaskOperationArgs(
                    name=azure_native.storageactions.StorageTaskOperationName.SET_BLOB_TIER,
                    on_failure=azure_native.storageactions.OnFailure.BREAK_,
                    on_success=azure_native.storageactions.OnSuccess.CONTINUE_,
                    parameters={
                        "tier": "Hot",
                    },
                )],
            ),
        ),
        description="My Storage task",
        enabled=True,
        identity=azure_native.storageactions.ManagedServiceIdentityArgs(
            type=azure_native.storageactions.ManagedServiceIdentityType.SYSTEM_ASSIGNED,
        ),
        location="westus",
        resource_group_name="res4228",
        storage_task_name="mytask1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const storageTask = new azure_native.storageactions.StorageTask("storageTask", {
        action: {
            "else": {
                operations: [{
                    name: azure_native.storageactions.StorageTaskOperationName.DeleteBlob,
                    onFailure: azure_native.storageactions.OnFailure.Break,
                    onSuccess: azure_native.storageactions.OnSuccess.Continue,
                }],
            },
            "if": {
                condition: "[[equals(AccessTier, 'Cool')]]",
                operations: [{
                    name: azure_native.storageactions.StorageTaskOperationName.SetBlobTier,
                    onFailure: azure_native.storageactions.OnFailure.Break,
                    onSuccess: azure_native.storageactions.OnSuccess.Continue,
                    parameters: {
                        tier: "Hot",
                    },
                }],
            },
        },
        description: "My Storage task",
        enabled: true,
        identity: {
            type: azure_native.storageactions.ManagedServiceIdentityType.SystemAssigned,
        },
        location: "westus",
        resourceGroupName: "res4228",
        storageTaskName: "mytask1",
    });
    
    resources:
      storageTask:
        type: azure-native:storageactions:StorageTask
        properties:
          action:
            else:
              operations:
                - name: DeleteBlob
                  onFailure: break
                  onSuccess: continue
            if:
              condition: '[[equals(AccessTier, ''Cool'')]]'
              operations:
                - name: SetBlobTier
                  onFailure: break
                  onSuccess: continue
                  parameters:
                    tier: Hot
          description: My Storage task
          enabled: true
          identity:
            type: SystemAssigned
          location: westus
          resourceGroupName: res4228
          storageTaskName: mytask1
    

    Create StorageTask Resource

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

    Constructor syntax

    new StorageTask(name: string, args: StorageTaskArgs, opts?: CustomResourceOptions);
    @overload
    def StorageTask(resource_name: str,
                    args: StorageTaskArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def StorageTask(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    action: Optional[StorageTaskActionArgs] = None,
                    description: Optional[str] = None,
                    enabled: Optional[bool] = None,
                    identity: Optional[ManagedServiceIdentityArgs] = None,
                    resource_group_name: Optional[str] = None,
                    location: Optional[str] = None,
                    storage_task_name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None)
    func NewStorageTask(ctx *Context, name string, args StorageTaskArgs, opts ...ResourceOption) (*StorageTask, error)
    public StorageTask(string name, StorageTaskArgs args, CustomResourceOptions? opts = null)
    public StorageTask(String name, StorageTaskArgs args)
    public StorageTask(String name, StorageTaskArgs args, CustomResourceOptions options)
    
    type: azure-native:storageactions:StorageTask
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StorageTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StorageTaskArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StorageTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StorageTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StorageTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var storageTaskResource = new AzureNative.StorageActions.StorageTask("storageTaskResource", new()
    {
        Action = new AzureNative.StorageActions.Inputs.StorageTaskActionArgs
        {
            If = new AzureNative.StorageActions.Inputs.IfConditionArgs
            {
                Condition = "string",
                Operations = new[]
                {
                    new AzureNative.StorageActions.Inputs.StorageTaskOperationArgs
                    {
                        Name = "string",
                        OnFailure = AzureNative.StorageActions.OnFailure.@Break,
                        OnSuccess = AzureNative.StorageActions.OnSuccess.@Continue,
                        Parameters = 
                        {
                            { "string", "string" },
                        },
                    },
                },
            },
            Else = new AzureNative.StorageActions.Inputs.ElseConditionArgs
            {
                Operations = new[]
                {
                    new AzureNative.StorageActions.Inputs.StorageTaskOperationArgs
                    {
                        Name = "string",
                        OnFailure = AzureNative.StorageActions.OnFailure.@Break,
                        OnSuccess = AzureNative.StorageActions.OnSuccess.@Continue,
                        Parameters = 
                        {
                            { "string", "string" },
                        },
                    },
                },
            },
        },
        Description = "string",
        Enabled = false,
        Identity = new AzureNative.StorageActions.Inputs.ManagedServiceIdentityArgs
        {
            Type = "string",
            UserAssignedIdentities = new[]
            {
                "string",
            },
        },
        ResourceGroupName = "string",
        Location = "string",
        StorageTaskName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := storageactions.NewStorageTask(ctx, "storageTaskResource", &storageactions.StorageTaskArgs{
    Action: &storageactions.StorageTaskActionArgs{
    If: &storageactions.IfConditionArgs{
    Condition: pulumi.String("string"),
    Operations: storageactions.StorageTaskOperationArray{
    &storageactions.StorageTaskOperationArgs{
    Name: pulumi.String("string"),
    OnFailure: storageactions.OnFailureBreak,
    OnSuccess: storageactions.OnSuccessContinue,
    Parameters: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    },
    },
    },
    Else: &storageactions.ElseConditionArgs{
    Operations: storageactions.StorageTaskOperationArray{
    &storageactions.StorageTaskOperationArgs{
    Name: pulumi.String("string"),
    OnFailure: storageactions.OnFailureBreak,
    OnSuccess: storageactions.OnSuccessContinue,
    Parameters: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    },
    },
    },
    },
    Description: pulumi.String("string"),
    Enabled: pulumi.Bool(false),
    Identity: &storageactions.ManagedServiceIdentityArgs{
    Type: pulumi.String("string"),
    UserAssignedIdentities: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    ResourceGroupName: pulumi.String("string"),
    Location: pulumi.String("string"),
    StorageTaskName: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var storageTaskResource = new StorageTask("storageTaskResource", StorageTaskArgs.builder()        
        .action(StorageTaskActionArgs.builder()
            .if_(IfConditionArgs.builder()
                .condition("string")
                .operations(StorageTaskOperationArgs.builder()
                    .name("string")
                    .onFailure("break")
                    .onSuccess("continue")
                    .parameters(Map.of("string", "string"))
                    .build())
                .build())
            .else_(ElseConditionArgs.builder()
                .operations(StorageTaskOperationArgs.builder()
                    .name("string")
                    .onFailure("break")
                    .onSuccess("continue")
                    .parameters(Map.of("string", "string"))
                    .build())
                .build())
            .build())
        .description("string")
        .enabled(false)
        .identity(ManagedServiceIdentityArgs.builder()
            .type("string")
            .userAssignedIdentities("string")
            .build())
        .resourceGroupName("string")
        .location("string")
        .storageTaskName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    storage_task_resource = azure_native.storageactions.StorageTask("storageTaskResource",
        action=azure_native.storageactions.StorageTaskActionArgs(
            if_=azure_native.storageactions.IfConditionArgs(
                condition="string",
                operations=[azure_native.storageactions.StorageTaskOperationArgs(
                    name="string",
                    on_failure=azure_native.storageactions.OnFailure.BREAK_,
                    on_success=azure_native.storageactions.OnSuccess.CONTINUE_,
                    parameters={
                        "string": "string",
                    },
                )],
            ),
            else_=azure_native.storageactions.ElseConditionArgs(
                operations=[azure_native.storageactions.StorageTaskOperationArgs(
                    name="string",
                    on_failure=azure_native.storageactions.OnFailure.BREAK_,
                    on_success=azure_native.storageactions.OnSuccess.CONTINUE_,
                    parameters={
                        "string": "string",
                    },
                )],
            ),
        ),
        description="string",
        enabled=False,
        identity=azure_native.storageactions.ManagedServiceIdentityArgs(
            type="string",
            user_assigned_identities=["string"],
        ),
        resource_group_name="string",
        location="string",
        storage_task_name="string",
        tags={
            "string": "string",
        })
    
    const storageTaskResource = new azure_native.storageactions.StorageTask("storageTaskResource", {
        action: {
            "if": {
                condition: "string",
                operations: [{
                    name: "string",
                    onFailure: azure_native.storageactions.OnFailure.Break,
                    onSuccess: azure_native.storageactions.OnSuccess.Continue,
                    parameters: {
                        string: "string",
                    },
                }],
            },
            "else": {
                operations: [{
                    name: "string",
                    onFailure: azure_native.storageactions.OnFailure.Break,
                    onSuccess: azure_native.storageactions.OnSuccess.Continue,
                    parameters: {
                        string: "string",
                    },
                }],
            },
        },
        description: "string",
        enabled: false,
        identity: {
            type: "string",
            userAssignedIdentities: ["string"],
        },
        resourceGroupName: "string",
        location: "string",
        storageTaskName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:storageactions:StorageTask
    properties:
        action:
            else:
                operations:
                    - name: string
                      onFailure: break
                      onSuccess: continue
                      parameters:
                        string: string
            if:
                condition: string
                operations:
                    - name: string
                      onFailure: break
                      onSuccess: continue
                      parameters:
                        string: string
        description: string
        enabled: false
        identity:
            type: string
            userAssignedIdentities:
                - string
        location: string
        resourceGroupName: string
        storageTaskName: string
        tags:
            string: string
    

    StorageTask Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The StorageTask resource accepts the following input properties:

    Action Pulumi.AzureNative.StorageActions.Inputs.StorageTaskAction
    The storage task action that is executed
    Description string
    Text that describes the purpose of the storage task
    Enabled bool
    Storage Task is enabled when set to true and disabled when set to false
    Identity Pulumi.AzureNative.StorageActions.Inputs.ManagedServiceIdentity
    The managed service identity of the resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    The geo-location where the resource lives
    StorageTaskName string
    The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
    Tags Dictionary<string, string>
    Resource tags.
    Action StorageTaskActionArgs
    The storage task action that is executed
    Description string
    Text that describes the purpose of the storage task
    Enabled bool
    Storage Task is enabled when set to true and disabled when set to false
    Identity ManagedServiceIdentityArgs
    The managed service identity of the resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    The geo-location where the resource lives
    StorageTaskName string
    The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
    Tags map[string]string
    Resource tags.
    action StorageTaskAction
    The storage task action that is executed
    description String
    Text that describes the purpose of the storage task
    enabled Boolean
    Storage Task is enabled when set to true and disabled when set to false
    identity ManagedServiceIdentity
    The managed service identity of the resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    The geo-location where the resource lives
    storageTaskName String
    The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
    tags Map<String,String>
    Resource tags.
    action StorageTaskAction
    The storage task action that is executed
    description string
    Text that describes the purpose of the storage task
    enabled boolean
    Storage Task is enabled when set to true and disabled when set to false
    identity ManagedServiceIdentity
    The managed service identity of the resource.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    location string
    The geo-location where the resource lives
    storageTaskName string
    The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
    tags {[key: string]: string}
    Resource tags.
    action StorageTaskActionArgs
    The storage task action that is executed
    description str
    Text that describes the purpose of the storage task
    enabled bool
    Storage Task is enabled when set to true and disabled when set to false
    identity ManagedServiceIdentityArgs
    The managed service identity of the resource.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    location str
    The geo-location where the resource lives
    storage_task_name str
    The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
    tags Mapping[str, str]
    Resource tags.
    action Property Map
    The storage task action that is executed
    description String
    Text that describes the purpose of the storage task
    enabled Boolean
    Storage Task is enabled when set to true and disabled when set to false
    identity Property Map
    The managed service identity of the resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    The geo-location where the resource lives
    storageTaskName String
    The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
    tags Map<String>
    Resource tags.

    Outputs

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

    CreationTimeInUtc string
    The creation date and time of the storage task in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Represents the provisioning state of the storage task.
    SystemData Pulumi.AzureNative.StorageActions.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    TaskVersion double
    Storage task version.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    CreationTimeInUtc string
    The creation date and time of the storage task in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Represents the provisioning state of the storage task.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    TaskVersion float64
    Storage task version.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    creationTimeInUtc String
    The creation date and time of the storage task in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Represents the provisioning state of the storage task.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    taskVersion Double
    Storage task version.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    creationTimeInUtc string
    The creation date and time of the storage task in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    Represents the provisioning state of the storage task.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    taskVersion number
    Storage task version.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    creation_time_in_utc str
    The creation date and time of the storage task in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    Represents the provisioning state of the storage task.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    task_version float
    Storage task version.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    creationTimeInUtc String
    The creation date and time of the storage task in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Represents the provisioning state of the storage task.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    taskVersion Number
    Storage task version.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ElseCondition, ElseConditionArgs

    Operations []StorageTaskOperation
    List of operations to execute in the else block
    operations List<StorageTaskOperation>
    List of operations to execute in the else block
    operations StorageTaskOperation[]
    List of operations to execute in the else block
    operations Sequence[StorageTaskOperation]
    List of operations to execute in the else block
    operations List<Property Map>
    List of operations to execute in the else block

    ElseConditionResponse, ElseConditionResponseArgs

    Operations []StorageTaskOperationResponse
    List of operations to execute in the else block
    operations List<StorageTaskOperationResponse>
    List of operations to execute in the else block
    operations StorageTaskOperationResponse[]
    List of operations to execute in the else block
    operations Sequence[StorageTaskOperationResponse]
    List of operations to execute in the else block
    operations List<Property Map>
    List of operations to execute in the else block

    IfCondition, IfConditionArgs

    Condition string
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    Operations List<Pulumi.AzureNative.StorageActions.Inputs.StorageTaskOperation>
    List of operations to execute when the condition predicate satisfies.
    Condition string
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    Operations []StorageTaskOperation
    List of operations to execute when the condition predicate satisfies.
    condition String
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations List<StorageTaskOperation>
    List of operations to execute when the condition predicate satisfies.
    condition string
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations StorageTaskOperation[]
    List of operations to execute when the condition predicate satisfies.
    condition str
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations Sequence[StorageTaskOperation]
    List of operations to execute when the condition predicate satisfies.
    condition String
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations List<Property Map>
    List of operations to execute when the condition predicate satisfies.

    IfConditionResponse, IfConditionResponseArgs

    Condition string
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    Operations List<Pulumi.AzureNative.StorageActions.Inputs.StorageTaskOperationResponse>
    List of operations to execute when the condition predicate satisfies.
    Condition string
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    Operations []StorageTaskOperationResponse
    List of operations to execute when the condition predicate satisfies.
    condition String
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations List<StorageTaskOperationResponse>
    List of operations to execute when the condition predicate satisfies.
    condition string
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations StorageTaskOperationResponse[]
    List of operations to execute when the condition predicate satisfies.
    condition str
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations Sequence[StorageTaskOperationResponse]
    List of operations to execute when the condition predicate satisfies.
    condition String
    Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators.
    operations List<Property Map>
    List of operations to execute when the condition predicate satisfies.

    ManagedServiceIdentity, ManagedServiceIdentityArgs

    Type string | Pulumi.AzureNative.StorageActions.ManagedServiceIdentityType
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    UserAssignedIdentities List<string>
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    Type string | ManagedServiceIdentityType
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    UserAssignedIdentities []string
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    type String | ManagedServiceIdentityType
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    userAssignedIdentities List<String>
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    type string | ManagedServiceIdentityType
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    userAssignedIdentities string[]
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    type str | ManagedServiceIdentityType
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    user_assigned_identities Sequence[str]
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    type String | "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned,UserAssigned"
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    userAssignedIdentities List<String>
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

    ManagedServiceIdentityResponse, ManagedServiceIdentityResponseArgs

    PrincipalId string
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    TenantId string
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    Type string
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.StorageActions.Inputs.UserAssignedIdentityResponse>
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    PrincipalId string
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    TenantId string
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    Type string
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    UserAssignedIdentities map[string]UserAssignedIdentityResponse
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    principalId String
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenantId String
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type String
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    userAssignedIdentities Map<String,UserAssignedIdentityResponse>
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    principalId string
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenantId string
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type string
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    userAssignedIdentities {[key: string]: UserAssignedIdentityResponse}
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    principal_id str
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenant_id str
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type str
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    user_assigned_identities Mapping[str, UserAssignedIdentityResponse]
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
    principalId String
    The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    tenantId String
    The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    type String
    Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    userAssignedIdentities Map<Property Map>
    The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

    ManagedServiceIdentityType, ManagedServiceIdentityTypeArgs

    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    ManagedServiceIdentityTypeNone
    None
    ManagedServiceIdentityTypeSystemAssigned
    SystemAssigned
    ManagedServiceIdentityTypeUserAssigned
    UserAssigned
    ManagedServiceIdentityType_SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    NONE
    None
    SYSTEM_ASSIGNED
    SystemAssigned
    USER_ASSIGNED
    UserAssigned
    SYSTEM_ASSIGNED_USER_ASSIGNED
    SystemAssigned,UserAssigned
    "None"
    None
    "SystemAssigned"
    SystemAssigned
    "UserAssigned"
    UserAssigned
    "SystemAssigned,UserAssigned"
    SystemAssigned,UserAssigned

    OnFailure, OnFailureArgs

    @Break
    break
    OnFailureBreak
    break
    Break_
    break
    Break
    break
    BREAK_
    break
    "break"
    break

    OnSuccess, OnSuccessArgs

    @Continue
    continue
    OnSuccessContinue
    continue
    Continue_
    continue
    Continue
    continue
    CONTINUE_
    continue
    "continue"
    continue

    StorageTaskAction, StorageTaskActionArgs

    If Pulumi.AzureNative.StorageActions.Inputs.IfCondition
    The if block of storage task operation
    Else Pulumi.AzureNative.StorageActions.Inputs.ElseCondition
    The else block of storage task operation
    If IfCondition
    The if block of storage task operation
    Else ElseCondition
    The else block of storage task operation
    if_ IfCondition
    The if block of storage task operation
    else_ ElseCondition
    The else block of storage task operation
    if IfCondition
    The if block of storage task operation
    else ElseCondition
    The else block of storage task operation
    if_ IfCondition
    The if block of storage task operation
    else_ ElseCondition
    The else block of storage task operation
    if Property Map
    The if block of storage task operation
    else Property Map
    The else block of storage task operation

    StorageTaskActionResponse, StorageTaskActionResponseArgs

    If IfConditionResponse
    The if block of storage task operation
    Else ElseConditionResponse
    The else block of storage task operation
    if_ IfConditionResponse
    The if block of storage task operation
    else_ ElseConditionResponse
    The else block of storage task operation
    if IfConditionResponse
    The if block of storage task operation
    else ElseConditionResponse
    The else block of storage task operation
    if_ IfConditionResponse
    The if block of storage task operation
    else_ ElseConditionResponse
    The else block of storage task operation
    if Property Map
    The if block of storage task operation
    else Property Map
    The else block of storage task operation

    StorageTaskOperation, StorageTaskOperationArgs

    Name string | Pulumi.AzureNative.StorageActions.StorageTaskOperationName
    The operation to be performed on the object.
    OnFailure Pulumi.AzureNative.StorageActions.OnFailure
    Action to be taken when the operation fails for a object.
    OnSuccess Pulumi.AzureNative.StorageActions.OnSuccess
    Action to be taken when the operation is successful for a object.
    Parameters Dictionary<string, string>
    Key-value parameters for the operation.
    Name string | StorageTaskOperationName
    The operation to be performed on the object.
    OnFailure OnFailure
    Action to be taken when the operation fails for a object.
    OnSuccess OnSuccess
    Action to be taken when the operation is successful for a object.
    Parameters map[string]string
    Key-value parameters for the operation.
    name String | StorageTaskOperationName
    The operation to be performed on the object.
    onFailure OnFailure
    Action to be taken when the operation fails for a object.
    onSuccess OnSuccess
    Action to be taken when the operation is successful for a object.
    parameters Map<String,String>
    Key-value parameters for the operation.
    name string | StorageTaskOperationName
    The operation to be performed on the object.
    onFailure OnFailure
    Action to be taken when the operation fails for a object.
    onSuccess OnSuccess
    Action to be taken when the operation is successful for a object.
    parameters {[key: string]: string}
    Key-value parameters for the operation.
    name str | StorageTaskOperationName
    The operation to be performed on the object.
    on_failure OnFailure
    Action to be taken when the operation fails for a object.
    on_success OnSuccess
    Action to be taken when the operation is successful for a object.
    parameters Mapping[str, str]
    Key-value parameters for the operation.
    name String | "SetBlobTier" | "SetBlobTags" | "SetBlobImmutabilityPolicy" | "SetBlobLegalHold" | "SetBlobExpiry" | "DeleteBlob" | "UndeleteBlob"
    The operation to be performed on the object.
    onFailure "break"
    Action to be taken when the operation fails for a object.
    onSuccess "continue"
    Action to be taken when the operation is successful for a object.
    parameters Map<String>
    Key-value parameters for the operation.

    StorageTaskOperationName, StorageTaskOperationNameArgs

    SetBlobTier
    SetBlobTier
    SetBlobTags
    SetBlobTags
    SetBlobImmutabilityPolicy
    SetBlobImmutabilityPolicy
    SetBlobLegalHold
    SetBlobLegalHold
    SetBlobExpiry
    SetBlobExpiry
    DeleteBlob
    DeleteBlob
    UndeleteBlob
    UndeleteBlob
    StorageTaskOperationNameSetBlobTier
    SetBlobTier
    StorageTaskOperationNameSetBlobTags
    SetBlobTags
    StorageTaskOperationNameSetBlobImmutabilityPolicy
    SetBlobImmutabilityPolicy
    StorageTaskOperationNameSetBlobLegalHold
    SetBlobLegalHold
    StorageTaskOperationNameSetBlobExpiry
    SetBlobExpiry
    StorageTaskOperationNameDeleteBlob
    DeleteBlob
    StorageTaskOperationNameUndeleteBlob
    UndeleteBlob
    SetBlobTier
    SetBlobTier
    SetBlobTags
    SetBlobTags
    SetBlobImmutabilityPolicy
    SetBlobImmutabilityPolicy
    SetBlobLegalHold
    SetBlobLegalHold
    SetBlobExpiry
    SetBlobExpiry
    DeleteBlob
    DeleteBlob
    UndeleteBlob
    UndeleteBlob
    SetBlobTier
    SetBlobTier
    SetBlobTags
    SetBlobTags
    SetBlobImmutabilityPolicy
    SetBlobImmutabilityPolicy
    SetBlobLegalHold
    SetBlobLegalHold
    SetBlobExpiry
    SetBlobExpiry
    DeleteBlob
    DeleteBlob
    UndeleteBlob
    UndeleteBlob
    SET_BLOB_TIER
    SetBlobTier
    SET_BLOB_TAGS
    SetBlobTags
    SET_BLOB_IMMUTABILITY_POLICY
    SetBlobImmutabilityPolicy
    SET_BLOB_LEGAL_HOLD
    SetBlobLegalHold
    SET_BLOB_EXPIRY
    SetBlobExpiry
    DELETE_BLOB
    DeleteBlob
    UNDELETE_BLOB
    UndeleteBlob
    "SetBlobTier"
    SetBlobTier
    "SetBlobTags"
    SetBlobTags
    "SetBlobImmutabilityPolicy"
    SetBlobImmutabilityPolicy
    "SetBlobLegalHold"
    SetBlobLegalHold
    "SetBlobExpiry"
    SetBlobExpiry
    "DeleteBlob"
    DeleteBlob
    "UndeleteBlob"
    UndeleteBlob

    StorageTaskOperationResponse, StorageTaskOperationResponseArgs

    Name string
    The operation to be performed on the object.
    OnFailure string
    Action to be taken when the operation fails for a object.
    OnSuccess string
    Action to be taken when the operation is successful for a object.
    Parameters Dictionary<string, string>
    Key-value parameters for the operation.
    Name string
    The operation to be performed on the object.
    OnFailure string
    Action to be taken when the operation fails for a object.
    OnSuccess string
    Action to be taken when the operation is successful for a object.
    Parameters map[string]string
    Key-value parameters for the operation.
    name String
    The operation to be performed on the object.
    onFailure String
    Action to be taken when the operation fails for a object.
    onSuccess String
    Action to be taken when the operation is successful for a object.
    parameters Map<String,String>
    Key-value parameters for the operation.
    name string
    The operation to be performed on the object.
    onFailure string
    Action to be taken when the operation fails for a object.
    onSuccess string
    Action to be taken when the operation is successful for a object.
    parameters {[key: string]: string}
    Key-value parameters for the operation.
    name str
    The operation to be performed on the object.
    on_failure str
    Action to be taken when the operation fails for a object.
    on_success str
    Action to be taken when the operation is successful for a object.
    parameters Mapping[str, str]
    Key-value parameters for the operation.
    name String
    The operation to be performed on the object.
    onFailure String
    Action to be taken when the operation fails for a object.
    onSuccess String
    Action to be taken when the operation is successful for a object.
    parameters Map<String>
    Key-value parameters for the operation.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs

    ClientId string
    The client ID of the assigned identity.
    PrincipalId string
    The principal ID of the assigned identity.
    ClientId string
    The client ID of the assigned identity.
    PrincipalId string
    The principal ID of the assigned identity.
    clientId String
    The client ID of the assigned identity.
    principalId String
    The principal ID of the assigned identity.
    clientId string
    The client ID of the assigned identity.
    principalId string
    The principal ID of the assigned identity.
    client_id str
    The client ID of the assigned identity.
    principal_id str
    The principal ID of the assigned identity.
    clientId String
    The client ID of the assigned identity.
    principalId String
    The principal ID of the assigned identity.

    Import

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

    $ pulumi import azure-native:storageactions:StorageTask mytask1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.41.0 published on Tuesday, May 14, 2024 by Pulumi