Dev Boxes - Delay Actions

Delays all actions.

POST {endpoint}/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay?api-version=2025-02-01&until={until}

URI Parameters

Name In Required Type Description
devBoxName
path True

string

Display name for the Dev Box.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$

endpoint
path True

string

uri

The DevCenter-specific URI to operate on.

projectName
path True

string

Name of the project.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$

userId
path True

string

The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.

Regex pattern: ^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$

api-version
query True

string

The API version to use for this operation.

until
query True

string

date-time

The time to delay the Dev Box action or actions until, in RFC3339 format.

Responses

Name Type Description
200 OK

PagedDevBoxActionDelayResult

The request has succeeded.

Other Status Codes

Azure.Core.Foundations.ErrorResponse

An unexpected error response.

Headers

x-ms-error-code: string

Security

OAuth2Auth

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
https://devcenter.azure.com/.default

Examples

Delays all actions.

Sample request

POST https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/me/devboxes/myDevBox/actions:delay?api-version=2025-02-01&until=2022-09-30T17:00:00Z

Sample response

{
  "value": [
    {
      "uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/schedule-default",
      "name": "schedule-default",
      "result": "Succeeded",
      "action": {
        "uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/schedule-default",
        "name": "schedule-default",
        "actionType": "Stop",
        "sourceId": "/projects/myProject/pools/myPool/schedules/default",
        "sourceUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/pools/myPool/schedules/default",
        "sourceType": "Schedule",
        "suspendedUntil": "2022-09-30T17:00:00Z",
        "next": {
          "scheduledTime": "2022-09-30T17:00:00Z"
        }
      }
    },
    {
      "uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/idle-hibernateondisconnect",
      "name": "idle-hibernateondisconnect",
      "result": "Succeeded",
      "action": {
        "uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/idle-hibernateondisconnect",
        "name": "idle-hibernateondisconnect",
        "actionType": "Stop",
        "sourceId": "/projects/myProject/pools/myPool",
        "sourceUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/pools/myPool",
        "sourceType": "Pool",
        "suspendedUntil": "2022-09-30T17:00:00Z"
      }
    }
  ]
}

Definitions

Name Description
Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

DevBoxAction

An action which will take place on a Dev Box.

DevBoxActionDelayResult

The action delay result.

DevBoxActionDelayResultStatus

The result of the delay operation on this action.

DevBoxActionSourceType

The type of the resource which triggered the action.

DevBoxActionType

The type of action which will take place on a Dev Box.

DevBoxNextAction

Details about the next run of an action.

PagedDevBoxActionDelayResult

Paged collection of DevBoxActionDelayResult items

Azure.Core.Foundations.Error

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror

Azure.Core.Foundations.InnerError

An object containing more specific information than the current object about the error.

message

string

A human-readable representation of the error.

target

string

The target of the error.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Name Type Description
error

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

Name Type Description
code

string

One of a server-defined set of error codes.

innererror

Azure.Core.Foundations.InnerError

Inner error.

DevBoxAction

An action which will take place on a Dev Box.

Name Type Description
actionType

DevBoxActionType

The action that will be taken.

name

string

The name of the action.

next

DevBoxNextAction

Details about the next run of this action.

sourceId

string

The id of the resource which triggered this action.

sourceType

DevBoxActionSourceType

The type of the resource which triggered this action.

sourceUri

string

The URI of the resource which triggered this action.

suspendedUntil

string

The earliest time that the action could occur (UTC), in RFC3339 format.

uri

string

The unique URI for the Dev Box action.

DevBoxActionDelayResult

The action delay result.

Name Type Description
action

DevBoxAction

The delayed action.

error

Azure.Core.Foundations.Error

Information about the error that occurred. Only populated on error.

name

string

The name of the action.

result

DevBoxActionDelayResultStatus

The result of the delay operation on this action.

uri

string

The unique URI of the action.

DevBoxActionDelayResultStatus

The result of the delay operation on this action.

Value Description
Failed

The delay operation failed.

Succeeded

The delay operation succeeded.

DevBoxActionSourceType

The type of the resource which triggered the action.

Value Description
Pool

The action was triggered by a Dev Box pool.

Schedule

The action was triggered by a Dev Box schedule.

DevBoxActionType

The type of action which will take place on a Dev Box.

Value Description
Stop

The action will stop the Dev Box.

DevBoxNextAction

Details about the next run of an action.

Name Type Description
scheduledTime

string

The time the action will be triggered (UTC), in RFC3339 format.

PagedDevBoxActionDelayResult

Paged collection of DevBoxActionDelayResult items

Name Type Description
nextLink

string

The link to the next page of items

value

DevBoxActionDelayResult[]

The DevBoxActionDelayResult items on this page