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

Service Fabrics - List

列出给定用户配置文件中的 Service Fabric。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics?api-version=2018-09-15
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics?$expand={$expand}&$filter={$filter}&$top={$top}&$orderby={$orderby}&api-version=2018-09-15

URI 参数

名称 必需 类型 说明
labName
path True

string

实验室的名称。

resourceGroupName
path True

string

资源组的名称。

subscriptionId
path True

string

订阅的 ID。

userName
path True

string

用户配置文件的名称。

api-version
query True

string

客户端 API 版本。

$expand
query

string

指定$expand查询。 示例:“properties ($expand=applicableSchedule) ”

$filter
query

string

要应用于操作的筛选器。 示例:'$filter=contains (name,'myName')

$orderby
query

string

结果的排序表达式,使用 OData 表示法。 示例:“$orderby=name desc”

$top
query

integer

int32

要从操作返回的最大资源数。 示例:“$top=10”

响应

名称 类型 说明
200 OK

ServiceFabricList

确定

Other Status Codes

CloudError

BadRequest

安全性

azure_auth

OAuth2 隐式授权

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

Scopes

名称 说明
user_impersonation 访问 Microsoft Azure

示例

ServiceFabrics_List

Sample Request

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics?api-version=2018-09-15

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}",
      "name": "{serviceFabricName}",
      "type": "Microsoft.DevTestLab/labs/users/serviceFabrics",
      "location": "{location}",
      "properties": {
        "applicableSchedule": {
          "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}",
          "location": "{location}",
          "name": "{scheduleName}",
          "properties": {
            "labVmsShutdown": {
              "properties": {
                "status": "{Enabled|Disabled}",
                "taskType": "{myLabVmTaskType}",
                "weeklyRecurrence": {
                  "weekdays": [
                    "Monday",
                    "Wednesday",
                    "Friday"
                  ],
                  "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}"
                },
                "dailyRecurrence": {
                  "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}"
                },
                "hourlyRecurrence": {
                  "minute": 30
                },
                "timeZoneId": "Pacific Standard Time",
                "notificationSettings": {
                  "status": "{Enabled|Disabled}",
                  "timeInMinutes": 15,
                  "webhookUrl": "{webhookUrl}",
                  "emailRecipient": "{email}",
                  "notificationLocale": "EN"
                },
                "createdDate": "2018-10-01T18:40:48.1739018-07:00",
                "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}",
                "provisioningState": "Creating",
                "uniqueIdentifier": "{uniqueIdentifier}"
              },
              "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}",
              "name": "{scheduleName}",
              "type": "Microsoft.DevTestLab/labs/schedules",
              "location": "{location}",
              "tags": {
                "tagName1": "tagValue1"
              }
            },
            "labVmsStartup": {
              "properties": {
                "status": "{Enabled|Disabled}",
                "taskType": "{myLabVmTaskType}",
                "weeklyRecurrence": {
                  "weekdays": [
                    "Monday",
                    "Wednesday",
                    "Friday"
                  ],
                  "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}"
                },
                "dailyRecurrence": {
                  "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}"
                },
                "hourlyRecurrence": {
                  "minute": 30
                },
                "timeZoneId": "Pacific Standard Time",
                "notificationSettings": {
                  "status": "{Enabled|Disabled}",
                  "timeInMinutes": 15,
                  "webhookUrl": "{webhookUrl}",
                  "emailRecipient": "{email}",
                  "notificationLocale": "EN"
                },
                "createdDate": "2018-10-01T18:40:48.1739018-07:00",
                "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}",
                "provisioningState": "Creating",
                "uniqueIdentifier": "{uniqueIdentifier}"
              },
              "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}",
              "name": "{scheduleName}",
              "type": "Microsoft.DevTestLab/labs/schedules",
              "location": "{location}",
              "tags": {
                "tagName1": "tagValue1"
              }
            }
          },
          "type": "{scheduleType}",
          "tags": {
            "tagName1": "tagValue1"
          }
        },
        "environmentId": "{environmentId}",
        "externalServiceFabricId": "{serviceFabricId}",
        "provisioningState": "Succeeded",
        "uniqueIdentifier": "{uniqueIdentifier}"
      },
      "tags": {
        "tagName1": "tagValue1"
      }
    }
  ]
}

定义

名称 说明
ApplicableSchedule

适用于虚拟机的计划。 计划可能是在 VM 或实验室级别定义的。

