1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCisLogpushJobs
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCisLogpushJobs

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about an IBM Cloud Internet Services logpush jobs data sources. For more information, see IBM Cloud Internet Services.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const tests = ibm.getCisLogpushJobs({
        cisId: data.ibm_cis.cis.id,
        domainId: data.ibm_cis_domain.cis_domain.domain_id,
        jobId: data.ibm_cis_domain.logpush_job.job_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    tests = ibm.get_cis_logpush_jobs(cis_id=data["ibm_cis"]["cis"]["id"],
        domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"],
        job_id=data["ibm_cis_domain"]["logpush_job"]["job_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetCisLogpushJobs(ctx, &ibm.GetCisLogpushJobsArgs{
    			CisId:    data.Ibm_cis.Cis.Id,
    			DomainId: data.Ibm_cis_domain.Cis_domain.Domain_id,
    			JobId:    pulumi.Float64Ref(data.Ibm_cis_domain.Logpush_job.Job_id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var tests = Ibm.GetCisLogpushJobs.Invoke(new()
        {
            CisId = data.Ibm_cis.Cis.Id,
            DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
            JobId = data.Ibm_cis_domain.Logpush_job.Job_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCisLogpushJobsArgs;
    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 tests = IbmFunctions.getCisLogpushJobs(GetCisLogpushJobsArgs.builder()
                .cisId(data.ibm_cis().cis().id())
                .domainId(data.ibm_cis_domain().cis_domain().domain_id())
                .jobId(data.ibm_cis_domain().logpush_job().job_id())
                .build());
    
        }
    }
    
    variables:
      tests:
        fn::invoke:
          function: ibm:getCisLogpushJobs
          arguments:
            cisId: ${data.ibm_cis.cis.id}
            domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
            jobId: ${data.ibm_cis_domain.logpush_job.job_id}
    

    Attributes reference

    In addition to all argument reference list, you can access the following attribute references after your data source is created.

    • id - (String) The Logpush Job ID. It is a combination of <job_id>,<cis_id> attributes concatenated with “:”
    • logpush_job_pack - (List)
      • job_id - (String) The Logpush job ID.
      • name - (String) The name of the Logpush job.
      • enabled - (Bool) Whether the logpush job is enabled or not.
      • logpull_options - (String) Configuration string for the Logpush Job.
      • destination_conf - (String) Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
      • dataset - (String) Dataset to be pulled for the Logpush Job. The values are http_requests, range_events, firewall_events.
      • frequency - (String) The frequency at which CIS sends batches of logs to your destination, high, low.
      • last_complete - (String) Records the last time that logs have been successfully pushed.
      • last_error - (String) Records the last time the job failed.
      • error_message - (String) The last failure.

    Using getCisLogpushJobs

    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 getCisLogpushJobs(args: GetCisLogpushJobsArgs, opts?: InvokeOptions): Promise<GetCisLogpushJobsResult>
    function getCisLogpushJobsOutput(args: GetCisLogpushJobsOutputArgs, opts?: InvokeOptions): Output<GetCisLogpushJobsResult>
    def get_cis_logpush_jobs(cis_id: Optional[str] = None,
                             domain_id: Optional[str] = None,
                             id: Optional[str] = None,
                             job_id: Optional[float] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCisLogpushJobsResult
    def get_cis_logpush_jobs_output(cis_id: Optional[pulumi.Input[str]] = None,
                             domain_id: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             job_id: Optional[pulumi.Input[float]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCisLogpushJobsResult]
    func GetCisLogpushJobs(ctx *Context, args *GetCisLogpushJobsArgs, opts ...InvokeOption) (*GetCisLogpushJobsResult, error)
    func GetCisLogpushJobsOutput(ctx *Context, args *GetCisLogpushJobsOutputArgs, opts ...InvokeOption) GetCisLogpushJobsResultOutput

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

    public static class GetCisLogpushJobs 
    {
        public static Task<GetCisLogpushJobsResult> InvokeAsync(GetCisLogpushJobsArgs args, InvokeOptions? opts = null)
        public static Output<GetCisLogpushJobsResult> Invoke(GetCisLogpushJobsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCisLogpushJobsResult> getCisLogpushJobs(GetCisLogpushJobsArgs args, InvokeOptions options)
    public static Output<GetCisLogpushJobsResult> getCisLogpushJobs(GetCisLogpushJobsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCisLogpushJobs:getCisLogpushJobs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CisId string
    The ID of the CIS service instance.
    DomainId string
    The Domain ID of the CIS service instance.
    Id string
    JobId double
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    CisId string
    The ID of the CIS service instance.
    DomainId string
    The Domain ID of the CIS service instance.
    Id string
    JobId float64
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    cisId String
    The ID of the CIS service instance.
    domainId String
    The Domain ID of the CIS service instance.
    id String
    jobId Double
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    cisId string
    The ID of the CIS service instance.
    domainId string
    The Domain ID of the CIS service instance.
    id string
    jobId number
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    cis_id str
    The ID of the CIS service instance.
    domain_id str
    The Domain ID of the CIS service instance.
    id str
    job_id float
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    cisId String
    The ID of the CIS service instance.
    domainId String
    The Domain ID of the CIS service instance.
    id String
    jobId Number
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.

    getCisLogpushJobs Result

    The following output properties are available:

    Supporting Types

    GetCisLogpushJobsLogpushJobPack

    Dataset string
    DestinationConf string
    Enabled bool
    ErrorMessage string
    Frequency string
    JobId double
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    LastComplete string
    LastError string
    LogpullOptions string
    Name string
    Dataset string
    DestinationConf string
    Enabled bool
    ErrorMessage string
    Frequency string
    JobId float64
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    LastComplete string
    LastError string
    LogpullOptions string
    Name string
    dataset String
    destinationConf String
    enabled Boolean
    errorMessage String
    frequency String
    jobId Double
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    lastComplete String
    lastError String
    logpullOptions String
    name String
    dataset string
    destinationConf string
    enabled boolean
    errorMessage string
    frequency string
    jobId number
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    lastComplete string
    lastError string
    logpullOptions string
    name string
    dataset str
    destination_conf str
    enabled bool
    error_message str
    frequency str
    job_id float
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    last_complete str
    last_error str
    logpull_options str
    name str
    dataset String
    destinationConf String
    enabled Boolean
    errorMessage String
    frequency String
    jobId Number
    Logpush Job ID. If job_id is not provided you will get the list of jobs. If job_id is provided you will get the information of the particular job.
    lastComplete String
    lastError String
    logpullOptions String
    name String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud