ibm.SccProviderTypeInstance
Explore with Pulumi AI
Create, update, and delete provider type instances with this resource.
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 sccProviderTypeInstanceInstance = new ibm.SccProviderTypeInstance("sccProviderTypeInstanceInstance", {
instanceId: "00000000-1111-2222-3333-444444444444",
attributes: {
wp_crn: "crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::",
},
providerTypeId: "provider_type_id",
});
import pulumi
import pulumi_ibm as ibm
scc_provider_type_instance_instance = ibm.SccProviderTypeInstance("sccProviderTypeInstanceInstance",
instance_id="00000000-1111-2222-3333-444444444444",
attributes={
"wp_crn": "crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::",
},
provider_type_id="provider_type_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.NewSccProviderTypeInstance(ctx, "sccProviderTypeInstanceInstance", &ibm.SccProviderTypeInstanceArgs{
InstanceId: pulumi.String("00000000-1111-2222-3333-444444444444"),
Attributes: pulumi.StringMap{
"wp_crn": pulumi.String("crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::"),
},
ProviderTypeId: pulumi.String("provider_type_id"),
})
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 sccProviderTypeInstanceInstance = new Ibm.SccProviderTypeInstance("sccProviderTypeInstanceInstance", new()
{
InstanceId = "00000000-1111-2222-3333-444444444444",
Attributes =
{
{ "wp_crn", "crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::" },
},
ProviderTypeId = "provider_type_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SccProviderTypeInstance;
import com.pulumi.ibm.SccProviderTypeInstanceArgs;
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) {
var sccProviderTypeInstanceInstance = new SccProviderTypeInstance("sccProviderTypeInstanceInstance", SccProviderTypeInstanceArgs.builder()
.instanceId("00000000-1111-2222-3333-444444444444")
.attributes(Map.of("wp_crn", "crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::"))
.providerTypeId("provider_type_id")
.build());
}
}
resources:
sccProviderTypeInstanceInstance:
type: ibm:SccProviderTypeInstance
properties:
instanceId: 00000000-1111-2222-3333-444444444444
attributes:
wp_crn: 'crn:v1:staging:public:sysdig-secure:eu-gb:a/14q5SEnVIbwxzvP4AWPCjr2dJg5BAvPb:d1461d1ae-df1eee12fa81812e0-12-aa259::'
providerTypeId: provider_type_id
Create SccProviderTypeInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SccProviderTypeInstance(name: string, args: SccProviderTypeInstanceArgs, opts?: CustomResourceOptions);
@overload
def SccProviderTypeInstance(resource_name: str,
args: SccProviderTypeInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SccProviderTypeInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
provider_type_id: Optional[str] = None,
attributes: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
scc_provider_type_instance_id: Optional[str] = None)
func NewSccProviderTypeInstance(ctx *Context, name string, args SccProviderTypeInstanceArgs, opts ...ResourceOption) (*SccProviderTypeInstance, error)
public SccProviderTypeInstance(string name, SccProviderTypeInstanceArgs args, CustomResourceOptions? opts = null)
public SccProviderTypeInstance(String name, SccProviderTypeInstanceArgs args)
public SccProviderTypeInstance(String name, SccProviderTypeInstanceArgs args, CustomResourceOptions options)
type: ibm:SccProviderTypeInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SccProviderTypeInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SccProviderTypeInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SccProviderTypeInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SccProviderTypeInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SccProviderTypeInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sccProviderTypeInstanceResource = new Ibm.SccProviderTypeInstance("sccProviderTypeInstanceResource", new()
{
InstanceId = "string",
ProviderTypeId = "string",
Attributes =
{
{ "string", "string" },
},
Name = "string",
SccProviderTypeInstanceId = "string",
});
example, err := ibm.NewSccProviderTypeInstance(ctx, "sccProviderTypeInstanceResource", &ibm.SccProviderTypeInstanceArgs{
InstanceId: pulumi.String("string"),
ProviderTypeId: pulumi.String("string"),
Attributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
SccProviderTypeInstanceId: pulumi.String("string"),
})
var sccProviderTypeInstanceResource = new SccProviderTypeInstance("sccProviderTypeInstanceResource", SccProviderTypeInstanceArgs.builder()
.instanceId("string")
.providerTypeId("string")
.attributes(Map.of("string", "string"))
.name("string")
.sccProviderTypeInstanceId("string")
.build());
scc_provider_type_instance_resource = ibm.SccProviderTypeInstance("sccProviderTypeInstanceResource",
instance_id="string",
provider_type_id="string",
attributes={
"string": "string",
},
name="string",
scc_provider_type_instance_id="string")
const sccProviderTypeInstanceResource = new ibm.SccProviderTypeInstance("sccProviderTypeInstanceResource", {
instanceId: "string",
providerTypeId: "string",
attributes: {
string: "string",
},
name: "string",
sccProviderTypeInstanceId: "string",
});
type: ibm:SccProviderTypeInstance
properties:
attributes:
string: string
instanceId: string
name: string
providerTypeId: string
sccProviderTypeInstanceId: string
SccProviderTypeInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SccProviderTypeInstance resource accepts the following input properties:
- Instance
Id string - The ID of the SCC instance in a particular region.
- Provider
Type stringId - The unique identifier of the provider type instance.
- Attributes Dictionary<string, string>
- The attributes for connecting to the provider type instance.
- Name string
- The name for the provider_type instance
- Scc
Provider stringType Instance Id - 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 unique identifier of the provider type instance.
- Attributes map[string]string
- The attributes for connecting to the provider type instance.
- Name string
- The name for the provider_type instance
- Scc
Provider stringType Instance Id - 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 unique identifier of the provider type instance.
- attributes Map<String,String>
- The attributes for connecting to the provider type instance.
- name String
- The name for the provider_type instance
- scc
Provider StringType Instance Id - 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 unique identifier of the provider type instance.
- attributes {[key: string]: string}
- The attributes for connecting to the provider type instance.
- name string
- The name for the provider_type instance
- scc
Provider stringType Instance Id - 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 unique identifier of the provider type instance.
- attributes Mapping[str, str]
- The attributes for connecting to the provider type instance.
- name str
- The name for the provider_type instance
- scc_
provider_ strtype_ instance_ id - 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 unique identifier of the provider type instance.
- attributes Map<String>
- The attributes for connecting to the provider type instance.
- name String
- The name for the provider_type instance
- scc
Provider StringType Instance Id - The unique identifier of the scc_provider_type_instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the SccProviderTypeInstance resource produces the following output properties:
- Created
At string - (String) The time when resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provider
Type stringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- Type string
- (String) The type of the provider type.
- Updated
At string - (String) The time when resource was updated.
- Created
At string - (String) The time when resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provider
Type stringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- Type string
- (String) The type of the provider type.
- Updated
At string - (String) The time when resource was updated.
- created
At String - (String) The time when resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- provider
Type StringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- type String
- (String) The type of the provider type.
- updated
At String - (String) The time when resource was updated.
- created
At string - (String) The time when resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- provider
Type stringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- type string
- (String) The type of the provider type.
- updated
At string - (String) The time when resource was updated.
- created_
at str - (String) The time when resource was created.
- id str
- The provider-assigned unique ID for this managed resource.
- provider_
type_ strinstance_ id - (String) The ID that is associated with the created
provider_type_instance
- type str
- (String) The type of the provider type.
- updated_
at str - (String) The time when resource was updated.
- created
At String - (String) The time when resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- provider
Type StringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- type String
- (String) The type of the provider type.
- updated
At String - (String) The time when resource was updated.
Look up Existing SccProviderTypeInstance Resource
Get an existing SccProviderTypeInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SccProviderTypeInstanceState, opts?: CustomResourceOptions): SccProviderTypeInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attributes: Optional[Mapping[str, str]] = None,
created_at: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
provider_type_id: Optional[str] = None,
provider_type_instance_id: Optional[str] = None,
scc_provider_type_instance_id: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> SccProviderTypeInstance
func GetSccProviderTypeInstance(ctx *Context, name string, id IDInput, state *SccProviderTypeInstanceState, opts ...ResourceOption) (*SccProviderTypeInstance, error)
public static SccProviderTypeInstance Get(string name, Input<string> id, SccProviderTypeInstanceState? state, CustomResourceOptions? opts = null)
public static SccProviderTypeInstance get(String name, Output<String> id, SccProviderTypeInstanceState state, CustomResourceOptions options)
resources: _: type: ibm:SccProviderTypeInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Attributes Dictionary<string, string>
- The attributes for connecting to the provider type instance.
- Created
At string - (String) The time when resource was created.
- Instance
Id string - The ID of the SCC instance in a particular region.
- Name string
- The name for the provider_type instance
- Provider
Type stringId - The unique identifier of the provider type instance.
- Provider
Type stringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- Scc
Provider stringType Instance Id - The unique identifier of the scc_provider_type_instance.
- Type string
- (String) The type of the provider type.
- Updated
At string - (String) The time when resource was updated.
- Attributes map[string]string
- The attributes for connecting to the provider type instance.
- Created
At string - (String) The time when resource was created.
- Instance
Id string - The ID of the SCC instance in a particular region.
- Name string
- The name for the provider_type instance
- Provider
Type stringId - The unique identifier of the provider type instance.
- Provider
Type stringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- Scc
Provider stringType Instance Id - The unique identifier of the scc_provider_type_instance.
- Type string
- (String) The type of the provider type.
- Updated
At string - (String) The time when resource was updated.
- attributes Map<String,String>
- The attributes for connecting to the provider type instance.
- created
At String - (String) The time when resource was created.
- instance
Id String - The ID of the SCC instance in a particular region.
- name String
- The name for the provider_type instance
- provider
Type StringId - The unique identifier of the provider type instance.
- provider
Type StringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- scc
Provider StringType Instance Id - The unique identifier of the scc_provider_type_instance.
- type String
- (String) The type of the provider type.
- updated
At String - (String) The time when resource was updated.
- attributes {[key: string]: string}
- The attributes for connecting to the provider type instance.
- created
At string - (String) The time when resource was created.
- instance
Id string - The ID of the SCC instance in a particular region.
- name string
- The name for the provider_type instance
- provider
Type stringId - The unique identifier of the provider type instance.
- provider
Type stringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- scc
Provider stringType Instance Id - The unique identifier of the scc_provider_type_instance.
- type string
- (String) The type of the provider type.
- updated
At string - (String) The time when resource was updated.
- attributes Mapping[str, str]
- The attributes for connecting to the provider type instance.
- created_
at str - (String) The time when resource was created.
- instance_
id str - The ID of the SCC instance in a particular region.
- name str
- The name for the provider_type instance
- provider_
type_ strid - The unique identifier of the provider type instance.
- provider_
type_ strinstance_ id - (String) The ID that is associated with the created
provider_type_instance
- scc_
provider_ strtype_ instance_ id - The unique identifier of the scc_provider_type_instance.
- type str
- (String) The type of the provider type.
- updated_
at str - (String) The time when resource was updated.
- attributes Map<String>
- The attributes for connecting to the provider type instance.
- created
At String - (String) The time when resource was created.
- instance
Id String - The ID of the SCC instance in a particular region.
- name String
- The name for the provider_type instance
- provider
Type StringId - The unique identifier of the provider type instance.
- provider
Type StringInstance Id - (String) The ID that is associated with the created
provider_type_instance
- scc
Provider StringType Instance Id - The unique identifier of the scc_provider_type_instance.
- type String
- (String) The type of the provider type.
- updated
At String - (String) The time when resource was updated.
Import
You can import the ibm_scc_provider_type_instance
resource by using id
.
The id
property can be formed from instance_id
, provider_type_id
, and provider_type_instance_id
in the following format:
bash
<instance_id>/<provider_type_id>/<provider_type_instance_id>
instance_id
: A string. The instance ID.provider_type_id
: A string. The provider type ID.provider_type_instance_id
: A string. The provider type instance ID.
Syntax
bash
$ pulumi import ibm:index/sccProviderTypeInstance:SccProviderTypeInstance scc_provider_type_instance <instance_id>/<provider_type_id>/<provider_type_instance_id>
Example
bash
$ pulumi import ibm:index/sccProviderTypeInstance:SccProviderTypeInstance scc_provider_type_instance 00000000-1111-2222-3333-444444444444/00000000-1111-2222-3333-444444444444/f3517159-889e-4781-819a-89d89b747c85
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.