swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector EventSources API schemes: - https tags: - name: EventSources paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName} : put: tags: - EventSources operationId: microsoftAzureEventsourcesCreateorupdate x-ms-examples: CreateEventHubEventSource: $ref: ./examples/EventSourcesCreateEventHub.json EventSourcesCreateEventHubWithCustomEnquedTime: $ref: ./examples/EventSourcesCreateEventHubWithCustomEnquedTime.json description: Create or update an event source under the specified environment. parameters: - $ref: '#/parameters/SubscriptionIdParameter' - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/EnvironmentNameParameter' - name: eventSourceName in: path required: true type: string pattern: ^[-\w\._\(\)]+$ minLength: 1 maxLength: 90 description: Name of the event source. - $ref: '#/parameters/ApiVersionParameter' - name: parameters in: body required: true schema: $ref: '#/definitions/EventSourceCreateOrUpdateParameters' description: Parameters for creating an event source resource. responses: '200': description: The existing event source definition was successfully updated. schema: $ref: '#/definitions/EventSourceResource' '201': description: The event source was successfully created. schema: $ref: '#/definitions/EventSourceResource' default: description: 'HTTP 400 (Bad Request): The given event source request body is invalid; See the error code and message in the response for details.' schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Timeseriesinsights Environments Environmentname Eventsources Eventsourcename get: tags: - EventSources operationId: microsoftAzureEventsourcesGet x-ms-examples: GetEventHubEventSource: $ref: ./examples/EventSourcesGetEventHub.json description: Gets the event source with the specified name in the specified environment. parameters: - $ref: '#/parameters/SubscriptionIdParameter' - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/EnvironmentNameParameter' - $ref: '#/parameters/EventSourceNameParameter' - $ref: '#/parameters/ApiVersionParameter' responses: '200': description: The event source definition was successfully retrieved and is in the response. schema: $ref: '#/definitions/EventSourceResource' default: description: 'HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found.' schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Timeseriesinsights Environments Environmentname Eventsources Eventsourcename patch: tags: - EventSources operationId: microsoftAzureEventsourcesUpdate x-ms-examples: UpdateEventSource: $ref: ./examples/EventSourcesPatchTags.json description: Updates the event source with the specified name in the specified subscription, resource group, and environment. parameters: - $ref: '#/parameters/SubscriptionIdParameter' - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/EnvironmentNameParameter' - $ref: '#/parameters/EventSourceNameParameter' - $ref: '#/parameters/ApiVersionParameter' - name: eventSourceUpdateParameters in: body required: true schema: $ref: '#/definitions/EventSourceUpdateParameters' description: Request object that contains the updated information for the event source. responses: '200': description: The event source definition was successfully updated and is in the response. schema: $ref: '#/definitions/EventSourceResource' default: description: 'HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found.' schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Timeseriesinsights Environments Environmentname Eventsources Eventsourcename delete: tags: - EventSources operationId: microsoftAzureEventsourcesDelete x-ms-examples: DeleteEventSource: $ref: ./examples/EventSourcesDelete.json description: Deletes the event source with the specified name in the specified subscription, resource group, and environment parameters: - $ref: '#/parameters/SubscriptionIdParameter' - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/EnvironmentNameParameter' - $ref: '#/parameters/EventSourceNameParameter' - $ref: '#/parameters/ApiVersionParameter' responses: '200': description: The event source was successfully deleted. '204': description: The event source was successfully deleted. default: description: 'HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found.' schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Timeseriesinsights Environments Environmentname Eventsources Eventsourcename ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources : get: tags: - EventSources operationId: microsoftAzureEventsourcesListbyenvironment x-ms-examples: ListEventSourcesByEnvironment: $ref: ./examples/EventSourcesListByEnvironment.json description: Lists all the available event sources associated with the subscription and within the specified resource group and environment. parameters: - $ref: '#/parameters/SubscriptionIdParameter' - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/EnvironmentNameParameter' - $ref: '#/parameters/ApiVersionParameter' responses: '200': description: Environments returned successfully. schema: $ref: '#/definitions/EventSourceListResponse' default: description: 'HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.' schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Timeseriesinsights Environments Environmentname Eventsources definitions: EventSourceCreateOrUpdateParameters: discriminator: kind properties: kind: type: string description: The kind of the event source. enum: - Microsoft.EventHub - Microsoft.IoTHub x-ms-enum: name: EventSourceKind modelAsString: true localTimestamp: $ref: '#/definitions/LocalTimestamp' description: An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. required: - kind allOf: - $ref: '#/definitions/CreateOrUpdateTrackedResourceProperties' description: Parameters supplied to the Create or Update Event Source operation. LocalTimestamp: description: An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. type: object properties: format: description: An enum that represents the format of the local timestamp property that needs to be set. type: string enum: - Embedded x-ms-enum: name: LocalTimestampFormat modelAsString: true timeZoneOffset: description: An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded. type: object properties: propertyName: type: string description: 'The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)' CreateOrUpdateTrackedResourceProperties: properties: location: type: string description: The location of the resource. x-ms-mutability: - read - create tags: type: object additionalProperties: type: string description: Key-value pairs of additional properties for the resource. required: - location description: Properties required to create any resource tracked by Azure Resource Manager. Resource: properties: id: readOnly: true type: string description: Resource Id name: readOnly: true type: string description: Resource name type: readOnly: true type: string description: Resource type description: Time Series Insights resource x-ms-azure-resource: true CloudError: type: object properties: error: $ref: '#/definitions/CloudErrorBody' description: Describes a particular API error with an error code and a message. description: Contains information about an API error. x-ms-external: true TrackedResource: properties: location: type: string description: Resource location x-ms-mutability: - read - create tags: type: object additionalProperties: type: string description: Resource tags allOf: - $ref: '#/definitions/Resource' required: - location description: Time Series Insights resource that is tracked by Azure Resource Manager. CloudErrorBody: type: object description: Describes a particular API error with an error code and a message. properties: code: type: string description: An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases. message: type: string description: A message that describes the error in detail and provides debugging information. target: type: string description: The target of the particular error (for example, the name of the property in error). details: type: array items: $ref: '#/definitions/CloudErrorBody' description: Describes a particular API error with an error code and a message. x-ms-identifiers: [] description: Contains nested errors that are related to this error. x-ms-external: true EventSourceUpdateParameters: discriminator: kind type: object properties: kind: type: string description: The kind of the event source. enum: - Microsoft.EventHub - Microsoft.IoTHub x-ms-enum: name: EventSourceKind modelAsString: true tags: type: object additionalProperties: type: string description: Key-value pairs of additional properties for the event source. required: - kind description: Parameters supplied to the Update Event Source operation. EventSourceListResponse: properties: value: type: array items: $ref: '#/definitions/EventSourceResource' description: Result of the List EventSources operation. description: The response of the List EventSources operation. EventSourceResource: type: object discriminator: kind properties: kind: type: string description: The kind of the event source. enum: - Microsoft.EventHub - Microsoft.IoTHub required: - kind allOf: - $ref: '#/definitions/TrackedResource' description: An environment receives data from one or more event sources. Each event source has associated connection info that allows the Time Series Insights ingress pipeline to connect to and pull data from the event source parameters: ApiVersionParameter: name: api-version in: query required: true type: string description: Version of the API to be used with the client request. EnvironmentNameParameter: name: environmentName in: path required: true type: string description: The name of the Time Series Insights environment associated with the specified resource group. x-ms-parameter-location: method SubscriptionIdParameter: name: subscriptionId in: path description: Azure Subscription ID. required: true type: string EventSourceNameParameter: name: eventSourceName in: path required: true type: string description: The name of the Time Series Insights event source associated with the specified environment. x-ms-parameter-location: method ResourceGroupNameParameter: name: resourceGroupName in: path required: true type: string x-ms-parameter-location: method description: Name of an Azure Resource group. x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'