Runs - Get Log Sas Url

Gets a link to download the run logs.

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

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

The Microsoft Azure subscription ID.

resourceGroupName
path True
  • string

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

registryName
path True
  • string

The name of the container registry.

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

runId
path True
  • string

The run 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.

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_GetLogSasUrl

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/listLogSasUrl?api-version=2019-04-01

Sample Response

{
  "logLink": "https://registrystorageaccount.blob.core.windows.net/sascontainer/logs/0accec26-d6de-4757-8e74-d080f38eaaab/rawtext.log?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"
}

Definitions

RunGetLogResult

The result of get log link operation.

Name Type Description
logLink
  • string

The link to logs for a run on a azure container registry.