你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

auto Export Jobs - List By Aml Filesystem

返回用户有权在 AML 文件系统下访问的所有自动导出作业。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs?api-version=2024-07-01

URI 参数

名称 必需 类型 说明
amlFilesystemName
path True

string

minLength: 2
maxLength: 80
pattern: ^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$

AML 文件系统的名称。 允许字母数字、下划线和连字符。 以字母数字开头和结尾。

resourceGroupName
path True

string

minLength: 1
maxLength: 90

资源组的名称。 名称不区分大小写。

subscriptionId
path True

string

minLength: 1

目标订阅的 ID。

api-version
query True

string

minLength: 1

用于此作的 API 版本。

响应

名称 类型 说明
200 OK

AutoExportJobsListResult

自动导出作业的列表。 历史记录保留为最近 10 个作业,不过,如果最近运行了 10 个作业,则可以在列表中返回 10 个以上的作业。 如果作业记录超过 10 条,则非活动自动导出作业将在完成后 72 小时自动从列表中自动删除。请注意,实体引用可能会替换完整的 AmlFilesystem 对象,如 http://docs.oasis-open.org/odata/odata-json-format/v4.01/cs01/odata-json-format-v4.01-cs01.html#sec_EntityReference

Other Status Codes

CloudError

描述作失败的原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

autoExportJobs_ListByAmlFilesystem

示例请求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/amlFilesystems/fs1/autoExportJobs?api-version=2024-07-01

示例响应

{
  "value": [
    {
      "name": "job1",
      "location": "eastus",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/amlfilesystems/fs1/autoExportJob/job1",
      "type": "Microsoft.StorageCache/amlFilesystem/autoExportJob",
      "properties": {
        "adminStatus": "Enable",
        "provisioningState": "Succeeded",
        "autoExportPrefixes": [
          "/"
        ],
        "status": {
          "state": "InProgress",
          "statusMessage": "Auto Export is in progress",
          "totalFilesExported": 1000000,
          "totalMiBExported": 10000,
          "totalFilesFailed": 5,
          "exportIterationCount": 100,
          "lastSuccessfulIterationCompletionTimeUTC": "2024-04-21T19:28:43.511Z",
          "currentIterationFilesDiscovered": 10,
          "currentIterationMiBDiscovered": 4000,
          "currentIterationFilesExported": 5,
          "currentIterationMiBExported": 500,
          "currentIterationFilesFailed": 1,
          "lastStartedTimeUTC": "2024-04-21T17:25:43.511Z"
        }
      }
    },
    {
      "name": "job2",
      "location": "eastus",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/amlfilesystems/fs1/autoExportJob/job2",
      "type": "Microsoft.StorageCache/amlFilesystem/autoExportJob",
      "properties": {
        "adminStatus": "Disable",
        "provisioningState": "Succeeded",
        "autoExportPrefixes": [
          "/dir1"
        ],
        "status": {
          "state": "Disabled",
          "statusMessage": "Auto Export job is disabled",
          "totalFilesExported": 1000000,
          "totalMiBExported": 10000,
          "totalFilesFailed": 5,
          "exportIterationCount": 100,
          "lastSuccessfulIterationCompletionTimeUTC": "2024-04-21T19:28:43.511Z",
          "currentIterationFilesDiscovered": 10,
          "currentIterationMiBDiscovered": 4000,
          "currentIterationFilesExported": 5,
          "currentIterationMiBExported": 500,
          "currentIterationFilesFailed": 1,
          "lastStartedTimeUTC": "2024-04-21T17:25:43.511Z",
          "lastCompletionTimeUTC": "2024-04-21T20:25:43.511Z"
        }
      }
    }
  ]
}

定义

名称 说明
AutoExportJob

自动导出作业实例。 遵循 Azure 资源管理器标准:https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md

AutoExportJobAdminStatus

自动导出作业的管理状态。 可能的值:“Enable”、“Disable”。 传入值“禁用”将禁用当前活动的自动导出作业。 默认情况下,它设置为“启用”。

AutoExportJobProvisioningStateType

ARM 预配状态。

AutoExportJobsListResult

列出自动导出作业的请求的结果。 它包含自动导出作业的列表和 URL 链接,用于获取下一组结果。

AutoExportStatusType

自动导出的作状态。 InProgress 指示导出正在运行。 禁用表示用户已请求禁用导出,但禁用仍在进行中。 禁用表示已禁用自动导出。 DisableFailed 表示禁用失败。 失败意味着导出由于错误而无法继续。

CloudError

错误响应。

CloudErrorBody

错误响应。

createdByType

创建资源的标识的类型。

systemData

与创建和上次修改资源相关的元数据。

AutoExportJob

自动导出作业实例。 遵循 Azure 资源管理器标准:https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md

名称 类型 默认值 说明
id

string

资源的完全限定资源 ID。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

资源所在的地理位置

name

string

资源的名称

properties.adminStatus

AutoExportJobAdminStatus

Enable

自动导出作业的管理状态。 可能的值:“Enable”、“Disable”。 传入值“禁用”将禁用当前活动的自动导出作业。 默认情况下,它设置为“启用”。

properties.autoExportPrefixes

string[]

自动导出到群集命名空间的 blob 路径/前缀数组。 它具有“/”作为默认值。 目前允许的最大路径数为 1。

properties.provisioningState

AutoExportJobProvisioningStateType

ARM 预配状态。

properties.status.currentIterationFilesDiscovered

integer (int64)

在当前迭代中发现用于导出的文件。 发现更多导出项时,可能会增加。

properties.status.currentIterationFilesExported

integer (int64)

已在当前迭代中导出的文件。

properties.status.currentIterationFilesFailed

integer (int64)

文件在当前迭代中无法导出。

properties.status.currentIterationMiBDiscovered

integer (int64)

在当前迭代中发现用于导出的数据(在 MiB 中)。 发现更多导出项时,可能会增加。

properties.status.currentIterationMiBExported

integer (int64)

在当前迭代中导出的数据(以 MiB 为单位)。

properties.status.exportIterationCount

integer (int32)

自导出开始以来完成的迭代数。

properties.status.lastCompletionTimeUTC

string (date-time)

上次完成自动导出作业的时间(UTC)。

properties.status.lastStartedTimeUTC

string (date-time)

最新自动导出作业启动的时间(UTC)。

properties.status.lastSuccessfulIterationCompletionTimeUTC

string (date-time)

上次成功完成的导出迭代的时间(UTC)。 有关详细信息,请查看日志记录容器。

properties.status.state

AutoExportStatusType

自动导出的作状态。 InProgress 指示导出正在运行。 禁用表示用户已请求禁用导出,但禁用仍在进行中。 禁用表示已禁用自动导出。 DisableFailed 表示禁用失败。 失败意味着导出由于错误而无法继续。

properties.status.statusCode

string

自动导出作业的服务器定义状态代码。

properties.status.statusMessage

string

自动导出作业的服务器定义状态消息。

properties.status.totalFilesExported

integer (int64)

自导出开始以来导出的文件总数。 这是累积的,某些文件可能会重复计数。

properties.status.totalFilesFailed

integer (int64)

自上次成功完成迭代以来,无法导出文件总数。 这是累积的,某些文件可能会重复计数。

properties.status.totalMiBExported

integer (int64)

导出后导出的总数据(以 MiB 为单位)。 这是累积的,某些文件可能会重复计数。

systemData

systemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

tags

object

资源标记。

type

string

资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

AutoExportJobAdminStatus

自动导出作业的管理状态。 可能的值:“Enable”、“Disable”。 传入值“禁用”将禁用当前活动的自动导出作业。 默认情况下,它设置为“启用”。

说明
Disable
Enable

AutoExportJobProvisioningStateType

ARM 预配状态。

说明
Canceled
Creating
Deleting
Failed
Succeeded
Updating

AutoExportJobsListResult

列出自动导出作业的请求的结果。 它包含自动导出作业的列表和 URL 链接,用于获取下一组结果。

名称 类型 说明
nextLink

string

用于获取下一组自动导出作业列表结果的 URL(如果有)。

value

AutoExportJob[]

自动导出作业的列表。

AutoExportStatusType

自动导出的作状态。 InProgress 指示导出正在运行。 禁用表示用户已请求禁用导出,但禁用仍在进行中。 禁用表示已禁用自动导出。 DisableFailed 表示禁用失败。 失败意味着导出由于错误而无法继续。

说明
DisableFailed
Disabled
Disabling
Failed
InProgress

CloudError

错误响应。

名称 类型 说明
error

CloudErrorBody

错误的正文。

CloudErrorBody

错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,旨在适合在用户界面中显示。

target

string

特定错误的目标。 例如,错误属性的名称。

createdByType

创建资源的标识的类型。

说明
Application
Key
ManagedIdentity
User

systemData

与创建和上次修改资源相关的元数据。

名称 类型 说明
createdAt

string (date-time)

资源创建时间戳(UTC)。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识的类型。

lastModifiedAt

string (date-time)

上次修改的资源时间戳(UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识的类型。