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

ibm.getSccReportViolationDrift

Explore with Pulumi AI

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

    Retrieve information about a report violation drift from a read-only data source. Then, yo can reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    NOTE: Security Compliance Center is a regional service. Please specify the IBM Cloud Provider attribute region to target another region. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will also override which region is being targeted for all ibm providers(ex. export IBMCLOUD_SCC_API_ENDPOINT=https://eu-es.compliance.cloud.ibm.com).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const sccReportViolationDrift = ibm.getSccReportViolationDrift({
        instanceId: "00000000-1111-2222-3333-444444444444",
        reportId: "report_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scc_report_violation_drift = ibm.get_scc_report_violation_drift(instance_id="00000000-1111-2222-3333-444444444444",
        report_id="report_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.GetSccReportViolationDrift(ctx, &ibm.GetSccReportViolationDriftArgs{
    			InstanceId: "00000000-1111-2222-3333-444444444444",
    			ReportId:   "report_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 sccReportViolationDrift = Ibm.GetSccReportViolationDrift.Invoke(new()
        {
            InstanceId = "00000000-1111-2222-3333-444444444444",
            ReportId = "report_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.GetSccReportViolationDriftArgs;
    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 sccReportViolationDrift = IbmFunctions.getSccReportViolationDrift(GetSccReportViolationDriftArgs.builder()
                .instanceId("00000000-1111-2222-3333-444444444444")
                .reportId("report_id")
                .build());
    
        }
    }
    
    variables:
      sccReportViolationDrift:
        fn::invoke:
          function: ibm:getSccReportViolationDrift
          arguments:
            instanceId: 00000000-1111-2222-3333-444444444444
            reportId: report_id
    

    Using getSccReportViolationDrift

    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 getSccReportViolationDrift(args: GetSccReportViolationDriftArgs, opts?: InvokeOptions): Promise<GetSccReportViolationDriftResult>
    function getSccReportViolationDriftOutput(args: GetSccReportViolationDriftOutputArgs, opts?: InvokeOptions): Output<GetSccReportViolationDriftResult>
    def get_scc_report_violation_drift(id: Optional[str] = None,
                                       instance_id: Optional[str] = None,
                                       report_id: Optional[str] = None,
                                       scan_time_duration: Optional[float] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSccReportViolationDriftResult
    def get_scc_report_violation_drift_output(id: Optional[pulumi.Input[str]] = None,
                                       instance_id: Optional[pulumi.Input[str]] = None,
                                       report_id: Optional[pulumi.Input[str]] = None,
                                       scan_time_duration: Optional[pulumi.Input[float]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSccReportViolationDriftResult]
    func GetSccReportViolationDrift(ctx *Context, args *GetSccReportViolationDriftArgs, opts ...InvokeOption) (*GetSccReportViolationDriftResult, error)
    func GetSccReportViolationDriftOutput(ctx *Context, args *GetSccReportViolationDriftOutputArgs, opts ...InvokeOption) GetSccReportViolationDriftResultOutput

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

    public static class GetSccReportViolationDrift 
    {
        public static Task<GetSccReportViolationDriftResult> InvokeAsync(GetSccReportViolationDriftArgs args, InvokeOptions? opts = null)
        public static Output<GetSccReportViolationDriftResult> Invoke(GetSccReportViolationDriftInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSccReportViolationDriftResult> getSccReportViolationDrift(GetSccReportViolationDriftArgs args, InvokeOptions options)
    public static Output<GetSccReportViolationDriftResult> getSccReportViolationDrift(GetSccReportViolationDriftArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSccReportViolationDrift:getSccReportViolationDrift
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The ID of the SCC instance in a particular region.
    ReportId string
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    Id string
    The unique identifier of the scc_report_violation_drift.
    ScanTimeDuration double
    The duration of the scan_time timestamp in number of days.

    • Constraints: The default value is 0. The maximum value is 366. The minimum value is 0.
    InstanceId string
    The ID of the SCC instance in a particular region.
    ReportId string
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    Id string
    The unique identifier of the scc_report_violation_drift.
    ScanTimeDuration float64
    The duration of the scan_time timestamp in number of days.

    • Constraints: The default value is 0. The maximum value is 366. The minimum value is 0.
    instanceId String
    The ID of the SCC instance in a particular region.
    reportId String
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    id String
    The unique identifier of the scc_report_violation_drift.
    scanTimeDuration Double
    The duration of the scan_time timestamp in number of days.

    • Constraints: The default value is 0. The maximum value is 366. The minimum value is 0.
    instanceId string
    The ID of the SCC instance in a particular region.
    reportId string
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    id string
    The unique identifier of the scc_report_violation_drift.
    scanTimeDuration number
    The duration of the scan_time timestamp in number of days.

    • Constraints: The default value is 0. The maximum value is 366. The minimum value is 0.
    instance_id str
    The ID of the SCC instance in a particular region.
    report_id str
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    id str
    The unique identifier of the scc_report_violation_drift.
    scan_time_duration float
    The duration of the scan_time timestamp in number of days.

    • Constraints: The default value is 0. The maximum value is 366. The minimum value is 0.
    instanceId String
    The ID of the SCC instance in a particular region.
    reportId String
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    id String
    The unique identifier of the scc_report_violation_drift.
    scanTimeDuration Number
    The duration of the scan_time timestamp in number of days.

    • Constraints: The default value is 0. The maximum value is 366. The minimum value is 0.

    getSccReportViolationDrift Result

    The following output properties are available:

    DataPoints List<GetSccReportViolationDriftDataPoint>
    (List) The list of report violations data points.

    • Constraints: The maximum length is 1000 items. The minimum length is 0 items. Nested schema for data_points:
    HomeAccountId string
    (String) The ID of the home account.
    Id string
    The unique identifier of the scc_report_violation_drift.
    InstanceId string
    ReportId string
    (String) The ID of the report.
    ScanTimeDuration double
    DataPoints []GetSccReportViolationDriftDataPoint
    (List) The list of report violations data points.

    • Constraints: The maximum length is 1000 items. The minimum length is 0 items. Nested schema for data_points:
    HomeAccountId string
    (String) The ID of the home account.
    Id string
    The unique identifier of the scc_report_violation_drift.
    InstanceId string
    ReportId string
    (String) The ID of the report.
    ScanTimeDuration float64
    dataPoints List<GetSccReportViolationDriftDataPoint>
    (List) The list of report violations data points.

    • Constraints: The maximum length is 1000 items. The minimum length is 0 items. Nested schema for data_points:
    homeAccountId String
    (String) The ID of the home account.
    id String
    The unique identifier of the scc_report_violation_drift.
    instanceId String
    reportId String
    (String) The ID of the report.
    scanTimeDuration Double
    dataPoints GetSccReportViolationDriftDataPoint[]
    (List) The list of report violations data points.

    • Constraints: The maximum length is 1000 items. The minimum length is 0 items. Nested schema for data_points:
    homeAccountId string
    (String) The ID of the home account.
    id string
    The unique identifier of the scc_report_violation_drift.
    instanceId string
    reportId string
    (String) The ID of the report.
    scanTimeDuration number
    data_points Sequence[GetSccReportViolationDriftDataPoint]
    (List) The list of report violations data points.

    • Constraints: The maximum length is 1000 items. The minimum length is 0 items. Nested schema for data_points:
    home_account_id str
    (String) The ID of the home account.
    id str
    The unique identifier of the scc_report_violation_drift.
    instance_id str
    report_id str
    (String) The ID of the report.
    scan_time_duration float
    dataPoints List<Property Map>
    (List) The list of report violations data points.

    • Constraints: The maximum length is 1000 items. The minimum length is 0 items. Nested schema for data_points:
    homeAccountId String
    (String) The ID of the home account.
    id String
    The unique identifier of the scc_report_violation_drift.
    instanceId String
    reportId String
    (String) The ID of the report.
    scanTimeDuration Number

    Supporting Types

    GetSccReportViolationDriftDataPoint

    Controls List<GetSccReportViolationDriftDataPointControl>
    (List) The compliance stats. Nested schema for controls:
    ReportGroupId string
    (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
    ReportId string
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    ScanTime string
    (String) The date when the scan was run.
    Controls []GetSccReportViolationDriftDataPointControl
    (List) The compliance stats. Nested schema for controls:
    ReportGroupId string
    (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
    ReportId string
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    ScanTime string
    (String) The date when the scan was run.
    controls List<GetSccReportViolationDriftDataPointControl>
    (List) The compliance stats. Nested schema for controls:
    reportGroupId String
    (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
    reportId String
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    scanTime String
    (String) The date when the scan was run.
    controls GetSccReportViolationDriftDataPointControl[]
    (List) The compliance stats. Nested schema for controls:
    reportGroupId string
    (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
    reportId string
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    scanTime string
    (String) The date when the scan was run.
    controls Sequence[GetSccReportViolationDriftDataPointControl]
    (List) The compliance stats. Nested schema for controls:
    report_group_id str
    (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
    report_id str
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    scan_time str
    (String) The date when the scan was run.
    controls List<Property Map>
    (List) The compliance stats. Nested schema for controls:
    reportGroupId String
    (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
    reportId String
    The ID of the scan that is associated with a report.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    scanTime String
    (String) The date when the scan was run.

    GetSccReportViolationDriftDataPointControl

    CompliantCount double
    (Integer) The number of compliant checks.
    NotCompliantCount double
    (Integer) The number of checks that are not compliant.
    Status string
    (String) The allowed values of an aggregated status for controls, specifications, assessments, and resources.

    • Constraints: Allowable values are: compliant, not_compliant, unable_to_perform, user_evaluation_required.
    TotalCount double
    (Integer) The total number of checks.
    UnableToPerformCount double
    (Integer) The number of checks that are unable to perform.
    UserEvaluationRequiredCount double
    (Integer) The number of checks that require a user evaluation.
    CompliantCount float64
    (Integer) The number of compliant checks.
    NotCompliantCount float64
    (Integer) The number of checks that are not compliant.
    Status string
    (String) The allowed values of an aggregated status for controls, specifications, assessments, and resources.

    • Constraints: Allowable values are: compliant, not_compliant, unable_to_perform, user_evaluation_required.
    TotalCount float64
    (Integer) The total number of checks.
    UnableToPerformCount float64
    (Integer) The number of checks that are unable to perform.
    UserEvaluationRequiredCount float64
    (Integer) The number of checks that require a user evaluation.
    compliantCount Double
    (Integer) The number of compliant checks.
    notCompliantCount Double
    (Integer) The number of checks that are not compliant.
    status String
    (String) The allowed values of an aggregated status for controls, specifications, assessments, and resources.

    • Constraints: Allowable values are: compliant, not_compliant, unable_to_perform, user_evaluation_required.
    totalCount Double
    (Integer) The total number of checks.
    unableToPerformCount Double
    (Integer) The number of checks that are unable to perform.
    userEvaluationRequiredCount Double
    (Integer) The number of checks that require a user evaluation.
    compliantCount number
    (Integer) The number of compliant checks.
    notCompliantCount number
    (Integer) The number of checks that are not compliant.
    status string
    (String) The allowed values of an aggregated status for controls, specifications, assessments, and resources.

    • Constraints: Allowable values are: compliant, not_compliant, unable_to_perform, user_evaluation_required.
    totalCount number
    (Integer) The total number of checks.
    unableToPerformCount number
    (Integer) The number of checks that are unable to perform.
    userEvaluationRequiredCount number
    (Integer) The number of checks that require a user evaluation.
    compliant_count float
    (Integer) The number of compliant checks.
    not_compliant_count float
    (Integer) The number of checks that are not compliant.
    status str
    (String) The allowed values of an aggregated status for controls, specifications, assessments, and resources.

    • Constraints: Allowable values are: compliant, not_compliant, unable_to_perform, user_evaluation_required.
    total_count float
    (Integer) The total number of checks.
    unable_to_perform_count float
    (Integer) The number of checks that are unable to perform.
    user_evaluation_required_count float
    (Integer) The number of checks that require a user evaluation.
    compliantCount Number
    (Integer) The number of compliant checks.
    notCompliantCount Number
    (Integer) The number of checks that are not compliant.
    status String
    (String) The allowed values of an aggregated status for controls, specifications, assessments, and resources.

    • Constraints: Allowable values are: compliant, not_compliant, unable_to_perform, user_evaluation_required.
    totalCount Number
    (Integer) The total number of checks.
    unableToPerformCount Number
    (Integer) The number of checks that are unable to perform.
    userEvaluationRequiredCount Number
    (Integer) The number of checks that require a user evaluation.

    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