| Description | : Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment 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": "StorageTaskAssignments_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.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}
{
subscriptionId:
string
,
resourceGroupName:
string
,
accountName:
string
,
storageTaskAssignmentName:
string
,
parameters:
{
,
properties:
}
{
,
taskId:
string
,
enabled:
boolean
,
description:
string
,
executionContext:
{
,
target:
{
,
prefix:
[
,
string
,
]
excludePrefix:
}
[
,
string
,
]
trigger:
}
{
,
type:
enum
,
parameters:
}
{
,
startFrom:
string
,
interval:
integer
,
intervalUnit:
enum
,
endBy:
string
,
startOn:
string
,
}
report:
{
,
prefix:
string
,
}
provisioningState:
enum
,
runStatus:
}
{
,
taskAssignmentId:
string
,
storageAccountId:
string
,
startTime:
string
,
finishTime:
string
,
objectsTargetedCount:
string
,
objectsOperatedOnCount:
string
,
objectFailedCount:
string
,
objectsSucceededCount:
string
,
runStatusError:
string
,
runStatusEnum:
enum
,
summaryReportPath:
string
,
taskId:
string
,
taskVersion:
string
,
runResult:
enum
,
}
api-version:
string
,
}
⚐ Response (200)
{
properties:
}
{
,
taskId:
string
,
enabled:
boolean
,
description:
string
,
executionContext:
{
,
target:
{
,
prefix:
[
,
string
,
]
excludePrefix:
}
[
,
string
,
]
trigger:
}
{
,
type:
enum
,
parameters:
}
{
,
startFrom:
string
,
interval:
integer
,
intervalUnit:
enum
,
endBy:
string
,
startOn:
string
,
}
report:
{
,
prefix:
string
,
}
provisioningState:
enum
,
runStatus:
}
{
,
taskAssignmentId:
string
,
storageAccountId:
string
,
startTime:
string
,
finishTime:
string
,
objectsTargetedCount:
string
,
objectsOperatedOnCount:
string
,
objectFailedCount:
string
,
objectsSucceededCount:
string
,
runStatusError:
string
,
runStatusEnum:
enum
,
summaryReportPath:
string
,
taskId:
string
,
taskVersion:
string
,
runResult:
enum
,
}
⚐ Response (201)
{
properties:
}
{
,
taskId:
string
,
enabled:
boolean
,
description:
string
,
executionContext:
{
,
target:
{
,
prefix:
[
,
string
,
]
excludePrefix:
}
[
,
string
,
]
trigger:
}
{
,
type:
enum
,
parameters:
}
{
,
startFrom:
string
,
interval:
integer
,
intervalUnit:
enum
,
endBy:
string
,
startOn:
string
,
}
report:
{
,
prefix:
string
,
}
provisioningState:
enum
,
runStatus:
}
{
,
taskAssignmentId:
string
,
storageAccountId:
string
,
startTime:
string
,
finishTime:
string
,
objectsTargetedCount:
string
,
objectsOperatedOnCount:
string
,
objectFailedCount:
string
,
objectsSucceededCount:
string
,
runStatusError:
string
,
runStatusEnum:
enum
,
summaryReportPath:
string
,
taskId:
string
,
taskVersion:
string
,
runResult:
enum
,
}
⚐ Response (202)
{
location:
string
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}