GetJob
Use this data source to access information about an existing Stream Analytics Job.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.StreamAnalytics.GetJob.InvokeAsync(new Azure.StreamAnalytics.GetJobArgs
{
Name = "example-job",
ResourceGroupName = "example-resources",
}));
this.JobId = example.Apply(example => example.JobId);
}
[Output("jobId")]
public Output<string> JobId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/streamanalytics"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := streamanalytics.LookupJob(ctx, &streamanalytics.LookupJobArgs{
Name: "example-job",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("jobId", example.JobId)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.streamanalytics.get_job(name="example-job",
resource_group_name="example-resources")
pulumi.export("jobId", example.job_id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.streamanalytics.getJob({
name: "example-job",
resourceGroupName: "example-resources",
});
export const jobId = example.then(example => example.jobId);Using GetJob
function getJob(args: GetJobArgs, opts?: InvokeOptions): Promise<GetJobResult>function get_job(name=None, resource_group_name=None, opts=None)func LookupJob(ctx *Context, args *LookupJobArgs, opts ...InvokeOption) (*LookupJobResult, error)Note: This function is named
LookupJobin the Go SDK.
public static class GetJob {
public static Task<GetJobResult> InvokeAsync(GetJobArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Stream Analytics Job.
- Resource
Group stringName Specifies the name of the resource group the Stream Analytics Job is located in.
- Name string
Specifies the name of the Stream Analytics Job.
- Resource
Group stringName Specifies the name of the resource group the Stream Analytics Job is located in.
- name string
Specifies the name of the Stream Analytics Job.
- resource
Group stringName Specifies the name of the resource group the Stream Analytics Job is located in.
- name str
Specifies the name of the Stream Analytics Job.
- resource_
group_ strname Specifies the name of the resource group the Stream Analytics Job is located in.
GetJob Result
The following output properties are available:
- Compatibility
Level string The compatibility level for this job.
- Data
Locale string The Data Locale of the Job.
- Events
Late intArrival Max Delay In Seconds The maximum tolerable delay in seconds where events arriving late could be included.
- Events
Out intOf Order Max Delay In Seconds The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
- Events
Out stringOf Order Policy The policy which should be applied to events which arrive out of order in the input event stream.
- Id string
The provider-assigned unique ID for this managed resource.
- Job
Id string The Job ID assigned by the Stream Analytics Job.
- Location string
The Azure location where the Stream Analytics Job exists.
- Name string
- Output
Error stringPolicy The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
- Resource
Group stringName - Streaming
Units int The number of streaming units that the streaming job uses.
- Transformation
Query string The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
- Compatibility
Level string The compatibility level for this job.
- Data
Locale string The Data Locale of the Job.
- Events
Late intArrival Max Delay In Seconds The maximum tolerable delay in seconds where events arriving late could be included.
- Events
Out intOf Order Max Delay In Seconds The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
- Events
Out stringOf Order Policy The policy which should be applied to events which arrive out of order in the input event stream.
- Id string
The provider-assigned unique ID for this managed resource.
- Job
Id string The Job ID assigned by the Stream Analytics Job.
- Location string
The Azure location where the Stream Analytics Job exists.
- Name string
- Output
Error stringPolicy The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
- Resource
Group stringName - Streaming
Units int The number of streaming units that the streaming job uses.
- Transformation
Query string The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
- compatibility
Level string The compatibility level for this job.
- data
Locale string The Data Locale of the Job.
- events
Late numberArrival Max Delay In Seconds The maximum tolerable delay in seconds where events arriving late could be included.
- events
Out numberOf Order Max Delay In Seconds The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
- events
Out stringOf Order Policy The policy which should be applied to events which arrive out of order in the input event stream.
- id string
The provider-assigned unique ID for this managed resource.
- job
Id string The Job ID assigned by the Stream Analytics Job.
- location string
The Azure location where the Stream Analytics Job exists.
- name string
- output
Error stringPolicy The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
- resource
Group stringName - streaming
Units number The number of streaming units that the streaming job uses.
- transformation
Query string The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
- compatibility_
level str The compatibility level for this job.
- data_
locale str The Data Locale of the Job.
- events_
late_ floatarrival_ max_ delay_ in_ seconds The maximum tolerable delay in seconds where events arriving late could be included.
- events_
out_ floatof_ order_ max_ delay_ in_ seconds The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
- events_
out_ strof_ order_ policy The policy which should be applied to events which arrive out of order in the input event stream.
- id str
The provider-assigned unique ID for this managed resource.
- job_
id str The Job ID assigned by the Stream Analytics Job.
- location str
The Azure location where the Stream Analytics Job exists.
- name str
- output_
error_ strpolicy The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
- resource_
group_ strname - streaming_
units float The number of streaming units that the streaming job uses.
- transformation_
query str The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.