Microsoft.DurableTask (preview:2024-10-01)

2025/03/18 • 1 updated methods

Schedulers_Update (updated)
Description Update a Scheduler
Reference Link ¶

⚶ Changes

{
  "#id": "Schedulers_Update",
  "$parameters": {
    "properties": {
      "Description": {
        "new": "The update request model for the Scheduler resource",
        "old": "A Durable Task Scheduler resource"
      },
      "$properties": {
        "properties": [
          {
            "@added_fb97eef8f32a434d8231e920640345a8": {
              "#name": "provisioningState",
              "Description": "The status of the last operation",
              "Enum": [
                [
                  "Succeeded",
                  "Resource has been created."
                ],
                [
                  "Failed",
                  "Resource creation failed."
                ],
                [
                  "Canceled",
                  "Resource creation was canceled."
                ],
                [
                  "Provisioning",
                  "The resource is being provisioned"
                ],
                [
                  "Updating",
                  "The resource is updating"
                ],
                [
                  "Deleting",
                  "The resource is being deleted"
                ],
                [
                  "Accepted",
                  "The resource create request has been accepted"
                ]
              ],
              "Required": false,
              "Type": "string"
            }
          },
          {
            "@added_b63a516d2cab4474b739abf11ae0faf1": {
              "#name": "endpoint",
              "Description": "URL of the durable task scheduler",
              "Required": false,
              "Type": "string"
            }
          },
          {
            "sku": [
              {
                "@added_28113fc23cd7425aa9535213848b0cb1": {
                  "#name": "redundancyState",
                  "Description": "Indicates whether the current SKU configuration is zone redundant",
                  "Enum": [
                    [
                      "None",
                      "The resource is not redundant"
                    ],
                    [
                      "Zone",
                      "The resource is zone redundant"
                    ]
                  ],
                  "Required": false,
                  "Type": "string"
                }
              }
            ]
          }
        ],
        "@added_73c932ec54dc47f4ab25d96adc928fd8": {
          "#name": "tags",
          "Description": "Resource tags.",
          "Required": false,
          "Type": "object"
        }
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
schedulerName: string ,
properties:
{
properties:
{
provisioningState: enum ,
endpoint: string ,
ipAllowlist:
[
string ,
]
,
sku:
{
name: string ,
capacity: integer ,
redundancyState: enum ,
}
,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
endpoint: string ,
ipAllowlist:
[
string ,
]
,
sku:
{
name: string ,
capacity: integer ,
redundancyState: enum ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

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