published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 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 dictionarydata "cloudfoundry_get_service_credential_binding" "name" {
# arguments
}The following arguments are supported:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
getServiceCredentialBinding Result
The following output properties are available:
- Credential
Bindings List<GetService Credential Binding Credential Binding> - 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
- Credential
Bindings []GetService Credential Binding Credential Binding - 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
- 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
- credential
Bindings List<GetService Credential Binding Credential Binding> - 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
- credential
Bindings GetService Credential Binding Credential Binding[] - 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
- credential_
bindings Sequence[GetService Credential Binding Credential Binding] - 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
- credential
Bindings List<Property Map> - 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
Supporting Types
GetServiceCredentialBindingCredentialBinding
- Annotations Dictionary<string, 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 Dictionary<string, string>
- The labels associated with Cloud Foundry resources.
- Last
Operation GetService Credential Binding Credential Binding Last Operation - 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
- 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]string
- The labels associated with Cloud Foundry resources.
- Last
Operation GetService Credential Binding Credential Binding Last Operation - 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)
- 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
- 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,String>
- The labels associated with Cloud Foundry resources.
- last
Operation GetService Credential Binding Credential Binding Last Operation - 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 {[key: string]: 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 {[key: string]: string}
- The labels associated with Cloud Foundry resources.
- last
Operation GetService Credential Binding Credential Binding Last Operation - 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 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 GetService Credential Binding Credential Binding Last Operation - 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
- 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 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.
- 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.
GetServiceCredentialBindingCredentialBindingLastOperation
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Package Details
- Repository
- cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundryTerraform Provider.
published on Friday, Nov 13, 2026 by cloudfoundry