ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCisLogpushJobs
Explore with Pulumi AI
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 arehttp_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:
getCisLogpushJobs Result
The following output properties are available:
- Cis
Id string - Domain
Id string - Id string
- Logpush
Job List<GetPacks Cis Logpush Jobs Logpush Job Pack> - Job
Id double
- Cis
Id string - Domain
Id string - Id string
- Logpush
Job []GetPacks Cis Logpush Jobs Logpush Job Pack - Job
Id float64
- cis
Id String - domain
Id String - id String
- logpush
Job List<GetPacks Cis Logpush Jobs Logpush Job Pack> - job
Id Double
- cis
Id string - domain
Id string - id string
- logpush
Job GetPacks Cis Logpush Jobs Logpush Job Pack[] - job
Id number
- cis
Id String - domain
Id String - id String
- logpush
Job List<Property Map>Packs - job
Id Number
Supporting Types
GetCisLogpushJobsLogpushJobPack
- Dataset string
- Destination
Conf string - Enabled bool
- Error
Message string - Frequency string
- Job
Id double - Logpush Job ID. If
job_id
is not provided you will get the list of jobs. Ifjob_id
is provided you will get the information of the particular job. - Last
Complete string - Last
Error string - Logpull
Options string - Name string
- Dataset string
- Destination
Conf string - Enabled bool
- Error
Message string - Frequency string
- Job
Id float64 - Logpush Job ID. If
job_id
is not provided you will get the list of jobs. Ifjob_id
is provided you will get the information of the particular job. - Last
Complete string - Last
Error string - Logpull
Options string - Name string
- dataset String
- destination
Conf String - enabled Boolean
- error
Message String - frequency String
- job
Id Double - Logpush Job ID. If
job_id
is not provided you will get the list of jobs. Ifjob_id
is provided you will get the information of the particular job. - last
Complete String - last
Error String - logpull
Options String - name String
- dataset string
- destination
Conf string - enabled boolean
- error
Message string - frequency string
- job
Id number - Logpush Job ID. If
job_id
is not provided you will get the list of jobs. Ifjob_id
is provided you will get the information of the particular job. - last
Complete string - last
Error string - logpull
Options 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. Ifjob_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
- destination
Conf String - enabled Boolean
- error
Message String - frequency String
- job
Id Number - Logpush Job ID. If
job_id
is not provided you will get the list of jobs. Ifjob_id
is provided you will get the information of the particular job. - last
Complete String - last
Error String - logpull
Options String - name String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.