This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.sql.getJob
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a job. Azure REST API version: 2021-11-01.
Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-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)
public static Output<GetJobResult> getJob(GetJobArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getJob
  arguments:
    # arguments dictionaryThe following arguments are supported:
- JobAgent stringName 
- The name of the job agent.
- JobName string
- The name of the job to get.
- ResourceGroup stringName 
- 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.
- JobAgent stringName 
- The name of the job agent.
- JobName string
- The name of the job to get.
- ResourceGroup stringName 
- 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.
- jobAgent StringName 
- The name of the job agent.
- jobName String
- The name of the job to get.
- resourceGroup StringName 
- 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.
- jobAgent stringName 
- The name of the job agent.
- jobName string
- The name of the job to get.
- resourceGroup stringName 
- 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_ strname 
- The name of the job agent.
- job_name str
- The name of the job to get.
- resource_group_ strname 
- 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.
- jobAgent StringName 
- The name of the job agent.
- jobName String
- The name of the job to get.
- resourceGroup StringName 
- 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.Azure Native. Sql. Outputs. Job Schedule Response 
- 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
JobSchedule Response 
- 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
JobSchedule Response 
- 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
JobSchedule Response 
- 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
JobSchedule Response 
- 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.
- 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
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi