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.63.0 published on Tuesday, Sep 24, 2024 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.63.0 published on Tuesday, Sep 24, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:sql:getJob
arguments:
# arguments dictionary
The 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:
- 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
Job
Schedule 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
Job
Schedule 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
Job
Schedule 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
Job
Schedule 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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi