ibm.getSccReportTags
Explore with Pulumi AI
Retrieve information about report tags 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 sccReportTags = ibm.getSccReportTags({
instanceId: "00000000-1111-2222-3333-444444444444",
reportId: "report_id",
});
import pulumi
import pulumi_ibm as ibm
scc_report_tags = ibm.get_scc_report_tags(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.GetSccReportTags(ctx, &ibm.GetSccReportTagsArgs{
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 sccReportTags = Ibm.GetSccReportTags.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.GetSccReportTagsArgs;
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 sccReportTags = IbmFunctions.getSccReportTags(GetSccReportTagsArgs.builder()
.instanceId("00000000-1111-2222-3333-444444444444")
.reportId("report_id")
.build());
}
}
variables:
sccReportTags:
fn::invoke:
function: ibm:getSccReportTags
arguments:
instanceId: 00000000-1111-2222-3333-444444444444
reportId: report_id
Using getSccReportTags
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 getSccReportTags(args: GetSccReportTagsArgs, opts?: InvokeOptions): Promise<GetSccReportTagsResult>
function getSccReportTagsOutput(args: GetSccReportTagsOutputArgs, opts?: InvokeOptions): Output<GetSccReportTagsResult>
def get_scc_report_tags(id: Optional[str] = None,
instance_id: Optional[str] = None,
report_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSccReportTagsResult
def get_scc_report_tags_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
report_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSccReportTagsResult]
func GetSccReportTags(ctx *Context, args *GetSccReportTagsArgs, opts ...InvokeOption) (*GetSccReportTagsResult, error)
func GetSccReportTagsOutput(ctx *Context, args *GetSccReportTagsOutputArgs, opts ...InvokeOption) GetSccReportTagsResultOutput
> Note: This function is named GetSccReportTags
in the Go SDK.
public static class GetSccReportTags
{
public static Task<GetSccReportTagsResult> InvokeAsync(GetSccReportTagsArgs args, InvokeOptions? opts = null)
public static Output<GetSccReportTagsResult> Invoke(GetSccReportTagsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSccReportTagsResult> getSccReportTags(GetSccReportTagsArgs args, InvokeOptions options)
public static Output<GetSccReportTagsResult> getSccReportTags(GetSccReportTagsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSccReportTags:getSccReportTags
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_tags.
- 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_tags.
- 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_tags.
- 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_tags.
- 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_tags.
- 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_tags.
getSccReportTags Result
The following output properties are available:
- Id string
- The unique identifier of the scc_report_tags.
- Instance
Id string - Report
Id string - List<Get
Scc Report Tags Tag> - (List) The collection of different types of tags. Nested schema for tags:
- Id string
- The unique identifier of the scc_report_tags.
- Instance
Id string - Report
Id string - []Get
Scc Report Tags Tag - (List) The collection of different types of tags. Nested schema for tags:
- id String
- The unique identifier of the scc_report_tags.
- instance
Id String - report
Id String - List<Get
Scc Report Tags Tag> - (List) The collection of different types of tags. Nested schema for tags:
- id string
- The unique identifier of the scc_report_tags.
- instance
Id string - report
Id string - Get
Scc Report Tags Tag[] - (List) The collection of different types of tags. Nested schema for tags:
- id str
- The unique identifier of the scc_report_tags.
- instance_
id str - report_
id str - Sequence[Get
Scc Report Tags Tag] - (List) The collection of different types of tags. Nested schema for tags:
- id String
- The unique identifier of the scc_report_tags.
- instance
Id String - report
Id String - List<Property Map>
- (List) The collection of different types of tags. Nested schema for tags:
Supporting Types
GetSccReportTagsTag
- Accesses List<string>
- (List) The collection of access tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- Services List<string>
- (List) The collection of service tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- Users List<string>
- (List) The collection of user tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- Accesses []string
- (List) The collection of access tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- Services []string
- (List) The collection of service tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- Users []string
- (List) The collection of user tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- accesses List<String>
- (List) The collection of access tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- services List<String>
- (List) The collection of service tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- users List<String>
- (List) The collection of user tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- accesses string[]
- (List) The collection of access tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- services string[]
- (List) The collection of service tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- users string[]
- (List) The collection of user tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- accesses Sequence[str]
- (List) The collection of access tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- services Sequence[str]
- (List) The collection of service tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- users Sequence[str]
- (List) The collection of user tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- accesses List<String>
- (List) The collection of access tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- services List<String>
- (List) The collection of service tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
- users List<String>
- (List) The collection of user tags.
- Constraints: The maximum length is
100
items. The minimum length is0
items.
- Constraints: The maximum length is
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.