1. Packages
  2. Strata Cloud Manager
  3. API Docs
  4. getJobs
Strata Cloud Manager v0.1.1 published on Friday, May 31, 2024 by Pulumi

scm.getJobs

Explore with Pulumi AI

scm logo
Strata Cloud Manager v0.1.1 published on Friday, May 31, 2024 by Pulumi

    Retrieves a config item.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const example = scm.getJobs({});
    
    import pulumi
    import pulumi_scm as scm
    
    example = scm.get_jobs()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scm.GetJobs(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Scm.GetJobs.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetJobsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = ScmFunctions.getJobs();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: scm:getJobs
          Arguments: {}
    

    Using getJobs

    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 getJobs(args: GetJobsArgs, opts?: InvokeOptions): Promise<GetJobsResult>
    function getJobsOutput(args: GetJobsOutputArgs, opts?: InvokeOptions): Output<GetJobsResult>
    def get_jobs(id: Optional[int] = None,
                 opts: Optional[InvokeOptions] = None) -> GetJobsResult
    def get_jobs_output(id: Optional[pulumi.Input[int]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetJobsResult]
    func GetJobs(ctx *Context, args *GetJobsArgs, opts ...InvokeOption) (*GetJobsResult, error)
    func GetJobsOutput(ctx *Context, args *GetJobsOutputArgs, opts ...InvokeOption) GetJobsResultOutput

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

    public static class GetJobs 
    {
        public static Task<GetJobsResult> InvokeAsync(GetJobsArgs args, InvokeOptions? opts = null)
        public static Output<GetJobsResult> Invoke(GetJobsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetJobsResult> getJobs(GetJobsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scm:index/getJobs:getJobs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    The Id param.
    Id int
    The Id param.
    id Integer
    The Id param.
    id number
    The Id param.
    id int
    The Id param.
    id Number
    The Id param.

    getJobs Result

    The following output properties are available:

    Description string
    A description provided by the administrator or service account.
    DeviceName string
    The name of the device.
    EndTs string
    The timestamp indicating when the job was finished.
    Id int
    The Id param.
    JobResult int
    The job result.
    JobStatus int
    The current status of the job.
    JobType int
    The job type.
    ParentId int
    The parent job ID.
    Percent int
    Job completion percentage. Value must be less than or equal to 100.
    ResultStr string
    The result of the job. String must be one of these: "OK", "FAIL", "PEND", "WAIT", "CANCELLED".
    StartTs string
    The timestamp indicating when the job was created.
    StatusStr string
    The current status of the job. String must be one of these: "ACT", "FIN", "PEND", "PUSHSENT", "PUSHFAIL".
    Summary string
    The completion summary of the job.
    Tfid string
    TypeStr string
    The job type. String must be one of these: "CommitAll", "CommitAndPush", "NGFW-Bootstrap-Push", "Validate".
    Uname string
    The administrator or service account that created the job.
    Description string
    A description provided by the administrator or service account.
    DeviceName string
    The name of the device.
    EndTs string
    The timestamp indicating when the job was finished.
    Id int
    The Id param.
    JobResult int
    The job result.
    JobStatus int
    The current status of the job.
    JobType int
    The job type.
    ParentId int
    The parent job ID.
    Percent int
    Job completion percentage. Value must be less than or equal to 100.
    ResultStr string
    The result of the job. String must be one of these: "OK", "FAIL", "PEND", "WAIT", "CANCELLED".
    StartTs string
    The timestamp indicating when the job was created.
    StatusStr string
    The current status of the job. String must be one of these: "ACT", "FIN", "PEND", "PUSHSENT", "PUSHFAIL".
    Summary string
    The completion summary of the job.
    Tfid string
    TypeStr string
    The job type. String must be one of these: "CommitAll", "CommitAndPush", "NGFW-Bootstrap-Push", "Validate".
    Uname string
    The administrator or service account that created the job.
    description String
    A description provided by the administrator or service account.
    deviceName String
    The name of the device.
    endTs String
    The timestamp indicating when the job was finished.
    id Integer
    The Id param.
    jobResult Integer
    The job result.
    jobStatus Integer
    The current status of the job.
    jobType Integer
    The job type.
    parentId Integer
    The parent job ID.
    percent Integer
    Job completion percentage. Value must be less than or equal to 100.
    resultStr String
    The result of the job. String must be one of these: "OK", "FAIL", "PEND", "WAIT", "CANCELLED".
    startTs String
    The timestamp indicating when the job was created.
    statusStr String
    The current status of the job. String must be one of these: "ACT", "FIN", "PEND", "PUSHSENT", "PUSHFAIL".
    summary String
    The completion summary of the job.
    tfid String
    typeStr String
    The job type. String must be one of these: "CommitAll", "CommitAndPush", "NGFW-Bootstrap-Push", "Validate".
    uname String
    The administrator or service account that created the job.
    description string
    A description provided by the administrator or service account.
    deviceName string
    The name of the device.
    endTs string
    The timestamp indicating when the job was finished.
    id number
    The Id param.
    jobResult number
    The job result.
    jobStatus number
    The current status of the job.
    jobType number
    The job type.
    parentId number
    The parent job ID.
    percent number
    Job completion percentage. Value must be less than or equal to 100.
    resultStr string
    The result of the job. String must be one of these: "OK", "FAIL", "PEND", "WAIT", "CANCELLED".
    startTs string
    The timestamp indicating when the job was created.
    statusStr string
    The current status of the job. String must be one of these: "ACT", "FIN", "PEND", "PUSHSENT", "PUSHFAIL".
    summary string
    The completion summary of the job.
    tfid string
    typeStr string
    The job type. String must be one of these: "CommitAll", "CommitAndPush", "NGFW-Bootstrap-Push", "Validate".
    uname string
    The administrator or service account that created the job.
    description str
    A description provided by the administrator or service account.
    device_name str
    The name of the device.
    end_ts str
    The timestamp indicating when the job was finished.
    id int
    The Id param.
    job_result int
    The job result.
    job_status int
    The current status of the job.
    job_type int
    The job type.
    parent_id int
    The parent job ID.
    percent int
    Job completion percentage. Value must be less than or equal to 100.
    result_str str
    The result of the job. String must be one of these: "OK", "FAIL", "PEND", "WAIT", "CANCELLED".
    start_ts str
    The timestamp indicating when the job was created.
    status_str str
    The current status of the job. String must be one of these: "ACT", "FIN", "PEND", "PUSHSENT", "PUSHFAIL".
    summary str
    The completion summary of the job.
    tfid str
    type_str str
    The job type. String must be one of these: "CommitAll", "CommitAndPush", "NGFW-Bootstrap-Push", "Validate".
    uname str
    The administrator or service account that created the job.
    description String
    A description provided by the administrator or service account.
    deviceName String
    The name of the device.
    endTs String
    The timestamp indicating when the job was finished.
    id Number
    The Id param.
    jobResult Number
    The job result.
    jobStatus Number
    The current status of the job.
    jobType Number
    The job type.
    parentId Number
    The parent job ID.
    percent Number
    Job completion percentage. Value must be less than or equal to 100.
    resultStr String
    The result of the job. String must be one of these: "OK", "FAIL", "PEND", "WAIT", "CANCELLED".
    startTs String
    The timestamp indicating when the job was created.
    statusStr String
    The current status of the job. String must be one of these: "ACT", "FIN", "PEND", "PUSHSENT", "PUSHFAIL".
    summary String
    The completion summary of the job.
    tfid String
    typeStr String
    The job type. String must be one of these: "CommitAll", "CommitAndPush", "NGFW-Bootstrap-Push", "Validate".
    uname String
    The administrator or service account that created the job.

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.1.1 published on Friday, May 31, 2024 by Pulumi