ibm.ServiceInstance
Explore with Pulumi AI
Create ServiceInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceInstance(name: string, args: ServiceInstanceArgs, opts?: CustomResourceOptions);
@overload
def ServiceInstance(resource_name: str,
args: ServiceInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
plan: Optional[str] = None,
service: Optional[str] = None,
space_guid: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
service_instance_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
wait_time_minutes: Optional[float] = None)
func NewServiceInstance(ctx *Context, name string, args ServiceInstanceArgs, opts ...ResourceOption) (*ServiceInstance, error)
public ServiceInstance(string name, ServiceInstanceArgs args, CustomResourceOptions? opts = null)
public ServiceInstance(String name, ServiceInstanceArgs args)
public ServiceInstance(String name, ServiceInstanceArgs args, CustomResourceOptions options)
type: ibm:ServiceInstance
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 ServiceInstanceArgs
- 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 ServiceInstanceArgs
- 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 ServiceInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceInstanceArgs
- 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 serviceInstanceResource = new Ibm.ServiceInstance("serviceInstanceResource", new()
{
Plan = "string",
Service = "string",
SpaceGuid = "string",
Name = "string",
Parameters =
{
{ "string", "string" },
},
ServiceInstanceId = "string",
Tags = new[]
{
"string",
},
WaitTimeMinutes = 0,
});
example, err := ibm.NewServiceInstance(ctx, "serviceInstanceResource", &ibm.ServiceInstanceArgs{
Plan: pulumi.String("string"),
Service: pulumi.String("string"),
SpaceGuid: pulumi.String("string"),
Name: pulumi.String("string"),
Parameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
ServiceInstanceId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
WaitTimeMinutes: pulumi.Float64(0),
})
var serviceInstanceResource = new ServiceInstance("serviceInstanceResource", ServiceInstanceArgs.builder()
.plan("string")
.service("string")
.spaceGuid("string")
.name("string")
.parameters(Map.of("string", "string"))
.serviceInstanceId("string")
.tags("string")
.waitTimeMinutes(0)
.build());
service_instance_resource = ibm.ServiceInstance("serviceInstanceResource",
plan="string",
service="string",
space_guid="string",
name="string",
parameters={
"string": "string",
},
service_instance_id="string",
tags=["string"],
wait_time_minutes=0)
const serviceInstanceResource = new ibm.ServiceInstance("serviceInstanceResource", {
plan: "string",
service: "string",
spaceGuid: "string",
name: "string",
parameters: {
string: "string",
},
serviceInstanceId: "string",
tags: ["string"],
waitTimeMinutes: 0,
});
type: ibm:ServiceInstance
properties:
name: string
parameters:
string: string
plan: string
service: string
serviceInstanceId: string
spaceGuid: string
tags:
- string
waitTimeMinutes: 0
ServiceInstance 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 ServiceInstance resource accepts the following input properties:
- Plan string
- The plan type of the service
- Service string
- The name of the service offering like speech_to_text, text_to_speech etc
- Space
Guid string - The guid of the space in which the instance will be created
- Name string
- A name for the service instance
- Parameters Dictionary<string, string>
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- Service
Instance stringId - List<string>
- Wait
Time doubleMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- Plan string
- The plan type of the service
- Service string
- The name of the service offering like speech_to_text, text_to_speech etc
- Space
Guid string - The guid of the space in which the instance will be created
- Name string
- A name for the service instance
- Parameters map[string]string
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- Service
Instance stringId - []string
- Wait
Time float64Minutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- plan String
- The plan type of the service
- service String
- The name of the service offering like speech_to_text, text_to_speech etc
- space
Guid String - The guid of the space in which the instance will be created
- name String
- A name for the service instance
- parameters Map<String,String>
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- service
Instance StringId - List<String>
- wait
Time DoubleMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- plan string
- The plan type of the service
- service string
- The name of the service offering like speech_to_text, text_to_speech etc
- space
Guid string - The guid of the space in which the instance will be created
- name string
- A name for the service instance
- parameters {[key: string]: string}
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- service
Instance stringId - string[]
- wait
Time numberMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- plan str
- The plan type of the service
- service str
- The name of the service offering like speech_to_text, text_to_speech etc
- space_
guid str - The guid of the space in which the instance will be created
- name str
- A name for the service instance
- parameters Mapping[str, str]
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- service_
instance_ strid - Sequence[str]
- wait_
time_ floatminutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- plan String
- The plan type of the service
- service String
- The name of the service offering like speech_to_text, text_to_speech etc
- space
Guid String - The guid of the space in which the instance will be created
- name String
- A name for the service instance
- parameters Map<String>
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- service
Instance StringId - List<String>
- wait
Time NumberMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceInstance resource produces the following output properties:
- Credentials Dictionary<string, string>
- The service broker-provided credentials to use this service.
- Dashboard
Url string - Dashboard URL to access resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Keys List<ServiceInstance Service Key> - The service keys asociated with the service instance
- Service
Plan stringGuid - The uniquie identifier of the service offering plan type
- Credentials map[string]string
- The service broker-provided credentials to use this service.
- Dashboard
Url string - Dashboard URL to access resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Keys []ServiceInstance Service Key - The service keys asociated with the service instance
- Service
Plan stringGuid - The uniquie identifier of the service offering plan type
- credentials Map<String,String>
- The service broker-provided credentials to use this service.
- dashboard
Url String - Dashboard URL to access resource.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Keys List<ServiceInstance Service Key> - The service keys asociated with the service instance
- service
Plan StringGuid - The uniquie identifier of the service offering plan type
- credentials {[key: string]: string}
- The service broker-provided credentials to use this service.
- dashboard
Url string - Dashboard URL to access resource.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Keys ServiceInstance Service Key[] - The service keys asociated with the service instance
- service
Plan stringGuid - The uniquie identifier of the service offering plan type
- credentials Mapping[str, str]
- The service broker-provided credentials to use this service.
- dashboard_
url str - Dashboard URL to access resource.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
keys Sequence[ServiceInstance Service Key] - The service keys asociated with the service instance
- service_
plan_ strguid - The uniquie identifier of the service offering plan type
- credentials Map<String>
- The service broker-provided credentials to use this service.
- dashboard
Url String - Dashboard URL to access resource.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Keys List<Property Map> - The service keys asociated with the service instance
- service
Plan StringGuid - The uniquie identifier of the service offering plan type
Look up Existing ServiceInstance Resource
Get an existing ServiceInstance 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?: ServiceInstanceState, opts?: CustomResourceOptions): ServiceInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credentials: Optional[Mapping[str, str]] = None,
dashboard_url: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
plan: Optional[str] = None,
service: Optional[str] = None,
service_instance_id: Optional[str] = None,
service_keys: Optional[Sequence[ServiceInstanceServiceKeyArgs]] = None,
service_plan_guid: Optional[str] = None,
space_guid: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
wait_time_minutes: Optional[float] = None) -> ServiceInstance
func GetServiceInstance(ctx *Context, name string, id IDInput, state *ServiceInstanceState, opts ...ResourceOption) (*ServiceInstance, error)
public static ServiceInstance Get(string name, Input<string> id, ServiceInstanceState? state, CustomResourceOptions? opts = null)
public static ServiceInstance get(String name, Output<String> id, ServiceInstanceState state, CustomResourceOptions options)
resources: _: type: ibm:ServiceInstance 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.
- Credentials Dictionary<string, string>
- The service broker-provided credentials to use this service.
- Dashboard
Url string - Dashboard URL to access resource.
- Name string
- A name for the service instance
- Parameters Dictionary<string, string>
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- Plan string
- The plan type of the service
- Service string
- The name of the service offering like speech_to_text, text_to_speech etc
- Service
Instance stringId - Service
Keys List<ServiceInstance Service Key> - The service keys asociated with the service instance
- Service
Plan stringGuid - The uniquie identifier of the service offering plan type
- Space
Guid string - The guid of the space in which the instance will be created
- List<string>
- Wait
Time doubleMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- Credentials map[string]string
- The service broker-provided credentials to use this service.
- Dashboard
Url string - Dashboard URL to access resource.
- Name string
- A name for the service instance
- Parameters map[string]string
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- Plan string
- The plan type of the service
- Service string
- The name of the service offering like speech_to_text, text_to_speech etc
- Service
Instance stringId - Service
Keys []ServiceInstance Service Key Args - The service keys asociated with the service instance
- Service
Plan stringGuid - The uniquie identifier of the service offering plan type
- Space
Guid string - The guid of the space in which the instance will be created
- []string
- Wait
Time float64Minutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- credentials Map<String,String>
- The service broker-provided credentials to use this service.
- dashboard
Url String - Dashboard URL to access resource.
- name String
- A name for the service instance
- parameters Map<String,String>
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- plan String
- The plan type of the service
- service String
- The name of the service offering like speech_to_text, text_to_speech etc
- service
Instance StringId - service
Keys List<ServiceInstance Service Key> - The service keys asociated with the service instance
- service
Plan StringGuid - The uniquie identifier of the service offering plan type
- space
Guid String - The guid of the space in which the instance will be created
- List<String>
- wait
Time DoubleMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- credentials {[key: string]: string}
- The service broker-provided credentials to use this service.
- dashboard
Url string - Dashboard URL to access resource.
- name string
- A name for the service instance
- parameters {[key: string]: string}
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- plan string
- The plan type of the service
- service string
- The name of the service offering like speech_to_text, text_to_speech etc
- service
Instance stringId - service
Keys ServiceInstance Service Key[] - The service keys asociated with the service instance
- service
Plan stringGuid - The uniquie identifier of the service offering plan type
- space
Guid string - The guid of the space in which the instance will be created
- string[]
- wait
Time numberMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- credentials Mapping[str, str]
- The service broker-provided credentials to use this service.
- dashboard_
url str - Dashboard URL to access resource.
- name str
- A name for the service instance
- parameters Mapping[str, str]
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- plan str
- The plan type of the service
- service str
- The name of the service offering like speech_to_text, text_to_speech etc
- service_
instance_ strid - service_
keys Sequence[ServiceInstance Service Key Args] - The service keys asociated with the service instance
- service_
plan_ strguid - The uniquie identifier of the service offering plan type
- space_
guid str - The guid of the space in which the instance will be created
- Sequence[str]
- wait_
time_ floatminutes - Define timeout to wait for the service instances to succeeded/deleted etc.
- credentials Map<String>
- The service broker-provided credentials to use this service.
- dashboard
Url String - Dashboard URL to access resource.
- name String
- A name for the service instance
- parameters Map<String>
- Arbitrary parameters to pass along to the service broker. Must be a JSON object
- plan String
- The plan type of the service
- service String
- The name of the service offering like speech_to_text, text_to_speech etc
- service
Instance StringId - service
Keys List<Property Map> - The service keys asociated with the service instance
- service
Plan StringGuid - The uniquie identifier of the service offering plan type
- space
Guid String - The guid of the space in which the instance will be created
- List<String>
- wait
Time NumberMinutes - Define timeout to wait for the service instances to succeeded/deleted etc.
Supporting Types
ServiceInstanceServiceKey, ServiceInstanceServiceKeyArgs
- Credentials Dictionary<string, string>
- Name string
- Credentials map[string]string
- Name string
- credentials Map<String,String>
- name String
- credentials {[key: string]: string}
- name string
- credentials Mapping[str, str]
- name str
- credentials Map<String>
- name String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.