Microsoft.Storage (stable:2024-01-01)

2025/03/31 • 4 updated methods

StorageTaskAssignments_Create (updated)
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 ,
}
,
]
,
}
,
}
StorageTaskAssignments_Update (updated)
Description Update storage task assignment properties
Reference Link ¶

⚶ Changes

{
  "#id": "StorageTaskAssignments_Update",
  "$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",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /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 (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
StorageTaskAssignments_Get (updated)
Description Get the storage task assignment properties
Reference Link ¶

⚶ Changes

{
  "#id": "StorageTaskAssignments_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "provisioningState",
            "Enum": {
              "new": [
                [
                  "ValidateSubscriptionQuotaBegin",
                  ""
                ],
                [
                  "ValidateSubscriptionQuotaEnd",
                  ""
                ],
                [
                  "Accepted",
                  ""
                ],
                [
                  "Creating",
                  ""
                ],
                [
                  "Succeeded",
                  ""
                ],
                [
                  "Deleting",
                  ""
                ],
                [
                  "Canceled",
                  ""
                ],
                [
                  "Failed",
                  ""
                ]
              ],
              "old": [
                [
                  "ValidateSubscriptionQuotaBegin",
                  ""
                ],
                [
                  "ValidateSubscriptionQuotaEnd",
                  ""
                ],
                [
                  "Creating",
                  ""
                ],
                [
                  "Succeeded",
                  ""
                ],
                [
                  "Deleting",
                  ""
                ],
                [
                  "Canceled",
                  ""
                ],
                [
                  "Failed",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
storageTaskAssignmentName: string ,
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
StorageTaskAssignments_List (updated)
Description List all the storage task assignments in an account
Reference Link ¶

⚶ Changes

{
  "#id": "StorageTaskAssignments_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "provisioningState",
                "Enum": {
                  "new": [
                    [
                      "ValidateSubscriptionQuotaBegin",
                      ""
                    ],
                    [
                      "ValidateSubscriptionQuotaEnd",
                      ""
                    ],
                    [
                      "Accepted",
                      ""
                    ],
                    [
                      "Creating",
                      ""
                    ],
                    [
                      "Succeeded",
                      ""
                    ],
                    [
                      "Deleting",
                      ""
                    ],
                    [
                      "Canceled",
                      ""
                    ],
                    [
                      "Failed",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "ValidateSubscriptionQuotaBegin",
                      ""
                    ],
                    [
                      "ValidateSubscriptionQuotaEnd",
                      ""
                    ],
                    [
                      "Creating",
                      ""
                    ],
                    [
                      "Succeeded",
                      ""
                    ],
                    [
                      "Deleting",
                      ""
                    ],
                    [
                      "Canceled",
                      ""
                    ],
                    [
                      "Failed",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
$maxpagesize: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
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 ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}