ibm.getSccProviderTypeInstance
Explore with Pulumi AI
Retrieve information about a provider type instance 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
regionto 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 sccProviderTypeInstance = ibm.getSccProviderTypeInstance({
    instanceId: "00000000-1111-2222-3333-444444444444",
    providerTypeId: ibm_scc_provider_type_instance.scc_provider_type_instance.provider_type_id,
    providerTypeInstanceId: ibm_scc_provider_type_instance.scc_provider_type_instance_instance.providerTypeInstanceItem_id,
});
import pulumi
import pulumi_ibm as ibm
scc_provider_type_instance = ibm.get_scc_provider_type_instance(instance_id="00000000-1111-2222-3333-444444444444",
    provider_type_id=ibm_scc_provider_type_instance["scc_provider_type_instance"]["provider_type_id"],
    provider_type_instance_id=ibm_scc_provider_type_instance["scc_provider_type_instance_instance"]["providerTypeInstanceItem_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.LookupSccProviderTypeInstance(ctx, &ibm.LookupSccProviderTypeInstanceArgs{
			InstanceId:             "00000000-1111-2222-3333-444444444444",
			ProviderTypeId:         ibm_scc_provider_type_instance.Scc_provider_type_instance.Provider_type_id,
			ProviderTypeInstanceId: ibm_scc_provider_type_instance.Scc_provider_type_instance_instance.ProviderTypeInstanceItem_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 sccProviderTypeInstance = Ibm.GetSccProviderTypeInstance.Invoke(new()
    {
        InstanceId = "00000000-1111-2222-3333-444444444444",
        ProviderTypeId = ibm_scc_provider_type_instance.Scc_provider_type_instance.Provider_type_id,
        ProviderTypeInstanceId = ibm_scc_provider_type_instance.Scc_provider_type_instance_instance.ProviderTypeInstanceItem_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.GetSccProviderTypeInstanceArgs;
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 sccProviderTypeInstance = IbmFunctions.getSccProviderTypeInstance(GetSccProviderTypeInstanceArgs.builder()
            .instanceId("00000000-1111-2222-3333-444444444444")
            .providerTypeId(ibm_scc_provider_type_instance.scc_provider_type_instance().provider_type_id())
            .providerTypeInstanceId(ibm_scc_provider_type_instance.scc_provider_type_instance_instance().providerTypeInstanceItem_id())
            .build());
    }
}
variables:
  sccProviderTypeInstance:
    fn::invoke:
      function: ibm:getSccProviderTypeInstance
      arguments:
        instanceId: 00000000-1111-2222-3333-444444444444
        providerTypeId: ${ibm_scc_provider_type_instance.scc_provider_type_instance.provider_type_id}
        providerTypeInstanceId: ${ibm_scc_provider_type_instance.scc_provider_type_instance_instance.providerTypeInstanceItem_id}
Using getSccProviderTypeInstance
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 getSccProviderTypeInstance(args: GetSccProviderTypeInstanceArgs, opts?: InvokeOptions): Promise<GetSccProviderTypeInstanceResult>
function getSccProviderTypeInstanceOutput(args: GetSccProviderTypeInstanceOutputArgs, opts?: InvokeOptions): Output<GetSccProviderTypeInstanceResult>def get_scc_provider_type_instance(id: Optional[str] = None,
                                   instance_id: Optional[str] = None,
                                   provider_type_id: Optional[str] = None,
                                   provider_type_instance_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSccProviderTypeInstanceResult
def get_scc_provider_type_instance_output(id: Optional[pulumi.Input[str]] = None,
                                   instance_id: Optional[pulumi.Input[str]] = None,
                                   provider_type_id: Optional[pulumi.Input[str]] = None,
                                   provider_type_instance_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetSccProviderTypeInstanceResult]func LookupSccProviderTypeInstance(ctx *Context, args *LookupSccProviderTypeInstanceArgs, opts ...InvokeOption) (*LookupSccProviderTypeInstanceResult, error)
func LookupSccProviderTypeInstanceOutput(ctx *Context, args *LookupSccProviderTypeInstanceOutputArgs, opts ...InvokeOption) LookupSccProviderTypeInstanceResultOutput> Note: This function is named LookupSccProviderTypeInstance in the Go SDK.
public static class GetSccProviderTypeInstance 
{
    public static Task<GetSccProviderTypeInstanceResult> InvokeAsync(GetSccProviderTypeInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetSccProviderTypeInstanceResult> Invoke(GetSccProviderTypeInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSccProviderTypeInstanceResult> getSccProviderTypeInstance(GetSccProviderTypeInstanceArgs args, InvokeOptions options)
public static Output<GetSccProviderTypeInstanceResult> getSccProviderTypeInstance(GetSccProviderTypeInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getSccProviderTypeInstance:getSccProviderTypeInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Id string - The ID of the SCC instance in a particular region.
 - Provider
Type stringId  - The provider type ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/. 
 - Constraints: The maximum length is 
 - Provider
Type stringInstance Id  - The provider type instance ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/ 
 - Constraints: The maximum length is 
 - Id string
 - The unique identifier of the scc_provider_type_instance.
 
- Instance
Id string - The ID of the SCC instance in a particular region.
 - Provider
Type stringId  - The provider type ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/. 
 - Constraints: The maximum length is 
 - Provider
Type stringInstance Id  - The provider type instance ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/ 
 - Constraints: The maximum length is 
 - Id string
 - The unique identifier of the scc_provider_type_instance.
 
- instance
Id String - The ID of the SCC instance in a particular region.
 - provider
Type StringId  - The provider type ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/. 
 - Constraints: The maximum length is 
 - provider
Type StringInstance Id  - The provider type instance ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/ 
 - Constraints: The maximum length is 
 - id String
 - The unique identifier of the scc_provider_type_instance.
 
- instance
Id string - The ID of the SCC instance in a particular region.
 - provider
Type stringId  - The provider type ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/. 
 - Constraints: The maximum length is 
 - provider
Type stringInstance Id  - The provider type instance ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/ 
 - Constraints: The maximum length is 
 - id string
 - The unique identifier of the scc_provider_type_instance.
 
- instance_
id str - The ID of the SCC instance in a particular region.
 - provider_
type_ strid  - The provider type ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/. 
 - Constraints: The maximum length is 
 - provider_
type_ strinstance_ id  - The provider type instance ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/ 
 - Constraints: The maximum length is 
 - id str
 - The unique identifier of the scc_provider_type_instance.
 
- instance
Id String - The ID of the SCC instance in a particular region.
 - provider
Type StringId  - The provider type ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/. 
 - Constraints: The maximum length is 
 - provider
Type StringInstance Id  - The provider type instance ID.
- Constraints: The maximum length is 
36characters. The minimum length is32characters. The value must match regular expression/^[a-zA-Z0-9 ,\\-_]+$/ 
 - Constraints: The maximum length is 
 - id String
 - The unique identifier of the scc_provider_type_instance.
 
getSccProviderTypeInstance Result
The following output properties are available:
- Attributes Dictionary<string, string>
 - (List) The attributes for connecting to the provider type instance. Nested schema for attributes:
 - Created
At string - (String) The time when the resource was created.
 - Id string
 - The unique identifier of the scc_provider_type_instance.
 - Instance
Id string - Name string
 - (String) The name of the provider type instance.
 - Provider
Type stringId  - Provider
Type stringInstance Id  - Provider
Type stringInstance Item Id  - (String) The unique identifier of the provider type instance.
 - Type string
 - (String) The type of the provider type.
 - Updated
At string - (String) The time when the resource was updated.
 
- Attributes map[string]string
 - (List) The attributes for connecting to the provider type instance. Nested schema for attributes:
 - Created
At string - (String) The time when the resource was created.
 - Id string
 - The unique identifier of the scc_provider_type_instance.
 - Instance
Id string - Name string
 - (String) The name of the provider type instance.
 - Provider
Type stringId  - Provider
Type stringInstance Id  - Provider
Type stringInstance Item Id  - (String) The unique identifier of the provider type instance.
 - Type string
 - (String) The type of the provider type.
 - Updated
At string - (String) The time when the resource was updated.
 
- attributes Map<String,String>
 - (List) The attributes for connecting to the provider type instance. Nested schema for attributes:
 - created
At String - (String) The time when the resource was created.
 - id String
 - The unique identifier of the scc_provider_type_instance.
 - instance
Id String - name String
 - (String) The name of the provider type instance.
 - provider
Type StringId  - provider
Type StringInstance Id  - provider
Type StringInstance Item Id  - (String) The unique identifier of the provider type instance.
 - type String
 - (String) The type of the provider type.
 - updated
At String - (String) The time when the resource was updated.
 
- attributes {[key: string]: string}
 - (List) The attributes for connecting to the provider type instance. Nested schema for attributes:
 - created
At string - (String) The time when the resource was created.
 - id string
 - The unique identifier of the scc_provider_type_instance.
 - instance
Id string - name string
 - (String) The name of the provider type instance.
 - provider
Type stringId  - provider
Type stringInstance Id  - provider
Type stringInstance Item Id  - (String) The unique identifier of the provider type instance.
 - type string
 - (String) The type of the provider type.
 - updated
At string - (String) The time when the resource was updated.
 
- attributes Mapping[str, str]
 - (List) The attributes for connecting to the provider type instance. Nested schema for attributes:
 - created_
at str - (String) The time when the resource was created.
 - id str
 - The unique identifier of the scc_provider_type_instance.
 - instance_
id str - name str
 - (String) The name of the provider type instance.
 - provider_
type_ strid  - provider_
type_ strinstance_ id  - provider_
type_ strinstance_ item_ id  - (String) The unique identifier of the provider type instance.
 - type str
 - (String) The type of the provider type.
 - updated_
at str - (String) The time when the resource was updated.
 
- attributes Map<String>
 - (List) The attributes for connecting to the provider type instance. Nested schema for attributes:
 - created
At String - (String) The time when the resource was created.
 - id String
 - The unique identifier of the scc_provider_type_instance.
 - instance
Id String - name String
 - (String) The name of the provider type instance.
 - provider
Type StringId  - provider
Type StringInstance Id  - provider
Type StringInstance Item Id  - (String) The unique identifier of the provider type instance.
 - type String
 - (String) The type of the provider type.
 - updated
At String - (String) The time when the resource was updated.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.