azure-native.sql.getJob
Explore with Pulumi AI
Gets a job.
Uses Azure REST API version 2023-08-01.
Other available API versions: 2017-03-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.
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:
- Job
Agent stringName  - The name of the job agent.
 - Job
Name string - The name of the job to get.
 - Resource
Group 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.
 - Server
Name string - The name of the server.
 
- Job
Agent stringName  - The name of the job agent.
 - Job
Name string - The name of the job to get.
 - Resource
Group 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.
 - Server
Name string - The name of the server.
 
- job
Agent StringName  - The name of the job agent.
 - job
Name String - The name of the job to get.
 - resource
Group 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.
 - server
Name String - The name of the server.
 
- job
Agent stringName  - The name of the job agent.
 - job
Name string - The name of the job to get.
 - resource
Group 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.
 - server
Name 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.
 
- job
Agent StringName  - The name of the job agent.
 - job
Name String - The name of the job to get.
 - resource
Group 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.
 - server
Name String - The name of the server.
 
getJob Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - 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.
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - 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
Job
Schedule Response  - Schedule properties of the job.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - 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
Job
Schedule Response  - Schedule properties of the job.
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - 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
Job
Schedule Response  - Schedule properties of the job.
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - 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
Job
Schedule Response  - Schedule properties of the job.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - 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