Share via


PurviewScanClient.GetRunsAsync(RequestOptions) Method

Definition

Lists the scan history of a scan.

public virtual Azure.AsyncPageable<BinaryData> GetRunsAsync (Azure.RequestOptions options);
abstract member GetRunsAsync : Azure.RequestOptions -> Azure.AsyncPageable<BinaryData>
override this.GetRunsAsync : Azure.RequestOptions -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetRunsAsync (options As RequestOptions) As AsyncPageable(Of BinaryData)

Parameters

options
Azure.RequestOptions

The request options.

Returns

Remarks

Schema for Response Body:

{
              value: [
                {
                  parentId: string,
                  id: string,
                  resourceId: string,
                  status: string,
                  assetsDiscovered: number,
                  assetsClassified: number,
                  diagnostics: {
                    notifications: [
                      {
                        message: string,
                        code: number
                      }
                    ],
                    exceptionCountMap: Dictionary<string, number>
                  },
                  startTime: string (ISO 8601 Format),
                  queuedTime: string (ISO 8601 Format),
                  pipelineStartTime: string (ISO 8601 Format),
                  endTime: string (ISO 8601 Format),
                  scanRulesetVersion: number,
                  scanRulesetType: "Custom" | "System",
                  scanLevelType: "Full" | "Incremental",
                  errorMessage: string,
                  error: {
                    code: string,
                    message: string,
                    target: string,
                    details: [
                      {
                        code: string,
                        message: string,
                        target: string,
                        details: [ErrorModel]
                      }
                    ]
                  },
                  runType: string,
                  dataSourceType: "None" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"
                }
              ],
              nextLink: string,
              count: number
            }

Schema for Response Error:

{
              error: {
                code: string,
                message: string,
                target: string,
                details: [
                  {
                    code: string,
                    message: string,
                    target: string,
                    details: [ErrorModel]
                  }
                ]
              }
            }

Applies to