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.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Storage
Task 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
Storage
Task 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
Managed
Service Identity Args - The managed service identity of the resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Storage
Task 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
Storage
Task 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
Managed
Service Identity - The managed service identity of the resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- storage
Task 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
Storage
Task 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
Managed
Service Identity - The managed service identity of the resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- storage
Task 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
Storage
Task 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
Managed
Service 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- storage
Task 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:
- Creation
Time 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
- Provisioning
State string - Represents the provisioning state of the storage task.
- System
Data Pulumi.Azure Native. Storage Actions. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Task
Version double - Storage task version.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Creation
Time 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
- Provisioning
State string - Represents the provisioning state of the storage task.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Task
Version float64 - Storage task version.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Time 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
- provisioning
State String - Represents the provisioning state of the storage task.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- task
Version Double - Storage task version.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Time 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
- provisioning
State string - Represents the provisioning state of the storage task.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- task
Version 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"
- creation
Time 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
- provisioning
State String - Represents the provisioning state of the storage task.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- task
Version 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
[]Storage
Task Operation - List of operations to execute in the else block
- operations
List<Storage
Task Operation> - List of operations to execute in the else block
- operations
Storage
Task Operation[] - List of operations to execute in the else block
- operations
Sequence[Storage
Task 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
[]Storage
Task Operation Response - List of operations to execute in the else block
- operations
List<Storage
Task Operation Response> - List of operations to execute in the else block
- operations
Storage
Task Operation Response[] - List of operations to execute in the else block
- operations
Sequence[Storage
Task 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
[]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
List<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
Storage
Task 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[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 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
[]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
List<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
Storage
Task 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[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 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).
- User
Assigned 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 | Managed
Service Identity Type - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- User
Assigned []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 | Managed
Service Identity Type - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- user
Assigned 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 | Managed
Service Identity Type - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- user
Assigned 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 | Managed
Service 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" | "System
Assigned" | "User Assigned" | "System Assigned,User Assigned" - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
- user
Assigned 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
- Principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id 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).
- User
Assigned 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.
- Principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id 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).
- User
Assigned 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.
- principal
Id String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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).
- user
Assigned 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.
- principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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).
- user
Assigned {[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.
- principal
Id String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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).
- user
Assigned 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
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- Managed
Service Identity Type None - None
- Managed
Service Identity Type System Assigned - SystemAssigned
- Managed
Service Identity Type User Assigned - UserAssigned
- Managed
Service Identity Type_System Assigned_User Assigned - SystemAssigned,UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- USER_ASSIGNED
- UserAssigned
- SYSTEM_ASSIGNED_USER_ASSIGNED
- SystemAssigned,UserAssigned
- "None"
- None
- "System
Assigned" - SystemAssigned
- "User
Assigned" - UserAssigned
- "System
Assigned,User Assigned" - SystemAssigned,UserAssigned
OnFailure, OnFailureArgs
- @Break
- break
- On
Failure Break - break
- Break_
- break
- Break
- break
- BREAK_
- break
- "break"
- break
OnSuccess, OnSuccessArgs
- @Continue
- continue
- On
Success 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
If
Condition - The if block of storage task operation
- Else
Else
Condition - The else block of storage task operation
- if_
If
Condition - The if block of storage task operation
- else_
Else
Condition - The else block of storage task operation
- if
If
Condition - The if block of storage task operation
- else
Else
Condition - The else block of storage task operation
- if_
If
Condition - The if block of storage task operation
- else_
Else
Condition - 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
If
Condition Response - The if block of storage task operation
- Else
Else
Condition Response - The else block of storage task operation
- if_
If
Condition Response - The if block of storage task operation
- else_
Else
Condition Response - The else block of storage task operation
- if
If
Condition Response - The if block of storage task operation
- else
Else
Condition Response - The else block of storage task operation
- if_
If
Condition Response - The if block of storage task operation
- else_
Else
Condition 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.
- On
Failure Pulumi.Azure Native. Storage Actions. On Failure - Action to be taken when the operation fails for a object.
- On
Success 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 | Storage
Task 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 map[string]string
- Key-value parameters for the operation.
- name
String | Storage
Task 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 Map<String,String>
- Key-value parameters for the operation.
- name
string | Storage
Task 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 {[key: string]: string}
- Key-value parameters for the operation.
- name
str | Storage
Task 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 | "Set
Blob 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.
- on
Failure "break" - Action to be taken when the operation fails for a object.
- on
Success "continue" - Action to be taken when the operation is successful for a object.
- parameters Map<String>
- Key-value parameters for the operation.
StorageTaskOperationName, StorageTaskOperationNameArgs
- 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
- Storage
Task Operation Name Set Blob Tier - SetBlobTier
- Storage
Task Operation Name Set Blob Tags - SetBlobTags
- Storage
Task Operation Name Set Blob Immutability Policy - SetBlobImmutabilityPolicy
- Storage
Task Operation Name Set Blob Legal Hold - SetBlobLegalHold
- Storage
Task Operation Name Set Blob Expiry - SetBlobExpiry
- Storage
Task Operation Name Delete Blob - DeleteBlob
- Storage
Task Operation Name Undelete Blob - 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
- 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
- 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
- "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
StorageTaskOperationResponse, StorageTaskOperationResponseArgs
- Name string
- The operation to be performed on the object.
- On
Failure string - Action to be taken when the operation fails for a object.
- On
Success 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.
- On
Failure string - Action to be taken when the operation fails for a object.
- On
Success 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.
- on
Failure String - Action to be taken when the operation fails for a object.
- on
Success 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.
- on
Failure string - Action to be taken when the operation fails for a object.
- on
Success 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.
- on
Failure String - Action to be taken when the operation fails for a object.
- on
Success String - Action to be taken when the operation is successful for a object.
- parameters Map<String>
- Key-value parameters for the operation.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs
- Client
Id string - The client ID of the assigned identity.
- Principal
Id string - The principal ID of the assigned identity.
- Client
Id string - The client ID of the assigned identity.
- Principal
Id string - The principal ID of the assigned identity.
- client
Id String - The client ID of the assigned identity.
- principal
Id String - The principal ID of the assigned identity.
- client
Id string - The client ID of the assigned identity.
- principal
Id 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.
- client
Id String - The client ID of the assigned identity.
- principal
Id 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