CloudError

REST 请求出错。

CloudErrorBody

来自 REST 请求的错误正文。

DayDetails

每日计划的属性。

EnableStatus

计划的状态 (,即“已启用”、“已禁用”)

HourDetails

每小时计划的属性。

NotificationSettings

计划的通知设置。

Schedule

计划。

ServiceFabric

Service Fabric。

ServiceFabricList

列表操作的响应。

WeekDetails

每周计划的属性。

ApplicableSchedule

适用于虚拟机的计划。 计划可能是在 VM 或实验室级别定义的。

名称 类型 说明
id

string

资源的标识符。

location

string

资源的位置。

name

string

资源的名称。

properties.labVmsShutdown

Schedule

自动关闭计划(如果已在实验室或实验室资源级别设置)。

properties.labVmsStartup

Schedule

自动启动计划(如果已在实验室或实验室资源级别设置)。

tags

object

资源的标记。

type

string

资源类型。

CloudError

REST 请求出错。

名称 类型 说明
error

CloudErrorBody

发生的云错误

CloudErrorBody

来自 REST 请求的错误正文。

名称 类型 说明
code

string

错误代码。

details

CloudErrorBody[]

内部错误。

message

string

错误消息。

target

string

错误目标。

DayDetails

每日计划的属性。

名称 类型 说明
time

string

计划的发生时间。

EnableStatus

计划的状态 (,即“已启用”、“已禁用”)

名称 类型 说明
Disabled

string

Enabled

string

HourDetails

每小时计划的属性。

名称 类型 说明
minute

integer

计划将运行的小时分钟数。

NotificationSettings

计划的通知设置。

名称 类型 默认值 说明
emailRecipient

string

向 (发送通知的电子邮件收件人可以是分号分隔的电子邮件地址列表) 。

notificationLocale

string

发送不受支持的语言的通知 (回退时要使用的区域设置为 EN) 。

status

EnableStatus

Disabled

如果为此计划启用了通知 (即“已启用”、“禁用”) 。

timeInMinutes

integer

发送通知的事件之前的时间(以分钟为单位)。

webhookUrl

string

通知将发送到的 Webhook URL。

Schedule

计划。

名称 类型 默认值 说明
id

string

资源的标识符。

location

string

资源的位置。

name

string

资源的名称。

properties.createdDate

string

计划的创建日期。

properties.dailyRecurrence

DayDetails

如果计划将在一周中的每一天发生一次,请指定每日重复周期。

properties.hourlyRecurrence

HourDetails

如果计划一天发生多次,请指定每小时重复周期。

properties.notificationSettings

NotificationSettings

通知设置。

properties.provisioningState

string

资源的预配状态。

properties.status

EnableStatus

Disabled

计划的状态 (,即“已启用”、“已禁用”)

properties.targetResourceId

string

计划所属的资源 ID

properties.taskType

string

计划的任务类型 (例如 LabVmsShutdownTask、LabVmAutoStart) 。

properties.timeZoneId

string

时区 ID (例如中国标准时间、格陵兰标准时间、太平洋标准时间等 ) 。 可以在 (中找到https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md此属性IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds的可能值)

properties.uniqueIdentifier

string

资源的唯一不可变标识符 (Guid) 。

properties.weeklyRecurrence

WeekDetails

如果计划仅在一周中的某几天发生,请指定每周重复周期。

tags

object

资源的标记。

type

string

资源类型。

ServiceFabric

Service Fabric。

名称 类型 说明
id

string

资源的标识符。

location

string

资源的位置。

name

string

资源的名称。

properties.applicableSchedule

ApplicableSchedule

虚拟机的适用计划。

properties.environmentId

string

Service Fabric 资源所在的环境的资源 ID

properties.externalServiceFabricId

string

后备 Service Fabric 资源的 ID

properties.provisioningState

string

资源的预配状态。

properties.uniqueIdentifier

string

资源的唯一不可变标识符 (Guid) 。

tags

object

资源的标记。

type

string

资源类型。

ServiceFabricList

列表操作的响应。

名称 类型 说明
nextLink

string

下一组结果的链接。

value

ServiceFabric[]

列表操作的结果。

WeekDetails

每周计划的属性。

名称 类型 说明
time

string

计划发生日期的时间。

weekdays

string[]

将计划设置为 (星期几天,例如星期日、星期一、星期二等 ) 。