Microsoft.DurableTask (preview:2025-04-01)

2025/04/15 • 4 updated methods

RetentionPolicies_ListByScheduler (updated)
Description List Retention Policies
Reference Link ¶

⚶ Changes

{
  "#id": "RetentionPolicies_ListByScheduler",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "retentionPolicies": {
                  "$properties": [
                    {
                      "#name": "orchestrationState",
                      "Enum": {
                        "new": [
                          [
                            "Completed",
                            "The orchestration is completed"
                          ],
                          [
                            "Failed",
                            "The orchestration is failed"
                          ],
                          [
                            "Terminated",
                            "The orchestration is terminated"
                          ],
                          [
                            "Canceled",
                            "The orchestration is canceled"
                          ]
                        ],
                        "old": [
                          [
                            "Completed",
                            "The orchestration is completed"
                          ],
                          [
                            "Failed",
                            "The orchestration is failed"
                          ],
                          [
                            "Terminated",
                            "The orchestration is terminated"
                          ],
                          [
                            "Canceled",
                            "The orchestration is terminated"
                          ]
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
schedulerName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
RetentionPolicies_Get (updated)
Description Get a Retention Policy
Reference Link ¶

⚶ Changes

{
  "#id": "RetentionPolicies_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "retentionPolicies": {
              "$properties": [
                {
                  "#name": "orchestrationState",
                  "Enum": {
                    "new": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is canceled"
                      ]
                    ],
                    "old": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is terminated"
                      ]
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
schedulerName: string ,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
RetentionPolicies_CreateOrReplace (updated)
Description Create or Update a Retention Policy
Reference Link ¶

⚶ Changes

{
  "#id": "RetentionPolicies_CreateOrReplace",
  "$parameters": {
    "resource": {
      "$properties": {
        "properties": [
          {
            "retentionPolicies": {
              "$properties": [
                {
                  "#name": "orchestrationState",
                  "Enum": {
                    "new": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is canceled"
                      ]
                    ],
                    "old": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is terminated"
                      ]
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "retentionPolicies": {
              "$properties": [
                {
                  "#name": "orchestrationState",
                  "Enum": {
                    "new": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is canceled"
                      ]
                    ],
                    "old": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is terminated"
                      ]
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "retentionPolicies": {
              "$properties": [
                {
                  "#name": "orchestrationState",
                  "Enum": {
                    "new": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is canceled"
                      ]
                    ],
                    "old": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is terminated"
                      ]
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
schedulerName: string ,
resource:
{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
RetentionPolicies_Update (updated)
Description Update a Retention Policy
Reference Link ¶

⚶ Changes

{
  "#id": "RetentionPolicies_Update",
  "$parameters": {
    "properties": {
      "$properties": {
        "properties": [
          {
            "retentionPolicies": {
              "$properties": [
                {
                  "#name": "orchestrationState",
                  "Enum": {
                    "new": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is canceled"
                      ]
                    ],
                    "old": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is terminated"
                      ]
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "retentionPolicies": {
              "$properties": [
                {
                  "#name": "orchestrationState",
                  "Enum": {
                    "new": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is canceled"
                      ]
                    ],
                    "old": [
                      [
                        "Completed",
                        "The orchestration is completed"
                      ],
                      [
                        "Failed",
                        "The orchestration is failed"
                      ],
                      [
                        "Terminated",
                        "The orchestration is terminated"
                      ],
                      [
                        "Canceled",
                        "The orchestration is terminated"
                      ]
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
schedulerName: string ,
properties:
{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
retentionPolicies:
[
{
retentionPeriodInDays: integer ,
orchestrationState: enum ,
}
,
]
,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

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