ibm.getSccReportViolationDrift
Explore with Pulumi AI
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:
- Instance
Id string - The ID of the SCC instance in a particular region.
- Report
Id string - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- Id string
- The unique identifier of the scc_report_violation_drift.
- Scan
Time doubleDuration - The duration of the
scan_time
timestamp in number of days.- Constraints: The default value is
0
. The maximum value is366
. The minimum value is0
.
- Constraints: The default value is
- Instance
Id string - The ID of the SCC instance in a particular region.
- Report
Id string - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- Id string
- The unique identifier of the scc_report_violation_drift.
- Scan
Time float64Duration - The duration of the
scan_time
timestamp in number of days.- Constraints: The default value is
0
. The maximum value is366
. The minimum value is0
.
- Constraints: The default value is
- instance
Id String - The ID of the SCC instance in a particular region.
- report
Id String - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- id String
- The unique identifier of the scc_report_violation_drift.
- scan
Time DoubleDuration - The duration of the
scan_time
timestamp in number of days.- Constraints: The default value is
0
. The maximum value is366
. The minimum value is0
.
- Constraints: The default value is
- instance
Id string - The ID of the SCC instance in a particular region.
- report
Id string - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- id string
- The unique identifier of the scc_report_violation_drift.
- scan
Time numberDuration - The duration of the
scan_time
timestamp in number of days.- Constraints: The default value is
0
. The maximum value is366
. The minimum value is0
.
- Constraints: The default value is
- 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 is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- id str
- The unique identifier of the scc_report_violation_drift.
- scan_
time_ floatduration - The duration of the
scan_time
timestamp in number of days.- Constraints: The default value is
0
. The maximum value is366
. The minimum value is0
.
- Constraints: The default value is
- instance
Id String - The ID of the SCC instance in a particular region.
- report
Id String - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- id String
- The unique identifier of the scc_report_violation_drift.
- scan
Time NumberDuration - The duration of the
scan_time
timestamp in number of days.- Constraints: The default value is
0
. The maximum value is366
. The minimum value is0
.
- Constraints: The default value is
getSccReportViolationDrift Result
The following output properties are available:
- Data
Points List<GetScc Report Violation Drift Data Point> - (List) The list of report violations data points.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for data_points:
- Constraints: The maximum length is
- Home
Account stringId - (String) The ID of the home account.
- Id string
- The unique identifier of the scc_report_violation_drift.
- Instance
Id string - Report
Id string - (String) The ID of the report.
- Scan
Time doubleDuration
- Data
Points []GetScc Report Violation Drift Data Point - (List) The list of report violations data points.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for data_points:
- Constraints: The maximum length is
- Home
Account stringId - (String) The ID of the home account.
- Id string
- The unique identifier of the scc_report_violation_drift.
- Instance
Id string - Report
Id string - (String) The ID of the report.
- Scan
Time float64Duration
- data
Points List<GetScc Report Violation Drift Data Point> - (List) The list of report violations data points.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for data_points:
- Constraints: The maximum length is
- home
Account StringId - (String) The ID of the home account.
- id String
- The unique identifier of the scc_report_violation_drift.
- instance
Id String - report
Id String - (String) The ID of the report.
- scan
Time DoubleDuration
- data
Points GetScc Report Violation Drift Data Point[] - (List) The list of report violations data points.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for data_points:
- Constraints: The maximum length is
- home
Account stringId - (String) The ID of the home account.
- id string
- The unique identifier of the scc_report_violation_drift.
- instance
Id string - report
Id string - (String) The ID of the report.
- scan
Time numberDuration
- data_
points Sequence[GetScc Report Violation Drift Data Point] - (List) The list of report violations data points.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for data_points:
- Constraints: The maximum length is
- home_
account_ strid - (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_ floatduration
- data
Points List<Property Map> - (List) The list of report violations data points.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for data_points:
- Constraints: The maximum length is
- home
Account StringId - (String) The ID of the home account.
- id String
- The unique identifier of the scc_report_violation_drift.
- instance
Id String - report
Id String - (String) The ID of the report.
- scan
Time NumberDuration
Supporting Types
GetSccReportViolationDriftDataPoint
- Controls
List<Get
Scc Report Violation Drift Data Point Control> - (List) The compliance stats. Nested schema for controls:
- Report
Group stringId - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- Report
Id string - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- Scan
Time string - (String) The date when the scan was run.
- Controls
[]Get
Scc Report Violation Drift Data Point Control - (List) The compliance stats. Nested schema for controls:
- Report
Group stringId - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- Report
Id string - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- Scan
Time string - (String) The date when the scan was run.
- controls
List<Get
Scc Report Violation Drift Data Point Control> - (List) The compliance stats. Nested schema for controls:
- report
Group StringId - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- report
Id String - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- scan
Time String - (String) The date when the scan was run.
- controls
Get
Scc Report Violation Drift Data Point Control[] - (List) The compliance stats. Nested schema for controls:
- report
Group stringId - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- report
Id string - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- scan
Time string - (String) The date when the scan was run.
- controls
Sequence[Get
Scc Report Violation Drift Data Point Control] - (List) The compliance stats. Nested schema for controls:
- report_
group_ strid - (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 is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- scan_
time str - (String) The date when the scan was run.
- controls List<Property Map>
- (List) The compliance stats. Nested schema for controls:
- report
Group StringId - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- report
Id String - The ID of the scan that is associated with a report.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9\\-]+$/
.
- Constraints: The maximum length is
- scan
Time String - (String) The date when the scan was run.
GetSccReportViolationDriftDataPointControl
- Compliant
Count double - (Integer) The number of compliant checks.
- Not
Compliant doubleCount - (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
.
- Constraints: Allowable values are:
- Total
Count double - (Integer) The total number of checks.
- Unable
To doublePerform Count - (Integer) The number of checks that are unable to perform.
- User
Evaluation doubleRequired Count - (Integer) The number of checks that require a user evaluation.
- Compliant
Count float64 - (Integer) The number of compliant checks.
- Not
Compliant float64Count - (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
.
- Constraints: Allowable values are:
- Total
Count float64 - (Integer) The total number of checks.
- Unable
To float64Perform Count - (Integer) The number of checks that are unable to perform.
- User
Evaluation float64Required Count - (Integer) The number of checks that require a user evaluation.
- compliant
Count Double - (Integer) The number of compliant checks.
- not
Compliant DoubleCount - (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
.
- Constraints: Allowable values are:
- total
Count Double - (Integer) The total number of checks.
- unable
To DoublePerform Count - (Integer) The number of checks that are unable to perform.
- user
Evaluation DoubleRequired Count - (Integer) The number of checks that require a user evaluation.
- compliant
Count number - (Integer) The number of compliant checks.
- not
Compliant numberCount - (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
.
- Constraints: Allowable values are:
- total
Count number - (Integer) The total number of checks.
- unable
To numberPerform Count - (Integer) The number of checks that are unable to perform.
- user
Evaluation numberRequired Count - (Integer) The number of checks that require a user evaluation.
- compliant_
count float - (Integer) The number of compliant checks.
- not_
compliant_ floatcount - (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
.
- Constraints: Allowable values are:
- total_
count float - (Integer) The total number of checks.
- unable_
to_ floatperform_ count - (Integer) The number of checks that are unable to perform.
- user_
evaluation_ floatrequired_ count - (Integer) The number of checks that require a user evaluation.
- compliant
Count Number - (Integer) The number of compliant checks.
- not
Compliant NumberCount - (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
.
- Constraints: Allowable values are:
- total
Count Number - (Integer) The total number of checks.
- unable
To NumberPerform Count - (Integer) The number of checks that are unable to perform.
- user
Evaluation NumberRequired Count - (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.