azure-native.sql.getJob

Explore with Pulumi AI

Gets a job. API Version: 2020-11-01-preview.

Using getJob

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getJob(args: GetJobArgs, opts?: InvokeOptions): Promise<GetJobResult>
function getJobOutput(args: GetJobOutputArgs, opts?: InvokeOptions): Output<GetJobResult>
def get_job(job_agent_name: Optional[str] = None,
            job_name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            server_name: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetJobResult
def get_job_output(job_agent_name: Optional[pulumi.Input[str]] = None,
            job_name: Optional[pulumi.Input[str]] = None,
            resource_group_name: Optional[pulumi.Input[str]] = None,
            server_name: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetJobResult]
func LookupJob(ctx *Context, args *LookupJobArgs, opts ...InvokeOption) (*LookupJobResult, error)
func LookupJobOutput(ctx *Context, args *LookupJobOutputArgs, opts ...InvokeOption) LookupJobResultOutput

> Note: This function is named LookupJob in the Go SDK.

public static class GetJob 
{
    public static Task<GetJobResult> InvokeAsync(GetJobArgs args, InvokeOptions? opts = null)
    public static Output<GetJobResult> Invoke(GetJobInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetJobResult> getJob(GetJobArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure-native:sql:getJob
  arguments:
    # arguments dictionary

The following arguments are supported:

JobAgentName string

The name of the job agent.

JobName string

The name of the job to get.

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServerName string

The name of the server.

JobAgentName string

The name of the job agent.

JobName string

The name of the job to get.

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServerName string

The name of the server.

jobAgentName String

The name of the job agent.

jobName String

The name of the job to get.

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName String

The name of the server.

jobAgentName string

The name of the job agent.

jobName string

The name of the job to get.

resourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName string

The name of the server.

job_agent_name str

The name of the job agent.

job_name str

The name of the job to get.

resource_group_name str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

server_name str

The name of the server.

jobAgentName String

The name of the job agent.

jobName String

The name of the job to get.

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName String

The name of the server.

getJob Result

The following output properties are available:

Id string

Resource ID.

Name string

Resource name.

Type string

Resource type.

Version int

The job version number.

Description string

User-defined description of the job.

Schedule Pulumi.AzureNative.Sql.Outputs.JobScheduleResponse

Schedule properties of the job.

Id string

Resource ID.

Name string

Resource name.

Type string

Resource type.

Version int

The job version number.

Description string

User-defined description of the job.

Schedule JobScheduleResponse

Schedule properties of the job.

id String

Resource ID.

name String

Resource name.

type String

Resource type.

version Integer

The job version number.

description String

User-defined description of the job.

schedule JobScheduleResponse

Schedule properties of the job.

id string

Resource ID.

name string

Resource name.

type string

Resource type.

version number

The job version number.

description string

User-defined description of the job.

schedule JobScheduleResponse

Schedule properties of the job.

id str

Resource ID.

name str

Resource name.

type str

Resource type.

version int

The job version number.

description str

User-defined description of the job.

schedule JobScheduleResponse

Schedule properties of the job.

id String

Resource ID.

name String

Resource name.

type String

Resource type.

version Number

The job version number.

description String

User-defined description of the job.

schedule Property Map

Schedule properties of the job.

Supporting Types

JobScheduleResponse

Enabled bool

Whether or not the schedule is enabled.

EndTime string

Schedule end time.

Interval string

Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

StartTime string

Schedule start time.

Type string

Schedule interval type

Enabled bool

Whether or not the schedule is enabled.

EndTime string

Schedule end time.

Interval string

Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

StartTime string

Schedule start time.

Type string

Schedule interval type

enabled Boolean

Whether or not the schedule is enabled.

endTime String

Schedule end time.

interval String

Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

startTime String

Schedule start time.

type String

Schedule interval type

enabled boolean

Whether or not the schedule is enabled.

endTime string

Schedule end time.

interval string

Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

startTime string

Schedule start time.

type string

Schedule interval type

enabled bool

Whether or not the schedule is enabled.

end_time str

Schedule end time.

interval str

Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

start_time str

Schedule start time.

type str

Schedule interval type

enabled Boolean

Whether or not the schedule is enabled.

endTime String

Schedule end time.

interval String

Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

startTime String

Schedule start time.

type String

Schedule interval type

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0