Description | : Asynchronously creates a new storage task resource with the specified parameters. If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "StorageTasks_Create", "$parameters": { "parameters": { "$properties": { "properties": [ { "#name": "provisioningState", "Enum": { "new": [ [ "ValidateSubscriptionQuotaBegin", "" ], [ "ValidateSubscriptionQuotaEnd", "" ], [ "Accepted", "" ], [ "Creating", "" ], [ "Succeeded", "" ], [ "Deleting", "" ], [ "Canceled", "" ], [ "Failed", "" ] ], "old": [ [ "ValidateSubscriptionQuotaBegin", "" ], [ "ValidateSubscriptionQuotaEnd", "" ], [ "Creating", "" ], [ "Succeeded", "" ], [ "Deleting", "" ], [ "Canceled", "" ], [ "Failed", "" ] ] } } ] } } }, "$responses": { "200": { "$properties": { "properties": [ { "#name": "provisioningState", "Enum": { "new": [ [ "ValidateSubscriptionQuotaBegin", "" ], [ "ValidateSubscriptionQuotaEnd", "" ], [ "Accepted", "" ], [ "Creating", "" ], [ "Succeeded", "" ], [ "Deleting", "" ], [ "Canceled", "" ], [ "Failed", "" ] ], "old": [ [ "ValidateSubscriptionQuotaBegin", "" ], [ "ValidateSubscriptionQuotaEnd", "" ], [ "Creating", "" ], [ "Succeeded", "" ], [ "Deleting", "" ], [ "Canceled", "" ], [ "Failed", "" ] ] } } ] } }, "201": { "$properties": { "properties": [ { "#name": "provisioningState", "Enum": { "new": [ [ "ValidateSubscriptionQuotaBegin", "" ], [ "ValidateSubscriptionQuotaEnd", "" ], [ "Accepted", "" ], [ "Creating", "" ], [ "Succeeded", "" ], [ "Deleting", "" ], [ "Canceled", "" ], [ "Failed", "" ] ], "old": [ [ "ValidateSubscriptionQuotaBegin", "" ], [ "ValidateSubscriptionQuotaEnd", "" ], [ "Creating", "" ], [ "Succeeded", "" ], [ "Deleting", "" ], [ "Canceled", "" ], [ "Failed", "" ] ] } } ] } } } }
⚼ Request
PUT:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}
{
resourceGroupName:
string
,
storageTaskName:
string
,
parameters:
{
,
identity:
{
,
principalId:
string
,
tenantId:
string
,
type:
enum
,
userAssignedIdentities:
object
,
}
properties:
}
{
,
taskVersion:
integer
,
enabled:
boolean
,
description:
string
,
action:
{
,
if:
{
,
condition:
string
,
operations:
}
[
]
,
{
,
name:
enum
,
parameters:
object
,
onSuccess:
enum
,
onFailure:
enum
,
}
else:
}
{
,
operations:
}
[
]
,
{
,
name:
enum
,
parameters:
object
,
onSuccess:
enum
,
onFailure:
enum
,
}
provisioningState:
enum
,
creationTimeInUtc:
string
,
}
api-version:
string
,
subscriptionId:
string
,
}
⚐ Response (200)
{
identity:
{
,
principalId:
string
,
tenantId:
string
,
type:
enum
,
userAssignedIdentities:
object
,
}
properties:
}
{
,
taskVersion:
integer
,
enabled:
boolean
,
description:
string
,
action:
{
,
if:
{
,
condition:
string
,
operations:
}
[
]
,
{
,
name:
enum
,
parameters:
object
,
onSuccess:
enum
,
onFailure:
enum
,
}
else:
}
{
,
operations:
}
[
]
,
{
,
name:
enum
,
parameters:
object
,
onSuccess:
enum
,
onFailure:
enum
,
}
provisioningState:
enum
,
creationTimeInUtc:
string
,
}
⚐ Response (201)
{
identity:
{
,
principalId:
string
,
tenantId:
string
,
type:
enum
,
userAssignedIdentities:
object
,
}
properties:
}
{
,
taskVersion:
integer
,
enabled:
boolean
,
description:
string
,
action:
{
,
if:
{
,
condition:
string
,
operations:
}
[
]
,
{
,
name:
enum
,
parameters:
object
,
onSuccess:
enum
,
onFailure:
enum
,
}
else:
}
{
,
operations:
}
[
]
,
{
,
name:
enum
,
parameters:
object
,
onSuccess:
enum
,
onFailure:
enum
,
}
provisioningState:
enum
,
creationTimeInUtc:
string
,
}
⚐ Response (202)
{
location:
string
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}