openapi: 3.2.0 info: version: '2018-09-15' title: Microsoft Azure DevTestLabsClient Notification Channels API description: The DevTest Labs Client. servers: - url: https://management.azure.com security: - azure_auth: - user_impersonation tags: - name: Notification Channels paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels : get: tags: - Notification Channels description: List notification channels in a given lab. operationId: microsoftAzureNotificationchannelsList parameters: - $ref: '#/components/parameters/subscriptionId' - $ref: '#/components/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true schema: type: string - name: $expand in: query description: 'Specify the $expand query. Example: ''properties($select=webHookUrl)''' schema: type: string - name: $filter in: query description: 'The filter to apply to the operation. Example: ''$filter=contains(name,''myName'')' schema: type: string - name: $top in: query description: 'The maximum number of resources to return from the operation. Example: ''$top=10''' schema: type: integer format: int32 - name: $orderby in: query description: 'The ordering expression for the results, using OData notation. Example: ''$orderby=name desc''' schema: type: string - $ref: '#/components/parameters/api-version' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/NotificationChannelList' default: description: BadRequest content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-pageable: nextLinkName: nextLink x-ms-odata: '#/definitions/NotificationChannel' x-ms-examples: NotificationChannels_List: $ref: ./examples/NotificationChannels_List.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name} : get: tags: - Notification Channels description: Get notification channel. operationId: microsoftAzureNotificationchannelsGet parameters: - $ref: '#/components/parameters/subscriptionId' - $ref: '#/components/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true schema: type: string - name: name in: path description: The name of the notification channel. required: true schema: type: string - name: $expand in: query description: 'Specify the $expand query. Example: ''properties($select=webHookUrl)''' schema: type: string - $ref: '#/components/parameters/api-version' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/NotificationChannel' default: description: BadRequest content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: NotificationChannels_Get: $ref: ./examples/NotificationChannels_Get.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… put: tags: - Notification Channels description: Create or replace an existing notification channel. operationId: microsoftAzureNotificationchannelsCreateorupdate parameters: - $ref: '#/components/parameters/subscriptionId' - $ref: '#/components/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true schema: type: string - name: name in: path description: The name of the notification channel. required: true schema: type: string - $ref: '#/components/parameters/api-version' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/NotificationChannel' '201': description: Created content: application/json: schema: $ref: '#/components/schemas/NotificationChannel' default: description: BadRequest content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: NotificationChannels_CreateOrUpdate: $ref: ./examples/NotificationChannels_CreateOrUpdate.json summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… requestBody: content: application/json: schema: $ref: '#/components/schemas/NotificationChannel' description: A notification. required: true delete: tags: - Notification Channels description: Delete notification channel. operationId: microsoftAzureNotificationchannelsDelete parameters: - $ref: '#/components/parameters/subscriptionId' - $ref: '#/components/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true schema: type: string - name: name in: path description: The name of the notification channel. required: true schema: type: string - $ref: '#/components/parameters/api-version' responses: '200': description: OK '204': description: No Content default: description: BadRequest content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: NotificationChannels_Delete: $ref: ./examples/NotificationChannels_Delete.json summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… patch: tags: - Notification Channels description: Allows modifying tags of notification channels. All other properties will be ignored. operationId: microsoftAzureNotificationchannelsUpdate parameters: - $ref: '#/components/parameters/subscriptionId' - $ref: '#/components/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true schema: type: string - name: name in: path description: The name of the notification channel. required: true schema: type: string - $ref: '#/components/parameters/api-version' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/NotificationChannel' default: description: BadRequest content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: NotificationChannels_Update: $ref: ./examples/NotificationChannels_Update.json summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… requestBody: content: application/json: schema: $ref: '#/components/schemas/NotificationChannelFragment' description: A notification. required: true ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify : post: tags: - Notification Channels description: Send notification to provided channel. operationId: microsoftAzureNotificationchannelsNotify parameters: - $ref: '#/components/parameters/subscriptionId' - $ref: '#/components/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true schema: type: string - name: name in: path description: The name of the notification channel. required: true schema: type: string - $ref: '#/components/parameters/api-version' responses: '200': description: OK default: description: BadRequest content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: NotificationChannels_Notify: $ref: ./examples/NotificationChannels_Notify.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… requestBody: content: application/json: schema: $ref: '#/components/schemas/NotifyParameters' description: Properties for generating a Notification. required: true components: schemas: CloudError: description: Error from a REST request. type: object properties: error: $ref: '#/components/schemas/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 Event: description: An event to be notified for. type: object properties: eventName: description: The event type for which this notification is enabled (i.e. AutoShutdown, Cost) enum: - AutoShutdown - Cost type: string x-ms-enum: name: NotificationChannelEventType modelAsString: true NotificationChannelList: description: The response of a list operation. type: object properties: value: description: Results of the list operation. type: array items: $ref: '#/components/schemas/NotificationChannel' nextLink: description: Link for next set of results. type: string 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: '#/components/schemas/CloudErrorBody' x-ms-external: true NotifyParameters: description: Properties for generating a Notification. type: object properties: eventName: description: The type of event (i.e. AutoShutdown, Cost) enum: - AutoShutdown - Cost type: string x-ms-enum: name: NotificationChannelEventType modelAsString: true jsonPayload: description: Properties for the notification in json format. type: string 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 NotificationChannel: description: A notification. required: - properties type: object allOf: - $ref: '#/components/schemas/Resource' properties: properties: $ref: '#/components/schemas/NotificationChannelProperties' description: The properties of the resource. x-ms-client-flatten: true NotificationChannelFragment: description: A notification. type: object allOf: - $ref: '#/components/schemas/UpdateResource' properties: {} NotificationChannelProperties: description: Properties of a schedule. type: object properties: webHookUrl: description: The webhook URL to send notifications to. 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 description: description: Description of notification. type: string events: description: The list of event for which this notification is enabled. type: array items: $ref: '#/components/schemas/Event' createdDate: format: date-time description: The creation date of the notification channel. type: string 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 parameters: api-version: name: api-version in: query description: Client API version. required: true schema: type: string default: '2018-09-15' resourceGroupName: name: resourceGroupName in: path description: The name of the resource group. required: true x-ms-parameter-location: method schema: type: string subscriptionId: name: subscriptionId in: path description: The subscription ID. required: true schema: type: string securitySchemes: azure_auth: type: oauth2 flows: implicit: scopes: user_impersonation: Access Microsoft Azure authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize description: OAuth2 Implicit Grant