1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getServiceCredentialBinding
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry

    Gets information on Service Credential Bindings for a given service instance.

    This datasource will be deprecated in a future release.

    Use the datasource cloudfoundry.getServiceCredentialBindingDetails instead when you want to fetch details of a specific service credential binding of type app or key.

    Use the datasource cloudfoundry.getServiceCredentialBindings if you want to fetch all credential bindings (both app and key types) for a given service instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const scbd = cloudfoundry.getServiceCredentialBinding({
        serviceInstance: "5e2976bb-332e-41e1-8be3-53baafea9296",
        app: "ec6ac2b3-fb79-43c4-9734-000d4299bd59",
    });
    const scbdaf = cloudfoundry.getServiceCredentialBinding({
        serviceInstance: "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
        name: "hifi",
    });
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    scbd = cloudfoundry.get_service_credential_binding(service_instance="5e2976bb-332e-41e1-8be3-53baafea9296",
        app="ec6ac2b3-fb79-43c4-9734-000d4299bd59")
    scbdaf = cloudfoundry.get_service_credential_binding(service_instance="e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
        name="hifi")
    
    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.LookupServiceCredentialBinding(ctx, &cloudfoundry.LookupServiceCredentialBindingArgs{
    			ServiceInstance: "5e2976bb-332e-41e1-8be3-53baafea9296",
    			App:             pulumi.StringRef("ec6ac2b3-fb79-43c4-9734-000d4299bd59"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = cloudfoundry.LookupServiceCredentialBinding(ctx, &cloudfoundry.LookupServiceCredentialBindingArgs{
    			ServiceInstance: "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
    			Name:            pulumi.StringRef("hifi"),
    		}, nil)
    		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 scbd = Cloudfoundry.GetServiceCredentialBinding.Invoke(new()
        {
            ServiceInstance = "5e2976bb-332e-41e1-8be3-53baafea9296",
            App = "ec6ac2b3-fb79-43c4-9734-000d4299bd59",
        });
    
        var scbdaf = Cloudfoundry.GetServiceCredentialBinding.Invoke(new()
        {
            ServiceInstance = "e9ec29ca-993d-42e2-9c5b-cb17b1972cce",
            Name = "hifi",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudfoundry.CloudfoundryFunctions;
    import com.pulumi.cloudfoundry.inputs.GetServiceCredentialBindingArgs;
    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 scbd = CloudfoundryFunctions.getServiceCredentialBinding(GetServiceCredentialBindingArgs.builder()
                .serviceInstance("5e2976bb-332e-41e1-8be3-53baafea9296")
                .app("ec6ac2b3-fb79-43c4-9734-000d4299bd59")
                .build());
    
            final var scbdaf = CloudfoundryFunctions.getServiceCredentialBinding(GetServiceCredentialBindingArgs.builder()
                .serviceInstance("e9ec29ca-993d-42e2-9c5b-cb17b1972cce")
                .name("hifi")
                .build());
    
        }
    }
    
    variables:
      scbd:
        fn::invoke:
          function: cloudfoundry:getServiceCredentialBinding
          arguments:
            serviceInstance: 5e2976bb-332e-41e1-8be3-53baafea9296
            app: ec6ac2b3-fb79-43c4-9734-000d4299bd59
      scbdaf:
        fn::invoke:
          function: cloudfoundry:getServiceCredentialBinding
          arguments:
            serviceInstance: e9ec29ca-993d-42e2-9c5b-cb17b1972cce
            name: hifi
    
    Example coming soon!
    

    Using getServiceCredentialBinding

    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 getServiceCredentialBinding(args: GetServiceCredentialBindingArgs, opts?: InvokeOptions): Promise<GetServiceCredentialBindingResult>
    function getServiceCredentialBindingOutput(args: GetServiceCredentialBindingOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceCredentialBindingResult>
    def get_service_credential_binding(app: Optional[str] = None,
                                       name: Optional[str] = None,
                                       service_instance: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetServiceCredentialBindingResult
    def get_service_credential_binding_output(app: pulumi.Input[Optional[str]] = None,
                                       name: pulumi.Input[Optional[str]] = None,
                                       service_instance: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceCredentialBindingResult]
    func LookupServiceCredentialBinding(ctx *Context, args *LookupServiceCredentialBindingArgs, opts ...InvokeOption) (*LookupServiceCredentialBindingResult, error)
    func LookupServiceCredentialBindingOutput(ctx *Context, args *LookupServiceCredentialBindingOutputArgs, opts ...InvokeOption) LookupServiceCredentialBindingResultOutput

    > Note: This function is named LookupServiceCredentialBinding in the Go SDK.

    public static class GetServiceCredentialBinding 
    {
        public static Task<GetServiceCredentialBindingResult> InvokeAsync(GetServiceCredentialBindingArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceCredentialBindingResult> Invoke(GetServiceCredentialBindingInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceCredentialBindingResult> Invoke(GetServiceCredentialBindingInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceCredentialBindingResult> getServiceCredentialBinding(GetServiceCredentialBindingArgs args, InvokeOptions options)
    public static Output<GetServiceCredentialBindingResult> getServiceCredentialBinding(GetServiceCredentialBindingArgs args, InvokeOptions options)
    public static Output<GetServiceCredentialBindingResult> getServiceCredentialBinding(GetServiceCredentialBindingArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getServiceCredentialBinding:getServiceCredentialBinding
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_service_credential_binding" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceInstance string
    The GUID of the service instance
    App string
    The GUID of the app which is bound to be query for
    Name string
    Name of the service credential binding to query for
    ServiceInstance string
    The GUID of the service instance
    App string
    The GUID of the app which is bound to be query for
    Name string
    Name of the service credential binding to query for
    service_instance string
    The GUID of the service instance
    app string
    The GUID of the app which is bound to be query for
    name string
    Name of the service credential binding to query for
    serviceInstance String
    The GUID of the service instance
    app String
    The GUID of the app which is bound to be query for
    name String
    Name of the service credential binding to query for
    serviceInstance string
    The GUID of the service instance
    app string
    The GUID of the app which is bound to be query for
    name string
    Name of the service credential binding to query for
    service_instance str
    The GUID of the service instance
    app str
    The GUID of the app which is bound to be query for
    name str
    Name of the service credential binding to query for
    serviceInstance String
    The GUID of the service instance
    app String
    The GUID of the app which is bound to be query for
    name String
    Name of the service credential binding to query for

    getServiceCredentialBinding Result

    The following output properties are available:

    CredentialBindings List<GetServiceCredentialBindingCredentialBinding>
    The list of credential bindings for the given service instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceInstance string
    The GUID of the service instance
    App string
    The GUID of the app which is bound to be query for
    Name string
    Name of the service credential binding to query for
    CredentialBindings []GetServiceCredentialBindingCredentialBinding
    The list of credential bindings for the given service instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceInstance string
    The GUID of the service instance
    App string
    The GUID of the app which is bound to be query for
    Name string
    Name of the service credential binding to query for
    credential_bindings list(object)
    The list of credential bindings for the given service instance.
    id string
    The provider-assigned unique ID for this managed resource.
    service_instance string
    The GUID of the service instance
    app string
    The GUID of the app which is bound to be query for
    name string
    Name of the service credential binding to query for
    credentialBindings List<GetServiceCredentialBindingCredentialBinding>
    The list of credential bindings for the given service instance.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceInstance String
    The GUID of the service instance
    app String
    The GUID of the app which is bound to be query for
    name String
    Name of the service credential binding to query for
    credentialBindings GetServiceCredentialBindingCredentialBinding[]
    The list of credential bindings for the given service instance.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceInstance string
    The GUID of the service instance
    app string
    The GUID of the app which is bound to be query for
    name string
    Name of the service credential binding to query for
    credential_bindings Sequence[GetServiceCredentialBindingCredentialBinding]
    The list of credential bindings for the given service instance.
    id str
    The provider-assigned unique ID for this managed resource.
    service_instance str
    The GUID of the service instance
    app str
    The GUID of the app which is bound to be query for
    name str
    Name of the service credential binding to query for
    credentialBindings List<Property Map>
    The list of credential bindings for the given service instance.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceInstance String
    The GUID of the service instance
    app String
    The GUID of the app which is bound to be query for
    name String
    Name of the service credential binding to query for

    Supporting Types

    GetServiceCredentialBindingCredentialBinding

    Annotations Dictionary<string, string>
    The annotations associated with Cloud Foundry resources.
    App string
    The GUID of the app which is bound
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    CredentialBinding string
    The service credential binding details.
    Id string
    The GUID of the object.
    Labels Dictionary<string, string>
    The labels associated with Cloud Foundry resources.
    LastOperation GetServiceCredentialBindingCredentialBindingLastOperation
    The details of the last operation performed on the resource
    Name string
    Name of the service credential binding
    Parameters string
    A JSON object that is passed to the service broker.
    ServiceInstance string
    The GUID of the service instance
    Type string
    Type of the service credential binding
    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.
    App string
    The GUID of the app which is bound
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    CredentialBinding string
    The service credential binding details.
    Id string
    The GUID of the object.
    Labels map[string]string
    The labels associated with Cloud Foundry resources.
    LastOperation GetServiceCredentialBindingCredentialBindingLastOperation
    The details of the last operation performed on the resource
    Name string
    Name of the service credential binding
    Parameters string
    A JSON object that is passed to the service broker.
    ServiceInstance string
    The GUID of the service instance
    Type string
    Type of the service credential binding
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    annotations map(string)
    The annotations associated with Cloud Foundry resources.
    app string
    The GUID of the app which is bound
    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 GUID of the object.
    labels map(string)
    The labels associated with Cloud Foundry resources.
    last_operation object
    The details of the last operation performed on the resource
    name string
    Name of the service credential binding
    parameters string
    A JSON object that is passed to the service broker.
    service_instance string
    The GUID of the service instance
    type string
    Type of the service credential binding
    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.
    app String
    The GUID of the app which is bound
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    credentialBinding String
    The service credential binding details.
    id String
    The GUID of the object.
    labels Map<String,String>
    The labels associated with Cloud Foundry resources.
    lastOperation GetServiceCredentialBindingCredentialBindingLastOperation
    The details of the last operation performed on the resource
    name String
    Name of the service credential binding
    parameters String
    A JSON object that is passed to the service broker.
    serviceInstance String
    The GUID of the service instance
    type String
    Type of the service credential binding
    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.
    app string
    The GUID of the app which is bound
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    credentialBinding string
    The service credential binding details.
    id string
    The GUID of the object.
    labels {[key: string]: string}
    The labels associated with Cloud Foundry resources.
    lastOperation GetServiceCredentialBindingCredentialBindingLastOperation
    The details of the last operation performed on the resource
    name string
    Name of the service credential binding
    parameters string
    A JSON object that is passed to the service broker.
    serviceInstance string
    The GUID of the service instance
    type string
    Type of the service credential binding
    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.
    app str
    The GUID of the app which is bound
    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 GUID of the object.
    labels Mapping[str, str]
    The labels associated with Cloud Foundry resources.
    last_operation GetServiceCredentialBindingCredentialBindingLastOperation
    The details of the last operation performed on the resource
    name str
    Name of the service credential binding
    parameters str
    A JSON object that is passed to the service broker.
    service_instance str
    The GUID of the service instance
    type str
    Type of the service credential binding
    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.
    app String
    The GUID of the app which is bound
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    credentialBinding String
    The service credential binding details.
    id String
    The GUID of the object.
    labels Map<String>
    The labels associated with Cloud Foundry resources.
    lastOperation Property Map
    The details of the last operation performed on the resource
    name String
    Name of the service credential binding
    parameters String
    A JSON object that is passed to the service broker.
    serviceInstance String
    The GUID of the service instance
    type String
    Type of the service credential binding
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.

    GetServiceCredentialBindingCredentialBindingLastOperation

    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

    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.18.0
    published on Monday, Nov 2, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial