Operation Statuses - Get

Get the status of an operation.

GET {endpoint}/projects/{projectName}/operationstatuses/{operationId}?api-version=2025-02-01

URI Parameters

Name In Required Type Description
endpoint
path True

string

uri

The DevCenter-specific URI to operate on.

operationId
path True

string

uuid

The operation id name.

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

projectName
path True

string

Name of the project.

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

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

OperationStatus

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

Get the status of an operation.

Sample request

GET {endpoint}/projects/myProject/operationstatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3?api-version=2025-02-01

Sample response

{
  "id": "/projects/myProject/operationStatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3",
  "name": "fa067167-e49d-41bd-8dd8-de719b9de3b3",
  "status": "Running",
  "startTime": "2024-01-24T21:14:58.472Z"
}

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.

OperationState

Provisioning state of the resource.

OperationStatus

The current status of an async operation.

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.

OperationState

Provisioning state of the resource.

Value Description
Canceled

The operation has been canceled by the user.

Failed

The operation has failed.

NotStarted

The operation has not started.

Running

The operation is in progress.

Succeeded

The operation has completed successfully.

OperationStatus

The current status of an async operation.

Name Type Description
endTime

string

The end time of the operation, in RFC3339 format.

error

Azure.Core.Foundations.Error

Operation Error message.

id

string

Fully qualified ID for the operation status.

name

string

The operation id name.

percentComplete

number

Percent of the operation that is complete.

properties

Custom operation properties, populated only for a successful operation.

resourceId

string

The id of the resource.

startTime

string

The start time of the operation, in RFC3339 format.

status

OperationState

Provisioning state of the resource.