Runs - Cancel

Cancel an existing run.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel?api-version=2019-04-01

URI Parameters

Name In Required Type Description
registryName
path True

string

The name of the container registry.

Regex pattern: ^[a-zA-Z0-9]*$

resourceGroupName
path True

string

The name of the resource group to which the container registry belongs.

runId
path True

string

The run ID.

subscriptionId
path True

string

The Microsoft Azure subscription ID.

api-version
query True

string

The client API version.

Responses

Name Type Description
200 OK

The request was successful; the request was well-formed and received properly.

202 Accepted

The request was successfully accepted; the operation will complete asynchronously.

Other Status Codes

Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned.

Security

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Runs_Cancel

Sample Request

POST https://management.azure.com/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab/cancel?api-version=2019-04-01

Sample Response