inputs
Creates, updates, deletes, gets or lists an inputs
resource.
Overview
Name | inputs |
Type | Resource |
Id | azure.stream_analytics.inputs |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_streaming_job
Successfully retrieved the specified input.
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. |
type | string | Resource type |
Successfully listed the inputs under the specified streaming job.
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. |
type | string | Resource type |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , jobName , inputName | Gets details about the specified input. | |
list_by_streaming_job | select | subscriptionId , resourceGroupName , jobName | $select | Lists all of the inputs under the specified streaming job. |
create_or_replace | insert | subscriptionId , resourceGroupName , jobName , inputName | If-Match , If-None-Match | Creates an input or replaces an already existing input under an existing streaming job. |
update | update | subscriptionId , resourceGroupName , jobName , inputName | If-Match | Updates 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. |
delete | delete | subscriptionId , resourceGroupName , jobName , inputName | Deletes an input from the streaming job. | |
test | exec | subscriptionId , resourceGroupName , jobName , inputName | Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
inputName | string | The name of the input. |
jobName | string | The name of the streaming job. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
$select | string | The $select OData query parameter. This is a comma-separated list of structural properties to include in the response, or "" to include all properties. By default, all properties are returned except diagnostics. Currently only accepts '' as a valid value. |
If-Match | string | The ETag of the input. Omit this value to always overwrite the current input. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. |
If-None-Match | string | Set to '*' to allow a new input to be created, but to prevent updating an existing input. Other values will result in a 412 Pre-condition Failed response. |
SELECT
examples
- get
- list_by_streaming_job
Gets details about the specified input.
SELECT
id,
name,
properties,
type
FROM azure.stream_analytics.inputs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND jobName = '{{ jobName }}' -- required
AND inputName = '{{ inputName }}' -- required
;
Lists all of the inputs under the specified streaming job.
SELECT
id,
name,
properties,
type
FROM azure.stream_analytics.inputs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND jobName = '{{ jobName }}' -- required
AND $select = '{{ $select }}'
;
INSERT
examples
- create_or_replace
- Manifest
Creates an input or replaces an already existing input under an existing streaming job.
INSERT INTO azure.stream_analytics.inputs (
data__name,
data__properties,
subscriptionId,
resourceGroupName,
jobName,
inputName,
If-Match,
If-None-Match
)
SELECT
'{{ name }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ jobName }}',
'{{ inputName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
id,
name,
properties,
type
;
# Description fields are for documentation purposes
- name: inputs
props:
- name: subscriptionId
value: string
description: Required parameter for the inputs resource.
- name: resourceGroupName
value: string
description: Required parameter for the inputs resource.
- name: jobName
value: string
description: Required parameter for the inputs resource.
- name: inputName
value: string
description: Required parameter for the inputs resource.
- name: name
value: string
description: |
Resource name
- name: properties
value: object
description: |
The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
- name: If-Match
value: string
description: The ETag of the input. Omit this value to always overwrite the current input. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
- name: If-None-Match
value: string
description: Set to '*' to allow a new input to be created, but to prevent updating an existing input. Other values will result in a 412 Pre-condition Failed response.
UPDATE
examples
- update
Updates 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.
UPDATE azure.stream_analytics.inputs
SET
data__name = '{{ name }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND jobName = '{{ jobName }}' --required
AND inputName = '{{ inputName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
properties,
type;
DELETE
examples
- delete
Deletes an input from the streaming job.
DELETE FROM azure.stream_analytics.inputs
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND jobName = '{{ jobName }}' --required
AND inputName = '{{ inputName }}' --required
;
Lifecycle Methods
- test
Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service.
EXEC azure.stream_analytics.inputs.test
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@jobName='{{ jobName }}' --required,
@inputName='{{ inputName }}' --required
@@json=
'{
"name": "{{ name }}",
"properties": "{{ properties }}"
}'
;