1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. ServiceCredentialBinding
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry

    Service credential bindings are used to make the details of the connection to a service instance available to an app or a developer. Service credential bindings can be of type app or key. A service credential binding is of type app when it is a binding between a service instance and an application Not all services support this binding, as some services deliver value to users directly without integration with an application. Field broker_catalog.features.bindable from service plan of the service instance can be used to determine if it is bindable. A service credential binding is of type key when it only retrieves the details of the service instance and makes them available to the developer.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const scb7 = new cloudfoundry.ServiceCredentialBinding("scb7", {
        type: "app",
        name: "hifi",
        serviceInstance: "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
        app: "ec6ac2b3-fb79-43c4-9734-000d4299bd59",
    });
    const scb1 = new cloudfoundry.ServiceCredentialBinding("scb1", {
        type: "key",
        name: "hifi",
        serviceInstance: "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
    });
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    scb7 = cloudfoundry.ServiceCredentialBinding("scb7",
        type="app",
        name="hifi",
        service_instance="e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
        app="ec6ac2b3-fb79-43c4-9734-000d4299bd59")
    scb1 = cloudfoundry.ServiceCredentialBinding("scb1",
        type="key",
        name="hifi",
        service_instance="e9ec29ca-993d-42e2-9c5b-cb17b1972cce")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfoundry.NewServiceCredentialBinding(ctx, "scb7", &cloudfoundry.ServiceCredentialBindingArgs{
    			Type:            pulumi.String("app"),
    			Name:            pulumi.String("hifi"),
    			ServiceInstance: pulumi.String("e9ec29ca-993d-42e2-9c5b-cb17b1972cce"),
    			App:             pulumi.String("ec6ac2b3-fb79-43c4-9734-000d4299bd59"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudfoundry.NewServiceCredentialBinding(ctx, "scb1", &cloudfoundry.ServiceCredentialBindingArgs{
    			Type:            pulumi.String("key"),
    			Name:            pulumi.String("hifi"),
    			ServiceInstance: pulumi.String("e9ec29ca-993d-42e2-9c5b-cb17b1972cce"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var scb7 = new Cloudfoundry.ServiceCredentialBinding("scb7", new()
        {
            Type = "app",
            Name = "hifi",
            ServiceInstance = "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
            App = "ec6ac2b3-fb79-43c4-9734-000d4299bd59",
        });
    
        var scb1 = new Cloudfoundry.ServiceCredentialBinding("scb1", new()
        {
            Type = "key",
            Name = "hifi",
            ServiceInstance = "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudfoundry.ServiceCredentialBinding;
    import com.pulumi.cloudfoundry.ServiceCredentialBindingArgs;
    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 scb7 = new ServiceCredentialBinding("scb7", ServiceCredentialBindingArgs.builder()
                .type("app")
                .name("hifi")
                .serviceInstance("e9ec29ca-993d-42e2-9c5b-cb17b1972cce")
                .app("ec6ac2b3-fb79-43c4-9734-000d4299bd59")
                .build());
    
            var scb1 = new ServiceCredentialBinding("scb1", ServiceCredentialBindingArgs.builder()
                .type("key")
                .name("hifi")
                .serviceInstance("e9ec29ca-993d-42e2-9c5b-cb17b1972cce")
                .build());
    
        }
    }
    
    resources:
      scb7:
        type: cloudfoundry:ServiceCredentialBinding
        properties:
          type: app
          name: hifi
          serviceInstance: e9ec29ca-993d-42e2-9c5b-cb17b1972cce
          app: ec6ac2b3-fb79-43c4-9734-000d4299bd59
      scb1:
        type: cloudfoundry:ServiceCredentialBinding
        properties:
          type: key
          name: hifi
          serviceInstance: e9ec29ca-993d-42e2-9c5b-cb17b1972cce
    
    Example coming soon!
    

    Create ServiceCredentialBinding Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceCredentialBinding(name: string, args: ServiceCredentialBindingArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceCredentialBinding(resource_name: str,
                                 args: ServiceCredentialBindingArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceCredentialBinding(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 service_instance: Optional[str] = None,
                                 type: Optional[str] = None,
                                 annotations: Optional[Mapping[str, str]] = None,
                                 app: Optional[str] = None,
                                 labels: Optional[Mapping[str, str]] = None,
                                 name: Optional[str] = None,
                                 parameters: Optional[str] = None)
    func NewServiceCredentialBinding(ctx *Context, name string, args ServiceCredentialBindingArgs, opts ...ResourceOption) (*ServiceCredentialBinding, error)
    public ServiceCredentialBinding(string name, ServiceCredentialBindingArgs args, CustomResourceOptions? opts = null)
    public ServiceCredentialBinding(String name, ServiceCredentialBindingArgs args)
    public ServiceCredentialBinding(String name, ServiceCredentialBindingArgs args, CustomResourceOptions options)
    
    type: cloudfoundry:ServiceCredentialBinding
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudfoundry_service_credential_binding" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ServiceCredentialBindingArgs
    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 ServiceCredentialBindingArgs
    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 ServiceCredentialBindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceCredentialBindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceCredentialBindingArgs
    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 serviceCredentialBindingResource = new Cloudfoundry.ServiceCredentialBinding("serviceCredentialBindingResource", new()
    {
        ServiceInstance = "string",
        Type = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        App = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Parameters = "string",
    });
    
    example, err := cloudfoundry.NewServiceCredentialBinding(ctx, "serviceCredentialBindingResource", &cloudfoundry.ServiceCredentialBindingArgs{
    	ServiceInstance: pulumi.String("string"),
    	Type:            pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	App: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:       pulumi.String("string"),
    	Parameters: pulumi.String("string"),
    })
    
    resource "cloudfoundry_service_credential_binding" "serviceCredentialBindingResource" {
      lifecycle {
        create_before_destroy = true
      }
      service_instance = "string"
      type             = "string"
      annotations = {
        "string" = "string"
      }
      app = "string"
      labels = {
        "string" = "string"
      }
      name       = "string"
      parameters = "string"
    }
    
    var serviceCredentialBindingResource = new ServiceCredentialBinding("serviceCredentialBindingResource", ServiceCredentialBindingArgs.builder()
        .serviceInstance("string")
        .type("string")
        .annotations(Map.of("string", "string"))
        .app("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .parameters("string")
        .build());
    
    service_credential_binding_resource = cloudfoundry.ServiceCredentialBinding("serviceCredentialBindingResource",
        service_instance="string",
        type="string",
        annotations={
            "string": "string",
        },
        app="string",
        labels={
            "string": "string",
        },
        name="string",
        parameters="string")
    
    const serviceCredentialBindingResource = new cloudfoundry.ServiceCredentialBinding("serviceCredentialBindingResource", {
        serviceInstance: "string",
        type: "string",
        annotations: {
            string: "string",
        },
        app: "string",
        labels: {
            string: "string",
        },
        name: "string",
        parameters: "string",
    });
    
    type: cloudfoundry:ServiceCredentialBinding
    properties:
        annotations:
            string: string
        app: string
        labels:
            string: string
        name: string
        parameters: string
        serviceInstance: string
        type: string
    

    ServiceCredentialBinding 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 ServiceCredentialBinding resource accepts the following input properties:

    ServiceInstance string
    The GUID of the service instance to be bound
    Type string
    Type of the service credential binding. Either app or key.
    Annotations Dictionary<string, string>
    The annotations associated with Cloud Foundry resources. Add as described here.
    App string
    The GUID of the app to be bound. Required when type is app
    Labels Dictionary<string, string>
    The labels associated with Cloud Foundry resources. Add as described here.
    Name string
    Name of the service credential binding. name is optional when the type is app
    Parameters string
    A JSON object that is passed to the service broker for managed service instance.
    ServiceInstance string
    The GUID of the service instance to be bound
    Type string
    Type of the service credential binding. Either app or key.
    Annotations map[string]string
    The annotations associated with Cloud Foundry resources. Add as described here.
    App string
    The GUID of the app to be bound. Required when type is app
    Labels map[string]string
    The labels associated with Cloud Foundry resources. Add as described here.
    Name string
    Name of the service credential binding. name is optional when the type is app
    Parameters string
    A JSON object that is passed to the service broker for managed service instance.
    service_instance string
    The GUID of the service instance to be bound
    type string
    Type of the service credential binding. Either app or key.
    annotations map(string)
    The annotations associated with Cloud Foundry resources. Add as described here.
    app string
    The GUID of the app to be bound. Required when type is app
    labels map(string)
    The labels associated with Cloud Foundry resources. Add as described here.
    name string
    Name of the service credential binding. name is optional when the type is app
    parameters string
    A JSON object that is passed to the service broker for managed service instance.
    serviceInstance String
    The GUID of the service instance to be bound
    type String
    Type of the service credential binding. Either app or key.
    annotations Map<String,String>
    The annotations associated with Cloud Foundry resources. Add as described here.
    app String
    The GUID of the app to be bound. Required when type is app
    labels Map<String,String>
    The labels associated with Cloud Foundry resources. Add as described here.
    name String
    Name of the service credential binding. name is optional when the type is app
    parameters String
    A JSON object that is passed to the service broker for managed service instance.
    serviceInstance string
    The GUID of the service instance to be bound
    type string
    Type of the service credential binding. Either app or key.
    annotations {[key: string]: string}
    The annotations associated with Cloud Foundry resources. Add as described here.
    app string
    The GUID of the app to be bound. Required when type is app
    labels {[key: string]: string}
    The labels associated with Cloud Foundry resources. Add as described here.
    name string
    Name of the service credential binding. name is optional when the type is app
    parameters string
    A JSON object that is passed to the service broker for managed service instance.
    service_instance str
    The GUID of the service instance to be bound
    type str
    Type of the service credential binding. Either app or key.
    annotations Mapping[str, str]
    The annotations associated with Cloud Foundry resources. Add as described here.
    app str
    The GUID of the app to be bound. Required when type is app
    labels Mapping[str, str]
    The labels associated with Cloud Foundry resources. Add as described here.
    name str
    Name of the service credential binding. name is optional when the type is app
    parameters str
    A JSON object that is passed to the service broker for managed service instance.
    serviceInstance String
    The GUID of the service instance to be bound
    type String
    Type of the service credential binding. Either app or key.
    annotations Map<String>
    The annotations associated with Cloud Foundry resources. Add as described here.
    app String
    The GUID of the app to be bound. Required when type is app
    labels Map<String>
    The labels associated with Cloud Foundry resources. Add as described here.
    name String
    Name of the service credential binding. name is optional when the type is app
    parameters String
    A JSON object that is passed to the service broker for managed service instance.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceCredentialBinding resource produces the following output properties:

    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    CredentialBinding string
    The service credential binding details.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    CredentialBinding string
    The service credential binding details.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    created_at string
    The date and time when the resource was created in RFC3339 format.
    credential_binding string
    The service credential binding details.
    id string
    The provider-assigned unique ID for this managed resource.
    last_operation object
    The details of the last operation performed on the resource
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    credentialBinding String
    The service credential binding details.
    id String
    The provider-assigned unique ID for this managed resource.
    lastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    credentialBinding string
    The service credential binding details.
    id string
    The provider-assigned unique ID for this managed resource.
    lastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    created_at str
    The date and time when the resource was created in RFC3339 format.
    credential_binding str
    The service credential binding details.
    id str
    The provider-assigned unique ID for this managed resource.
    last_operation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    credentialBinding String
    The service credential binding details.
    id String
    The provider-assigned unique ID for this managed resource.
    lastOperation Property Map
    The details of the last operation performed on the resource
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.

    Look up Existing ServiceCredentialBinding Resource

    Get an existing ServiceCredentialBinding 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?: ServiceCredentialBindingState, opts?: CustomResourceOptions): ServiceCredentialBinding
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            app: Optional[str] = None,
            created_at: Optional[str] = None,
            credential_binding: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            last_operation: Optional[ServiceCredentialBindingLastOperationArgs] = None,
            name: Optional[str] = None,
            parameters: Optional[str] = None,
            service_instance: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> ServiceCredentialBinding
    func GetServiceCredentialBinding(ctx *Context, name string, id IDInput, state *ServiceCredentialBindingState, opts ...ResourceOption) (*ServiceCredentialBinding, error)
    public static ServiceCredentialBinding Get(string name, Input<string> id, ServiceCredentialBindingState? state, CustomResourceOptions? opts = null)
    public static ServiceCredentialBinding get(String name, Output<String> id, ServiceCredentialBindingState state, CustomResourceOptions options)
    resources:  existingServiceCredentialBinding:    type: cloudfoundry:ServiceCredentialBinding    get:      id: ${id}
    import {
      to = cloudfoundry_service_credential_binding.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state ServiceCredentialBindingState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ServiceCredentialBindingState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state ServiceCredentialBindingState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state ServiceCredentialBindingState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Annotations Dictionary<string, string>
    The annotations associated with Cloud Foundry resources. Add as described here.
    App string
    The GUID of the app to be bound. Required when type is app
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    CredentialBinding string
    The service credential binding details.
    Labels Dictionary<string, string>
    The labels associated with Cloud Foundry resources. Add as described here.
    LastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    Name string
    Name of the service credential binding. name is optional when the type is app
    Parameters string
    A JSON object that is passed to the service broker for managed service instance.
    ServiceInstance string
    The GUID of the service instance to be bound
    Type string
    Type of the service credential binding. Either app or key.
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    Annotations map[string]string
    The annotations associated with Cloud Foundry resources. Add as described here.
    App string
    The GUID of the app to be bound. Required when type is app
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    CredentialBinding string
    The service credential binding details.
    Labels map[string]string
    The labels associated with Cloud Foundry resources. Add as described here.
    LastOperation ServiceCredentialBindingLastOperationArgs
    The details of the last operation performed on the resource
    Name string
    Name of the service credential binding. name is optional when the type is app
    Parameters string
    A JSON object that is passed to the service broker for managed service instance.
    ServiceInstance string
    The GUID of the service instance to be bound
    Type string
    Type of the service credential binding. Either app or key.
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    annotations map(string)
    The annotations associated with Cloud Foundry resources. Add as described here.
    app string
    The GUID of the app to be bound. Required when type is app
    created_at string
    The date and time when the resource was created in RFC3339 format.
    credential_binding string
    The service credential binding details.
    labels map(string)
    The labels associated with Cloud Foundry resources. Add as described here.
    last_operation object
    The details of the last operation performed on the resource
    name string
    Name of the service credential binding. name is optional when the type is app
    parameters string
    A JSON object that is passed to the service broker for managed service instance.
    service_instance string
    The GUID of the service instance to be bound
    type string
    Type of the service credential binding. Either app or key.
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    annotations Map<String,String>
    The annotations associated with Cloud Foundry resources. Add as described here.
    app String
    The GUID of the app to be bound. Required when type is app
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    credentialBinding String
    The service credential binding details.
    labels Map<String,String>
    The labels associated with Cloud Foundry resources. Add as described here.
    lastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    name String
    Name of the service credential binding. name is optional when the type is app
    parameters String
    A JSON object that is passed to the service broker for managed service instance.
    serviceInstance String
    The GUID of the service instance to be bound
    type String
    Type of the service credential binding. Either app or key.
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    annotations {[key: string]: string}
    The annotations associated with Cloud Foundry resources. Add as described here.
    app string
    The GUID of the app to be bound. Required when type is app
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    credentialBinding string
    The service credential binding details.
    labels {[key: string]: string}
    The labels associated with Cloud Foundry resources. Add as described here.
    lastOperation ServiceCredentialBindingLastOperation
    The details of the last operation performed on the resource
    name string
    Name of the service credential binding. name is optional when the type is app
    parameters string
    A JSON object that is passed to the service broker for managed service instance.
    serviceInstance string
    The GUID of the service instance to be bound
    type string
    Type of the service credential binding. Either app or key.
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    annotations Mapping[str, str]
    The annotations associated with Cloud Foundry resources. Add as described here.
    app str
    The GUID of the app to be bound. Required when type is app
    created_at str
    The date and time when the resource was created in RFC3339 format.
    credential_binding str
    The service credential binding details.
    labels Mapping[str, str]
    The labels associated with Cloud Foundry resources. Add as described here.
    last_operation ServiceCredentialBindingLastOperationArgs
    The details of the last operation performed on the resource
    name str
    Name of the service credential binding. name is optional when the type is app
    parameters str
    A JSON object that is passed to the service broker for managed service instance.
    service_instance str
    The GUID of the service instance to be bound
    type str
    Type of the service credential binding. Either app or key.
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    annotations Map<String>
    The annotations associated with Cloud Foundry resources. Add as described here.
    app String
    The GUID of the app to be bound. Required when type is app
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    credentialBinding String
    The service credential binding details.
    labels Map<String>
    The labels associated with Cloud Foundry resources. Add as described here.
    lastOperation Property Map
    The details of the last operation performed on the resource
    name String
    Name of the service credential binding. name is optional when the type is app
    parameters String
    A JSON object that is passed to the service broker for managed service instance.
    serviceInstance String
    The GUID of the service instance to be bound
    type String
    Type of the service credential binding. Either app or key.
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.

    Supporting Types

    ServiceCredentialBindingLastOperation, ServiceCredentialBindingLastOperationArgs

    CreatedAt string
    The time at which the last operation was created
    Description string
    A description of the last operation
    State string
    The state of the last operation
    Type string
    The type of the last operation
    UpdatedAt string
    The time at which the last operation was updated
    CreatedAt string
    The time at which the last operation was created
    Description string
    A description of the last operation
    State string
    The state of the last operation
    Type string
    The type of the last operation
    UpdatedAt string
    The time at which the last operation was updated
    created_at string
    The time at which the last operation was created
    description string
    A description of the last operation
    state string
    The state of the last operation
    type string
    The type of the last operation
    updated_at string
    The time at which the last operation was updated
    createdAt String
    The time at which the last operation was created
    description String
    A description of the last operation
    state String
    The state of the last operation
    type String
    The type of the last operation
    updatedAt String
    The time at which the last operation was updated
    createdAt string
    The time at which the last operation was created
    description string
    A description of the last operation
    state string
    The state of the last operation
    type string
    The type of the last operation
    updatedAt string
    The time at which the last operation was updated
    created_at str
    The time at which the last operation was created
    description str
    A description of the last operation
    state str
    The state of the last operation
    type str
    The type of the last operation
    updated_at str
    The time at which the last operation was updated
    createdAt String
    The time at which the last operation was created
    description String
    A description of the last operation
    state String
    The state of the last operation
    type String
    The type of the last operation
    updatedAt String
    The time at which the last operation was updated

    Import

    terraform

    $ pulumi import cloudfoundry:index/serviceCredentialBinding:ServiceCredentialBinding <resource_name> <service_credential_binding_guid>
    
    $ pulumi import cloudfoundry:index/serviceCredentialBinding:ServiceCredentialBinding xsuaa_svc 68fea1b6-11b9-4737-ad79-74e49832533f
    
    $ pulumi import cloudfoundry:index/serviceCredentialBinding:ServiceCredentialBinding #using id attribute in import block
    

    import {

    to = cloudfoundry_service_credential_binding.<resource_name>

    id = “<service_credential_binding_guid>”

    }

    this resource supports import using identity attribute from Terraform version 1.12 or higher

    import {

    to = cloudfoundry_service_credential_binding.<resource_name>

    identity = {

    service_credential_binding_guid = “<service_credential_binding_guid>”

    }

    }

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry
    Viewing docs for cloudfoundry 1.19.0
    published on Friday, Nov 13, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial