ibm.getSccControlLibraries
Explore with Pulumi AI
Retrieve information about a list of scc_control_libraries 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 sccControlLibraries = ibm.getSccControlLibraries({
instanceId: "00000000-1111-2222-3333-444444444444",
});
import pulumi
import pulumi_ibm as ibm
scc_control_libraries = ibm.get_scc_control_libraries(instance_id="00000000-1111-2222-3333-444444444444")
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.GetSccControlLibraries(ctx, &ibm.GetSccControlLibrariesArgs{
InstanceId: "00000000-1111-2222-3333-444444444444",
}, 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 sccControlLibraries = Ibm.GetSccControlLibraries.Invoke(new()
{
InstanceId = "00000000-1111-2222-3333-444444444444",
});
});
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.GetSccControlLibrariesArgs;
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 sccControlLibraries = IbmFunctions.getSccControlLibraries(GetSccControlLibrariesArgs.builder()
.instanceId("00000000-1111-2222-3333-444444444444")
.build());
}
}
variables:
sccControlLibraries:
fn::invoke:
function: ibm:getSccControlLibraries
arguments:
instanceId: 00000000-1111-2222-3333-444444444444
Using getSccControlLibraries
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 getSccControlLibraries(args: GetSccControlLibrariesArgs, opts?: InvokeOptions): Promise<GetSccControlLibrariesResult>
function getSccControlLibrariesOutput(args: GetSccControlLibrariesOutputArgs, opts?: InvokeOptions): Output<GetSccControlLibrariesResult>
def get_scc_control_libraries(control_library_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSccControlLibrariesResult
def get_scc_control_libraries_output(control_library_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSccControlLibrariesResult]
func GetSccControlLibraries(ctx *Context, args *GetSccControlLibrariesArgs, opts ...InvokeOption) (*GetSccControlLibrariesResult, error)
func GetSccControlLibrariesOutput(ctx *Context, args *GetSccControlLibrariesOutputArgs, opts ...InvokeOption) GetSccControlLibrariesResultOutput
> Note: This function is named GetSccControlLibraries
in the Go SDK.
public static class GetSccControlLibraries
{
public static Task<GetSccControlLibrariesResult> InvokeAsync(GetSccControlLibrariesArgs args, InvokeOptions? opts = null)
public static Output<GetSccControlLibrariesResult> Invoke(GetSccControlLibrariesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSccControlLibrariesResult> getSccControlLibraries(GetSccControlLibrariesArgs args, InvokeOptions options)
public static Output<GetSccControlLibrariesResult> getSccControlLibraries(GetSccControlLibrariesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSccControlLibraries:getSccControlLibraries
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The ID of the SCC instance in a particular region.
- Control
Library stringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- Id string
- (String) The unique identifier of the scc_control_library.
- Instance
Id string - The ID of the SCC instance in a particular region.
- Control
Library stringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- Id string
- (String) The unique identifier of the scc_control_library.
- instance
Id String - The ID of the SCC instance in a particular region.
- control
Library StringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- id String
- (String) The unique identifier of the scc_control_library.
- instance
Id string - The ID of the SCC instance in a particular region.
- control
Library stringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- id string
- (String) The unique identifier of the scc_control_library.
- instance_
id str - The ID of the SCC instance in a particular region.
- control_
library_ strtype - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- id str
- (String) The unique identifier of the scc_control_library.
- instance
Id String - The ID of the SCC instance in a particular region.
- control
Library StringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- id String
- (String) The unique identifier of the scc_control_library.
getSccControlLibraries Result
The following output properties are available:
- Control
Libraries List<GetScc Control Libraries Control Library> - (List) The list of control libraries.
- Id string
- (String) The unique identifier of the scc_control_library.
- Instance
Id string - Control
Library stringType - (String) The control library type.
- Control
Libraries []GetScc Control Libraries Control Library - (List) The list of control libraries.
- Id string
- (String) The unique identifier of the scc_control_library.
- Instance
Id string - Control
Library stringType - (String) The control library type.
- control
Libraries List<GetScc Control Libraries Control Library> - (List) The list of control libraries.
- id String
- (String) The unique identifier of the scc_control_library.
- instance
Id String - control
Library StringType - (String) The control library type.
- control
Libraries GetScc Control Libraries Control Library[] - (List) The list of control libraries.
- id string
- (String) The unique identifier of the scc_control_library.
- instance
Id string - control
Library stringType - (String) The control library type.
- control_
libraries Sequence[GetScc Control Libraries Control Library] - (List) The list of control libraries.
- id str
- (String) The unique identifier of the scc_control_library.
- instance_
id str - control_
library_ strtype - (String) The control library type.
- control
Libraries List<Property Map> - (List) The list of control libraries.
- id String
- (String) The unique identifier of the scc_control_library.
- instance
Id String - control
Library StringType - (String) The control library type.
Supporting Types
GetSccControlLibrariesControlLibrary
- Account
Id string - (String) The account ID.
- Control
Library stringDescription - (String) The control library description.
- Control
Library stringName - (String) The control library name.
- Control
Library stringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- Control
Library stringVersion - (String) The control library version.
- Controls
Count double - Created
By string - (String) The user who created the control library.
- Created
On string - (String) The date when the control library was created.
- Id string
- (String) The unique identifier of the scc_control_library.
- Latest bool
- Updated
By string - (String) The user who updated the control library.
- Updated
On string - (String) The date when the control library was updated.
- Version
Group stringLabel - (String) The version group label.
- Account
Id string - (String) The account ID.
- Control
Library stringDescription - (String) The control library description.
- Control
Library stringName - (String) The control library name.
- Control
Library stringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- Control
Library stringVersion - (String) The control library version.
- Controls
Count float64 - Created
By string - (String) The user who created the control library.
- Created
On string - (String) The date when the control library was created.
- Id string
- (String) The unique identifier of the scc_control_library.
- Latest bool
- Updated
By string - (String) The user who updated the control library.
- Updated
On string - (String) The date when the control library was updated.
- Version
Group stringLabel - (String) The version group label.
- account
Id String - (String) The account ID.
- control
Library StringDescription - (String) The control library description.
- control
Library StringName - (String) The control library name.
- control
Library StringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- control
Library StringVersion - (String) The control library version.
- controls
Count Double - created
By String - (String) The user who created the control library.
- created
On String - (String) The date when the control library was created.
- id String
- (String) The unique identifier of the scc_control_library.
- latest Boolean
- updated
By String - (String) The user who updated the control library.
- updated
On String - (String) The date when the control library was updated.
- version
Group StringLabel - (String) The version group label.
- account
Id string - (String) The account ID.
- control
Library stringDescription - (String) The control library description.
- control
Library stringName - (String) The control library name.
- control
Library stringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- control
Library stringVersion - (String) The control library version.
- controls
Count number - created
By string - (String) The user who created the control library.
- created
On string - (String) The date when the control library was created.
- id string
- (String) The unique identifier of the scc_control_library.
- latest boolean
- updated
By string - (String) The user who updated the control library.
- updated
On string - (String) The date when the control library was updated.
- version
Group stringLabel - (String) The version group label.
- account_
id str - (String) The account ID.
- control_
library_ strdescription - (String) The control library description.
- control_
library_ strname - (String) The control library name.
- control_
library_ strtype - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- control_
library_ strversion - (String) The control library version.
- controls_
count float - created_
by str - (String) The user who created the control library.
- created_
on str - (String) The date when the control library was created.
- id str
- (String) The unique identifier of the scc_control_library.
- latest bool
- updated_
by str - (String) The user who updated the control library.
- updated_
on str - (String) The date when the control library was updated.
- version_
group_ strlabel - (String) The version group label.
- account
Id String - (String) The account ID.
- control
Library StringDescription - (String) The control library description.
- control
Library StringName - (String) The control library name.
- control
Library StringType - The type of control library to query.
- Constraints: Allowable values are:
predefined
,custom
.
- Constraints: Allowable values are:
- control
Library StringVersion - (String) The control library version.
- controls
Count Number - created
By String - (String) The user who created the control library.
- created
On String - (String) The date when the control library was created.
- id String
- (String) The unique identifier of the scc_control_library.
- latest Boolean
- updated
By String - (String) The user who updated the control library.
- updated
On String - (String) The date when the control library was updated.
- version
Group StringLabel - (String) The version group label.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.