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

ibm.getSccReportTags

Explore with Pulumi AI

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

    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:

    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_tags.
    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_tags.
    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_tags.
    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_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 is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-]+$/.
    id str
    The unique identifier of the scc_report_tags.
    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_tags.

    getSccReportTags Result

    The following output properties are available:

    Id string
    The unique identifier of the scc_report_tags.
    InstanceId string
    ReportId string
    Tags List<GetSccReportTagsTag>
    (List) The collection of different types of tags. Nested schema for tags:
    Id string
    The unique identifier of the scc_report_tags.
    InstanceId string
    ReportId string
    Tags []GetSccReportTagsTag
    (List) The collection of different types of tags. Nested schema for tags:
    id String
    The unique identifier of the scc_report_tags.
    instanceId String
    reportId String
    tags List<GetSccReportTagsTag>
    (List) The collection of different types of tags. Nested schema for tags:
    id string
    The unique identifier of the scc_report_tags.
    instanceId string
    reportId string
    tags GetSccReportTagsTag[]
    (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
    tags Sequence[GetSccReportTagsTag]
    (List) The collection of different types of tags. Nested schema for tags:
    id String
    The unique identifier of the scc_report_tags.
    instanceId String
    reportId String
    tags 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 is 0 items.
    Services List<string>
    (List) The collection of service tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    Users List<string>
    (List) The collection of user tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    Accesses []string
    (List) The collection of access tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    Services []string
    (List) The collection of service tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    Users []string
    (List) The collection of user tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    accesses List<String>
    (List) The collection of access tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    services List<String>
    (List) The collection of service tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    users List<String>
    (List) The collection of user tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    accesses string[]
    (List) The collection of access tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    services string[]
    (List) The collection of service tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    users string[]
    (List) The collection of user tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    accesses Sequence[str]
    (List) The collection of access tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    services Sequence[str]
    (List) The collection of service tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    users Sequence[str]
    (List) The collection of user tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    accesses List<String>
    (List) The collection of access tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    services List<String>
    (List) The collection of service tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.
    users List<String>
    (List) The collection of user tags.

    • Constraints: The maximum length is 100 items. The minimum length is 0 items.

    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