Skip to main content

inputs

Creates, updates, deletes, gets or lists a inputs resource.

Overview

Nameinputs
TypeResource
Idazure.stream_analytics.inputs

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
compressiontextfield from the properties object
diagnosticstextfield from the properties object
etagtextfield from the properties object
inputNametextfield from the properties object
jobNametextfield from the properties object
partition_keytextfield from the properties object
resourceGroupNametextfield from the properties object
serializationtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTinputName, jobName, resourceGroupName, subscriptionIdGets details about the specified input.
list_by_streaming_jobSELECTjobName, resourceGroupName, subscriptionIdLists all of the inputs under the specified streaming job.
create_or_replaceINSERTinputName, jobName, resourceGroupName, subscriptionIdCreates an input or replaces an already existing input under an existing streaming job.
deleteDELETEinputName, jobName, resourceGroupName, subscriptionIdDeletes an input from the streaming job.
updateUPDATEinputName, jobName, resourceGroupName, subscriptionIdUpdates an existing input under an existing streaming job. This can be used to partially update (ie. update one or two properties) an input without affecting the rest the job or input definition.
testEXECinputName, jobName, resourceGroupName, subscriptionIdTests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service.

SELECT examples

Lists all of the inputs under the specified streaming job.

SELECT
id,
name,
compression,
diagnostics,
etag,
inputName,
jobName,
partition_key,
resourceGroupName,
serialization,
subscriptionId,
type
FROM azure.stream_analytics.vw_inputs
WHERE jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new inputs resource.

/*+ create */
INSERT INTO azure.stream_analytics.inputs (
inputName,
jobName,
resourceGroupName,
subscriptionId,
name,
properties
)
SELECT
'{{ inputName }}',
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a inputs resource.

/*+ update */
UPDATE azure.stream_analytics.inputs
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
inputName = '{{ inputName }}'
AND jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified inputs resource.

/*+ delete */
DELETE FROM azure.stream_analytics.inputs
WHERE inputName = '{{ inputName }}'
AND jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';