1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSccProviderTypeInstance
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

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 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 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func LookupSccProviderTypeInstance(ctx *Context, args *LookupSccProviderTypeInstanceArgs, opts ...InvokeOption) (*LookupSccProviderTypeInstanceResult, error)
func LookupSccProviderTypeInstanceOutput(ctx *Context, args *LookupSccProviderTypeInstanceOutputArgs, opts ...InvokeOption) LookupSccProviderTypeInstanceResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSccProviderTypeInstanceResult> getSccProviderTypeInstance(GetSccProviderTypeInstanceArgs args, InvokeOptions options)
public static Output<GetSccProviderTypeInstanceResult> getSccProviderTypeInstance(GetSccProviderTypeInstanceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getSccProviderTypeInstance:getSccProviderTypeInstance
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The ID of the SCC instance in a particular region.
ProviderTypeId This property is required. string
The provider type ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/.
ProviderTypeInstanceId This property is required. string
The provider type instance ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/
Id string
The unique identifier of the scc_provider_type_instance.
InstanceId This property is required. string
The ID of the SCC instance in a particular region.
ProviderTypeId This property is required. string
The provider type ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/.
ProviderTypeInstanceId This property is required. string
The provider type instance ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/
Id string
The unique identifier of the scc_provider_type_instance.
instanceId This property is required. String
The ID of the SCC instance in a particular region.
providerTypeId This property is required. String
The provider type ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/.
providerTypeInstanceId This property is required. String
The provider type instance ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/
id String
The unique identifier of the scc_provider_type_instance.
instanceId This property is required. string
The ID of the SCC instance in a particular region.
providerTypeId This property is required. string
The provider type ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/.
providerTypeInstanceId This property is required. string
The provider type instance ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/
id string
The unique identifier of the scc_provider_type_instance.
instance_id This property is required. str
The ID of the SCC instance in a particular region.
provider_type_id This property is required. str
The provider type ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/.
provider_type_instance_id This property is required. str
The provider type instance ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/
id str
The unique identifier of the scc_provider_type_instance.
instanceId This property is required. String
The ID of the SCC instance in a particular region.
providerTypeId This property is required. String
The provider type ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/.
providerTypeInstanceId This property is required. String
The provider type instance ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9 ,\\-_]+$/
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:
CreatedAt string
(String) The time when the resource was created.
Id string
The unique identifier of the scc_provider_type_instance.
InstanceId string
Name string
(String) The name of the provider type instance.
ProviderTypeId string
ProviderTypeInstanceId string
ProviderTypeInstanceItemId string
(String) The unique identifier of the provider type instance.
Type string
(String) The type of the provider type.
UpdatedAt 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:
CreatedAt string
(String) The time when the resource was created.
Id string
The unique identifier of the scc_provider_type_instance.
InstanceId string
Name string
(String) The name of the provider type instance.
ProviderTypeId string
ProviderTypeInstanceId string
ProviderTypeInstanceItemId string
(String) The unique identifier of the provider type instance.
Type string
(String) The type of the provider type.
UpdatedAt 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:
createdAt String
(String) The time when the resource was created.
id String
The unique identifier of the scc_provider_type_instance.
instanceId String
name String
(String) The name of the provider type instance.
providerTypeId String
providerTypeInstanceId String
providerTypeInstanceItemId String
(String) The unique identifier of the provider type instance.
type String
(String) The type of the provider type.
updatedAt 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:
createdAt string
(String) The time when the resource was created.
id string
The unique identifier of the scc_provider_type_instance.
instanceId string
name string
(String) The name of the provider type instance.
providerTypeId string
providerTypeInstanceId string
providerTypeInstanceItemId string
(String) The unique identifier of the provider type instance.
type string
(String) The type of the provider type.
updatedAt 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_id str
provider_type_instance_id str
provider_type_instance_item_id str
(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:
createdAt String
(String) The time when the resource was created.
id String
The unique identifier of the scc_provider_type_instance.
instanceId String
name String
(String) The name of the provider type instance.
providerTypeId String
providerTypeInstanceId String
providerTypeInstanceItemId String
(String) The unique identifier of the provider type instance.
type String
(String) The type of the provider type.
updatedAt 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 ibm Terraform Provider.