ibm.getSccReport
Explore with Pulumi AI
Retrieve information about a report from a read-only data source. Then, you 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 sccReport = ibm.getSccReport({
instanceId: "00000000-1111-2222-3333-444444444444",
reportId: "report_id",
});
import pulumi
import pulumi_ibm as ibm
scc_report = ibm.get_scc_report(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.GetSccReport(ctx, &ibm.GetSccReportArgs{
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 sccReport = Ibm.GetSccReport.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.GetSccReportArgs;
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 sccReport = IbmFunctions.getSccReport(GetSccReportArgs.builder()
.instanceId("00000000-1111-2222-3333-444444444444")
.reportId("report_id")
.build());
}
}
variables:
sccReport:
fn::invoke:
function: ibm:getSccReport
arguments:
instanceId: 00000000-1111-2222-3333-444444444444
reportId: report_id
Using getSccReport
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 getSccReport(args: GetSccReportArgs, opts?: InvokeOptions): Promise<GetSccReportResult>
function getSccReportOutput(args: GetSccReportOutputArgs, opts?: InvokeOptions): Output<GetSccReportResult>
def get_scc_report(instance_id: Optional[str] = None,
report_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSccReportResult
def get_scc_report_output(instance_id: Optional[pulumi.Input[str]] = None,
report_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSccReportResult]
func GetSccReport(ctx *Context, args *GetSccReportArgs, opts ...InvokeOption) (*GetSccReportResult, error)
func GetSccReportOutput(ctx *Context, args *GetSccReportOutputArgs, opts ...InvokeOption) GetSccReportResultOutput
> Note: This function is named GetSccReport
in the Go SDK.
public static class GetSccReport
{
public static Task<GetSccReportResult> InvokeAsync(GetSccReportArgs args, InvokeOptions? opts = null)
public static Output<GetSccReportResult> Invoke(GetSccReportInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSccReportResult> getSccReport(GetSccReportArgs args, InvokeOptions options)
public static Output<GetSccReportResult> getSccReport(GetSccReportArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSccReport:getSccReport
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
- 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
- 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
- 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
- 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
- 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
getSccReport Result
The following output properties are available:
- Accounts
List<Get
Scc Report Account> - (List) The account that is associated with a report. Nested schema for account:
- Attachments
List<Get
Scc Report Attachment> - (List) The attachment that is associated with a report. Nested schema for attachment:
- Cos
Object string - (String) The Cloud Object Storage object that is associated with the report.
- Created
On string - (String) The date when the report was created.
- Group
Id string - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- Id string
- (String) The profile ID.
- Instance
Id string - (String) Instance ID.
- Profiles
List<Get
Scc Report Profile> - (List) The profile information. Nested schema for profile:
- Report
Id string - Scan
Time string - (String) The date when the scan was run.
- Type string
- (String) The type of the scan.
- Accounts
[]Get
Scc Report Account - (List) The account that is associated with a report. Nested schema for account:
- Attachments
[]Get
Scc Report Attachment - (List) The attachment that is associated with a report. Nested schema for attachment:
- Cos
Object string - (String) The Cloud Object Storage object that is associated with the report.
- Created
On string - (String) The date when the report was created.
- Group
Id string - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- Id string
- (String) The profile ID.
- Instance
Id string - (String) Instance ID.
- Profiles
[]Get
Scc Report Profile - (List) The profile information. Nested schema for profile:
- Report
Id string - Scan
Time string - (String) The date when the scan was run.
- Type string
- (String) The type of the scan.
- accounts
List<Get
Scc Report Account> - (List) The account that is associated with a report. Nested schema for account:
- attachments
List<Get
Scc Report Attachment> - (List) The attachment that is associated with a report. Nested schema for attachment:
- cos
Object String - (String) The Cloud Object Storage object that is associated with the report.
- created
On String - (String) The date when the report was created.
- group
Id String - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- id String
- (String) The profile ID.
- instance
Id String - (String) Instance ID.
- profiles
List<Get
Scc Report Profile> - (List) The profile information. Nested schema for profile:
- report
Id String - scan
Time String - (String) The date when the scan was run.
- type String
- (String) The type of the scan.
- accounts
Get
Scc Report Account[] - (List) The account that is associated with a report. Nested schema for account:
- attachments
Get
Scc Report Attachment[] - (List) The attachment that is associated with a report. Nested schema for attachment:
- cos
Object string - (String) The Cloud Object Storage object that is associated with the report.
- created
On string - (String) The date when the report was created.
- group
Id string - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- id string
- (String) The profile ID.
- instance
Id string - (String) Instance ID.
- profiles
Get
Scc Report Profile[] - (List) The profile information. Nested schema for profile:
- report
Id string - scan
Time string - (String) The date when the scan was run.
- type string
- (String) The type of the scan.
- accounts
Sequence[Get
Scc Report Account] - (List) The account that is associated with a report. Nested schema for account:
- attachments
Sequence[Get
Scc Report Attachment] - (List) The attachment that is associated with a report. Nested schema for attachment:
- cos_
object str - (String) The Cloud Object Storage object that is associated with the report.
- created_
on str - (String) The date when the report was created.
- group_
id str - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- id str
- (String) The profile ID.
- instance_
id str - (String) Instance ID.
- profiles
Sequence[Get
Scc Report Profile] - (List) The profile information. Nested schema for profile:
- report_
id str - scan_
time str - (String) The date when the scan was run.
- type str
- (String) The type of the scan.
- accounts List<Property Map>
- (List) The account that is associated with a report. Nested schema for account:
- attachments List<Property Map>
- (List) The attachment that is associated with a report. Nested schema for attachment:
- cos
Object String - (String) The Cloud Object Storage object that is associated with the report.
- created
On String - (String) The date when the report was created.
- group
Id String - (String) The group ID that is associated with the report. The group ID combines profile, scope, and attachment IDs.
- id String
- (String) The profile ID.
- instance
Id String - (String) Instance ID.
- profiles List<Property Map>
- (List) The profile information. Nested schema for profile:
- report
Id String - scan
Time String - (String) The date when the scan was run.
- type String
- (String) The type of the scan.
Supporting Types
GetSccReportAccount
GetSccReportAttachment
- Description string
- (String) The description of the attachment.
- Id string
- (String) The profile ID.
- Name string
- (String) The profile name.
- Schedule string
- (String) The attachment schedule.
- Scopes
List<Get
Scc Report Attachment Scope> - (List) The scope of the attachment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for scope:
- Constraints: The maximum length is
- Description string
- (String) The description of the attachment.
- Id string
- (String) The profile ID.
- Name string
- (String) The profile name.
- Schedule string
- (String) The attachment schedule.
- Scopes
[]Get
Scc Report Attachment Scope - (List) The scope of the attachment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for scope:
- Constraints: The maximum length is
- description String
- (String) The description of the attachment.
- id String
- (String) The profile ID.
- name String
- (String) The profile name.
- schedule String
- (String) The attachment schedule.
- scopes
List<Get
Scc Report Attachment Scope> - (List) The scope of the attachment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for scope:
- Constraints: The maximum length is
- description string
- (String) The description of the attachment.
- id string
- (String) The profile ID.
- name string
- (String) The profile name.
- schedule string
- (String) The attachment schedule.
- scopes
Get
Scc Report Attachment Scope[] - (List) The scope of the attachment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for scope:
- Constraints: The maximum length is
- description str
- (String) The description of the attachment.
- id str
- (String) The profile ID.
- name str
- (String) The profile name.
- schedule str
- (String) The attachment schedule.
- scopes
Sequence[Get
Scc Report Attachment Scope] - (List) The scope of the attachment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for scope:
- Constraints: The maximum length is
- description String
- (String) The description of the attachment.
- id String
- (String) The profile ID.
- name String
- (String) The profile name.
- schedule String
- (String) The attachment schedule.
- scopes List<Property Map>
- (List) The scope of the attachment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for scope:
- Constraints: The maximum length is
GetSccReportAttachmentScope
- Environment string
- (String) The environment that relates to this scope.
- Id string
- (String) The profile ID.
- Properties
List<Get
Scc Report Attachment Scope Property> - (List) The properties that are supported for scoping by this environment.
- Constraints: The maximum length is
99999
items. The minimum length is0
items. Nested schema for properties:
- Constraints: The maximum length is
- Environment string
- (String) The environment that relates to this scope.
- Id string
- (String) The profile ID.
- Properties
[]Get
Scc Report Attachment Scope Property - (List) The properties that are supported for scoping by this environment.
- Constraints: The maximum length is
99999
items. The minimum length is0
items. Nested schema for properties:
- Constraints: The maximum length is
- environment String
- (String) The environment that relates to this scope.
- id String
- (String) The profile ID.
- properties
List<Get
Scc Report Attachment Scope Property> - (List) The properties that are supported for scoping by this environment.
- Constraints: The maximum length is
99999
items. The minimum length is0
items. Nested schema for properties:
- Constraints: The maximum length is
- environment string
- (String) The environment that relates to this scope.
- id string
- (String) The profile ID.
- properties
Get
Scc Report Attachment Scope Property[] - (List) The properties that are supported for scoping by this environment.
- Constraints: The maximum length is
99999
items. The minimum length is0
items. Nested schema for properties:
- Constraints: The maximum length is
- environment str
- (String) The environment that relates to this scope.
- id str
- (String) The profile ID.
- properties
Sequence[Get
Scc Report Attachment Scope Property] - (List) The properties that are supported for scoping by this environment.
- Constraints: The maximum length is
99999
items. The minimum length is0
items. Nested schema for properties:
- Constraints: The maximum length is
- environment String
- (String) The environment that relates to this scope.
- id String
- (String) The profile ID.
- properties List<Property Map>
- (List) The properties that are supported for scoping by this environment.
- Constraints: The maximum length is
99999
items. The minimum length is0
items. Nested schema for properties:
- Constraints: The maximum length is
GetSccReportAttachmentScopeProperty
GetSccReportProfile
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.