azure-native.storageactions.StorageTask
Explore with Pulumi AI
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 (
	storageactions "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={
        "else_": {
            "operations": [{
                "name": azure_native.storageactions.StorageTaskOperationName.DELETE_BLOB,
                "on_failure": azure_native.storageactions.OnFailure.BREAK_,
                "on_success": azure_native.storageactions.OnSuccess.CONTINUE_,
            }],
        },
        "if_": {
            "condition": "[[equals(AccessTier, 'Cool')]]",
            "operations": [{
                "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={
        "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.
Constructor 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={
        "if_": {
            "condition": "string",
            "operations": [{
                "name": "string",
                "on_failure": azure_native.storageactions.OnFailure.BREAK_,
                "on_success": azure_native.storageactions.OnSuccess.CONTINUE_,
                "parameters": {
                    "string": "string",
                },
            }],
        },
        "else_": {
            "operations": [{
                "name": "string",
                "on_failure": azure_native.storageactions.OnFailure.BREAK_,
                "on_success": azure_native.storageactions.OnSuccess.CONTINUE_,
                "parameters": {
                    "string": "string",
                },
            }],
        },
    },
    description="string",
    enabled=False,
    identity={
        "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StorageTask resource accepts the following input properties:
- Action
Pulumi.Azure Native. Storage Actions. Inputs. Storage Task Action 
- 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.Azure Native. Storage Actions. Inputs. Managed Service Identity 
- The managed service identity of the resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- StorageTask stringName 
- 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.
- Dictionary<string, string>
- Resource tags.
- Action
StorageTask Action Args 
- 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
ManagedService Identity Args 
- The managed service identity of the resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- StorageTask stringName 
- 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.
- map[string]string
- Resource tags.
- action
StorageTask Action 
- 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
ManagedService Identity 
- The managed service identity of the resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- storageTask StringName 
- 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.
- Map<String,String>
- Resource tags.
- action
StorageTask Action 
- 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
ManagedService Identity 
- The managed service identity of the resource.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- storageTask stringName 
- 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.
- {[key: string]: string}
- Resource tags.
- action
StorageTask Action Args 
- 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
ManagedService Identity Args 
- The managed service identity of the resource.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- storage_task_ strname 
- 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.
- 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.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- storageTask StringName 
- 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.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageTask resource produces the following output properties:
- CreationTime stringIn Utc 
- 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.Azure Native. Storage Actions. Outputs. System Data Response 
- 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"
- CreationTime stringIn Utc 
- 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 SystemData Response 
- 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"
- creationTime StringIn Utc 
- 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 SystemData Response 
- 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"
- creationTime stringIn Utc 
- 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 SystemData Response 
- 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_ strin_ utc 
- 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 SystemData Response 
- 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"
- creationTime StringIn Utc 
- 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
List<Pulumi.Azure Native. Storage Actions. Inputs. Storage Task Operation> 
- List of operations to execute in the else block
- Operations
[]StorageTask Operation 
- List of operations to execute in the else block
- operations
List<StorageTask Operation> 
- List of operations to execute in the else block
- operations
StorageTask Operation[] 
- List of operations to execute in the else block
- operations
Sequence[StorageTask Operation] 
- 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
List<Pulumi.Azure Native. Storage Actions. Inputs. Storage Task Operation Response> 
- List of operations to execute in the else block
- Operations
[]StorageTask Operation Response 
- List of operations to execute in the else block
- operations
List<StorageTask Operation Response> 
- List of operations to execute in the else block
- operations
StorageTask Operation Response[] 
- List of operations to execute in the else block
- operations
Sequence[StorageTask Operation Response] 
- 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.Azure Native. Storage Actions. Inputs. Storage Task Operation> 
- 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
[]StorageTask Operation 
- 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<StorageTask Operation> 
- 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
StorageTask Operation[] 
- 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[StorageTask Operation] 
- 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.Azure Native. Storage Actions. Inputs. Storage Task Operation Response> 
- 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
[]StorageTask Operation Response 
- 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<StorageTask Operation Response> 
- 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
StorageTask Operation Response[] 
- 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[StorageTask Operation Response] 
- 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.Azure Native. Storage Actions. Managed Service Identity Type 
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- UserAssigned List<string>Identities 
- 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 | ManagedService Identity Type 
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- UserAssigned []stringIdentities 
- 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 | ManagedService Identity Type 
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- userAssigned List<String>Identities 
- 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 | ManagedService Identity Type 
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- userAssigned string[]Identities 
- 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 | ManagedService Identity Type 
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- user_assigned_ Sequence[str]identities 
- 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" | "User Assigned" | "System Assigned,User Assigned" 
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- userAssigned List<String>Identities 
- 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).
- UserAssigned Dictionary<string, Pulumi.Identities Azure Native. Storage Actions. Inputs. User Assigned Identity Response> 
- 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).
- UserAssigned map[string]UserIdentities Assigned Identity Response 
- 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).
- userAssigned Map<String,UserIdentities Assigned Identity Response> 
- 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).
- userAssigned {[key: string]: UserIdentities Assigned Identity Response} 
- 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_ Mapping[str, Useridentities Assigned Identity Response] 
- 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).
- userAssigned Map<Property Map>Identities 
- 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_User Assigned 
- SystemAssigned,UserAssigned
- ManagedService Identity Type None 
- None
- ManagedService Identity Type System Assigned 
- SystemAssigned
- ManagedService Identity Type User Assigned 
- UserAssigned
- ManagedService Identity Type_System Assigned_User Assigned 
- SystemAssigned,UserAssigned
- None
- None
- SystemAssigned 
- SystemAssigned
- UserAssigned 
- UserAssigned
- SystemAssigned_User Assigned 
- SystemAssigned,UserAssigned
- None
- None
- SystemAssigned 
- SystemAssigned
- UserAssigned 
- UserAssigned
- SystemAssigned_User Assigned 
- SystemAssigned,UserAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- USER_ASSIGNED
- UserAssigned
- SYSTEM_ASSIGNED_USER_ASSIGNED
- SystemAssigned,UserAssigned
- "None"
- None
- "SystemAssigned" 
- SystemAssigned
- "UserAssigned" 
- UserAssigned
- "SystemAssigned,User Assigned" 
- SystemAssigned,UserAssigned
OnFailure, OnFailureArgs    
- @Break
- break
- OnFailure Break 
- break
- Break_
- break
- Break
- break
- BREAK_
- break
- "break"
- break
OnSuccess, OnSuccessArgs    
- @Continue
- continue
- OnSuccess Continue 
- continue
- Continue_
- continue
- Continue
- continue
- CONTINUE_
- continue
- "continue"
- continue
StorageTaskAction, StorageTaskActionArgs      
- If
Pulumi.Azure Native. Storage Actions. Inputs. If Condition 
- The if block of storage task operation
- Else
Pulumi.Azure Native. Storage Actions. Inputs. Else Condition 
- 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
Pulumi.Azure Native. Storage Actions. Inputs. If Condition Response 
- The if block of storage task operation
- Else
Pulumi.Azure Native. Storage Actions. Inputs. Else Condition Response 
- The else block of storage task operation
- If
IfCondition Response 
- The if block of storage task operation
- Else
ElseCondition Response 
- The else block of storage task operation
- if_
IfCondition Response 
- The if block of storage task operation
- else_
ElseCondition Response 
- The else block of storage task operation
- if
IfCondition Response 
- The if block of storage task operation
- else
ElseCondition Response 
- The else block of storage task operation
- if_
IfCondition Response 
- The if block of storage task operation
- else_
ElseCondition Response 
- 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.Azure Native. Storage Actions. Storage Task Operation Name 
- The operation to be performed on the object.
- OnFailure Pulumi.Azure Native. Storage Actions. On Failure 
- Action to be taken when the operation fails for a object.
- OnSuccess Pulumi.Azure Native. Storage Actions. On Success 
- Action to be taken when the operation is successful for a object.
- Parameters Dictionary<string, string>
- Key-value parameters for the operation.
- Name
string | StorageTask Operation Name 
- 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 | StorageTask Operation Name 
- 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 | StorageTask Operation Name 
- 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 | StorageTask Operation Name 
- 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 | "SetBlob Tier" | "Set Blob Tags" | "Set Blob Immutability Policy" | "Set Blob Legal Hold" | "Set Blob Expiry" | "Delete Blob" | "Undelete Blob" 
- 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        
- SetBlob Tier 
- SetBlobTier
- SetBlob Tags 
- SetBlobTags
- SetBlob Immutability Policy 
- SetBlobImmutabilityPolicy
- SetBlob Legal Hold 
- SetBlobLegalHold
- SetBlob Expiry 
- SetBlobExpiry
- DeleteBlob 
- DeleteBlob
- UndeleteBlob 
- UndeleteBlob
- StorageTask Operation Name Set Blob Tier 
- SetBlobTier
- StorageTask Operation Name Set Blob Tags 
- SetBlobTags
- StorageTask Operation Name Set Blob Immutability Policy 
- SetBlobImmutabilityPolicy
- StorageTask Operation Name Set Blob Legal Hold 
- SetBlobLegalHold
- StorageTask Operation Name Set Blob Expiry 
- SetBlobExpiry
- StorageTask Operation Name Delete Blob 
- DeleteBlob
- StorageTask Operation Name Undelete Blob 
- UndeleteBlob
- SetBlob Tier 
- SetBlobTier
- SetBlob Tags 
- SetBlobTags
- SetBlob Immutability Policy 
- SetBlobImmutabilityPolicy
- SetBlob Legal Hold 
- SetBlobLegalHold
- SetBlob Expiry 
- SetBlobExpiry
- DeleteBlob 
- DeleteBlob
- UndeleteBlob 
- UndeleteBlob
- SetBlob Tier 
- SetBlobTier
- SetBlob Tags 
- SetBlobTags
- SetBlob Immutability Policy 
- SetBlobImmutabilityPolicy
- SetBlob Legal Hold 
- SetBlobLegalHold
- SetBlob Expiry 
- 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
- "SetBlob Tier" 
- SetBlobTier
- "SetBlob Tags" 
- SetBlobTags
- "SetBlob Immutability Policy" 
- SetBlobImmutabilityPolicy
- "SetBlob Legal Hold" 
- SetBlobLegalHold
- "SetBlob Expiry" 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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