swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ServiceFabrics API schemes: - https tags: - name: ServiceFabrics paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics : get: tags: - ServiceFabrics description: List service fabrics in a given user profile. operationId: microsoftAzureServicefabricsList parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: $expand in: query description: 'Specify the $expand query. Example: ''properties($expand=applicableSchedule)''' type: string - name: $filter in: query description: 'The filter to apply to the operation. Example: ''$filter=contains(name,''myName'')' type: string - name: $top in: query description: 'The maximum number of resources to return from the operation. Example: ''$top=10''' type: integer format: int32 - name: $orderby in: query description: 'The ordering expression for the results, using OData notation. Example: ''$orderby=name desc''' type: string - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ServiceFabricList' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-pageable: nextLinkName: nextLink x-ms-odata: '#/definitions/ServiceFabric' x-ms-examples: ServiceFabrics_List: $ref: ./examples/ServiceFabrics_List.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name} : get: tags: - ServiceFabrics description: Get service fabric. operationId: microsoftAzureServicefabricsGet parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - name: $expand in: query description: 'Specify the $expand query. Example: ''properties($expand=applicableSchedule)''' type: string - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ServiceFabric' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_Get: $ref: ./examples/ServiceFabrics_Get.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name put: tags: - ServiceFabrics description: Create or replace an existing service fabric. This operation can take a while to complete. operationId: microsoftAzureServicefabricsCreateorupdate parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - name: serviceFabric in: body description: A Service Fabric. required: true schema: $ref: '#/definitions/ServiceFabric' - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ServiceFabric' '201': description: Created schema: $ref: '#/definitions/ServiceFabric' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_CreateOrUpdate: $ref: ./examples/ServiceFabrics_CreateOrUpdate.json x-ms-long-running-operation: true summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name delete: tags: - ServiceFabrics description: Delete service fabric. This operation can take a while to complete. operationId: microsoftAzureServicefabricsDelete parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - $ref: '#/parameters/api-version' responses: '200': description: OK '202': description: Accepted '204': description: No Content default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_Delete: $ref: ./examples/ServiceFabrics_Delete.json x-ms-long-running-operation: true summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name patch: tags: - ServiceFabrics description: Allows modifying tags of service fabrics. All other properties will be ignored. operationId: microsoftAzureServicefabricsUpdate parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - name: serviceFabric in: body description: A Service Fabric. required: true schema: $ref: '#/definitions/ServiceFabricFragment' - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ServiceFabric' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_Update: $ref: ./examples/ServiceFabrics_Update.json summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules : post: tags: - ServiceFabrics description: Lists the applicable start/stop schedules, if any. operationId: microsoftAzureServicefabricsListapplicableschedules parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ApplicableSchedule' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_ListApplicableSchedules: $ref: ./examples/ServiceFabrics_ListApplicableSchedules.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name Listapplicableschedules ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/start : post: tags: - ServiceFabrics description: Start a service fabric. This operation can take a while to complete. operationId: microsoftAzureServicefabricsStart parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - $ref: '#/parameters/api-version' responses: '200': description: OK '202': description: Accepted default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_Start: $ref: ./examples/ServiceFabrics_Start.json x-ms-long-running-operation: true summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name Start ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/stop : post: tags: - ServiceFabrics description: Stop a service fabric This operation can take a while to complete. operationId: microsoftAzureServicefabricsStop parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: userName in: path description: The name of the user profile. required: true type: string - name: name in: path description: The name of the service fabric. required: true type: string - $ref: '#/parameters/api-version' responses: '200': description: OK '202': description: Accepted default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ServiceFabrics_Stop: $ref: ./examples/ServiceFabrics_Stop.json x-ms-long-running-operation: true summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Users Username Servicefabrics Name Stop definitions: ServiceFabricList: description: The response of a list operation. type: object properties: value: description: Results of the list operation. type: array items: $ref: '#/definitions/ServiceFabric' nextLink: description: Link for next set of results. type: string ScheduleProperties: description: Properties of a schedule. type: object properties: status: description: The status of the schedule (i.e. Enabled, Disabled) default: Disabled enum: - Enabled - Disabled type: string x-ms-enum: name: EnableStatus modelAsString: true taskType: description: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). type: string weeklyRecurrence: $ref: '#/definitions/WeekDetails' description: If the schedule will occur only some days of the week, specify the weekly recurrence. dailyRecurrence: $ref: '#/definitions/DayDetails' description: If the schedule will occur once each day of the week, specify the daily recurrence. hourlyRecurrence: $ref: '#/definitions/HourDetails' description: If the schedule will occur multiple times a day, specify the hourly recurrence. timeZoneId: description: The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) type: string notificationSettings: $ref: '#/definitions/NotificationSettings' description: Notification settings. createdDate: format: date-time description: The creation date of the schedule. type: string readOnly: true targetResourceId: description: The resource ID to which the schedule belongs type: string provisioningState: description: The provisioning status of the resource. type: string readOnly: true uniqueIdentifier: description: The unique immutable identifier of a resource (Guid). type: string readOnly: true ApplicableScheduleProperties: description: Properties of a schedules applicable to a virtual machine. type: object properties: labVmsShutdown: $ref: '#/definitions/Schedule' description: The auto-shutdown schedule, if one has been set at the lab or lab resource level. labVmsStartup: $ref: '#/definitions/Schedule' description: The auto-startup schedule, if one has been set at the lab or lab resource level. WeekDetails: description: Properties of a weekly schedule. type: object properties: weekdays: description: The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). type: array items: type: string time: description: The time of the day the schedule will occur. type: string NotificationSettings: description: Notification settings for a schedule. type: object properties: status: description: If notifications are enabled for this schedule (i.e. Enabled, Disabled). default: Disabled enum: - Enabled - Disabled type: string x-ms-enum: name: EnableStatus modelAsString: true timeInMinutes: format: int32 description: Time in minutes before event at which notification will be sent. type: integer webhookUrl: description: The webhook URL to which the notification will be sent. type: string emailRecipient: description: The email recipient to send notifications to (can be a list of semi-colon separated email addresses). type: string notificationLocale: description: The locale to use when sending a notification (fallback for unsupported languages is EN). type: string ApplicableSchedule: description: Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level. required: - properties type: object allOf: - $ref: '#/definitions/Resource' properties: properties: $ref: '#/definitions/ApplicableScheduleProperties' description: The properties of the resource. x-ms-client-flatten: true CloudErrorBody: description: Body of an error from a REST request. type: object properties: code: description: The error code. type: string message: description: The error message. type: string target: description: The error target. type: string details: description: Inner errors. type: array items: $ref: '#/definitions/CloudErrorBody' x-ms-external: true DayDetails: description: Properties of a daily schedule. type: object properties: time: description: The time of day the schedule will occur. type: string ServiceFabricProperties: description: Properties of a service fabric. type: object properties: externalServiceFabricId: description: The backing service fabric resource's id type: string environmentId: description: The resource id of the environment under which the service fabric resource is present type: string applicableSchedule: $ref: '#/definitions/ApplicableSchedule' description: The applicable schedule for the virtual machine. readOnly: true provisioningState: description: The provisioning status of the resource. type: string readOnly: true uniqueIdentifier: description: The unique immutable identifier of a resource (Guid). type: string readOnly: true HourDetails: description: Properties of an hourly schedule. type: object properties: minute: format: int32 description: Minutes of the hour the schedule will run. type: integer Resource: description: An Azure resource. type: object properties: id: description: The identifier of the resource. type: string readOnly: true name: description: The name of the resource. type: string readOnly: true type: description: The type of the resource. type: string readOnly: true location: description: The location of the resource. type: string tags: description: The tags of the resource. type: object additionalProperties: type: string x-ms-azure-resource: true ServiceFabric: description: A Service Fabric. required: - properties type: object allOf: - $ref: '#/definitions/Resource' properties: properties: $ref: '#/definitions/ServiceFabricProperties' description: The properties of the resource. x-ms-client-flatten: true ServiceFabricFragment: description: A Service Fabric. type: object allOf: - $ref: '#/definitions/UpdateResource' properties: {} CloudError: description: Error from a REST request. type: object properties: error: $ref: '#/definitions/CloudErrorBody' description: The cloud error that occurred x-ms-external: true UpdateResource: description: Represents an update resource type: object properties: tags: description: The tags of the resource. type: object additionalProperties: type: string Schedule: description: A schedule. required: - properties type: object allOf: - $ref: '#/definitions/Resource' properties: properties: $ref: '#/definitions/ScheduleProperties' description: The properties of the resource. x-ms-client-flatten: true parameters: resourceGroupName: name: resourceGroupName in: path description: The name of the resource group. required: true type: string x-ms-parameter-location: method api-version: name: api-version in: query description: Client API version. required: true type: string default: '2018-09-15' subscriptionId: name: subscriptionId in: path description: The subscription ID. required: true type: string x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'