1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getServicePlans
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

    Fetches Service Plans based on the filters provided

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const xsuaa_offering = cloudfoundry.getServicePlans({
        serviceOfferingName: "xsuaa",
    });
    export const serviceplans = xsuaa_offering.then(xsuaa_offering => xsuaa_offering.servicePlans);
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    xsuaa_offering = cloudfoundry.get_service_plans(service_offering_name="xsuaa")
    pulumi.export("serviceplans", xsuaa_offering.service_plans)
    
    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 {
    		xsuaa_offering, err := cloudfoundry.GetServicePlans(ctx, &cloudfoundry.GetServicePlansArgs{
    			ServiceOfferingName: pulumi.StringRef("xsuaa"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("serviceplans", xsuaa_offering.ServicePlans)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var xsuaa_offering = Cloudfoundry.GetServicePlans.Invoke(new()
        {
            ServiceOfferingName = "xsuaa",
        });
    
        return new Dictionary<string, object?>
        {
            ["serviceplans"] = xsuaa_offering.Apply(xsuaa_offering => xsuaa_offering.Apply(getServicePlansResult => getServicePlansResult.ServicePlans)),
        };
    });
    
    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.GetServicePlansArgs;
    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 xsuaa-offering = CloudfoundryFunctions.getServicePlans(GetServicePlansArgs.builder()
                .serviceOfferingName("xsuaa")
                .build());
    
            ctx.export("serviceplans", xsuaa_offering.servicePlans());
        }
    }
    
    variables:
      xsuaa-offering:
        fn::invoke:
          function: cloudfoundry:getServicePlans
          arguments:
            serviceOfferingName: xsuaa
    outputs:
      serviceplans: ${["xsuaa-offering"].servicePlans}
    
    Example coming soon!
    

    Using getServicePlans

    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 getServicePlans(args: GetServicePlansArgs, opts?: InvokeOptions): Promise<GetServicePlansResult>
    function getServicePlansOutput(args: GetServicePlansOutputArgs, opts?: InvokeOutputOptions): Output<GetServicePlansResult>
    def get_service_plans(name: Optional[str] = None,
                          service_broker_name: Optional[str] = None,
                          service_offering_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetServicePlansResult
    def get_service_plans_output(name: pulumi.Input[Optional[str]] = None,
                          service_broker_name: pulumi.Input[Optional[str]] = None,
                          service_offering_name: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetServicePlansResult]
    func GetServicePlans(ctx *Context, args *GetServicePlansArgs, opts ...InvokeOption) (*GetServicePlansResult, error)
    func GetServicePlansOutput(ctx *Context, args *GetServicePlansOutputArgs, opts ...InvokeOption) GetServicePlansResultOutput

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

    public static class GetServicePlans 
    {
        public static Task<GetServicePlansResult> InvokeAsync(GetServicePlansArgs args, InvokeOptions? opts = null)
        public static Output<GetServicePlansResult> Invoke(GetServicePlansInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServicePlansResult> Invoke(GetServicePlansInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServicePlansResult> getServicePlans(GetServicePlansArgs args, InvokeOptions options)
    public static Output<GetServicePlansResult> getServicePlans(GetServicePlansArgs args, InvokeOptions options)
    public static Output<GetServicePlansResult> getServicePlans(GetServicePlansArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getServicePlans:getServicePlans
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_service_plans" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the service plan to look up
    ServiceBrokerName string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    ServiceOfferingName string
    The name of the service offering for whose plans to look up
    Name string
    The name of the service plan to look up
    ServiceBrokerName string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    ServiceOfferingName string
    The name of the service offering for whose plans to look up
    name string
    The name of the service plan to look up
    service_broker_name string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    service_offering_name string
    The name of the service offering for whose plans to look up
    name String
    The name of the service plan to look up
    serviceBrokerName String
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    serviceOfferingName String
    The name of the service offering for whose plans to look up
    name string
    The name of the service plan to look up
    serviceBrokerName string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    serviceOfferingName string
    The name of the service offering for whose plans to look up
    name str
    The name of the service plan to look up
    service_broker_name str
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    service_offering_name str
    The name of the service offering for whose plans to look up
    name String
    The name of the service plan to look up
    serviceBrokerName String
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    serviceOfferingName String
    The name of the service offering for whose plans to look up

    getServicePlans Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServicePlans List<GetServicePlansServicePlan>
    The list of the service plans
    Name string
    The name of the service plan to look up
    ServiceBrokerName string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    ServiceOfferingName string
    The name of the service offering for whose plans to look up
    Id string
    The provider-assigned unique ID for this managed resource.
    ServicePlans []GetServicePlansServicePlan
    The list of the service plans
    Name string
    The name of the service plan to look up
    ServiceBrokerName string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    ServiceOfferingName string
    The name of the service offering for whose plans to look up
    id string
    The provider-assigned unique ID for this managed resource.
    service_plans list(object)
    The list of the service plans
    name string
    The name of the service plan to look up
    service_broker_name string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    service_offering_name string
    The name of the service offering for whose plans to look up
    id String
    The provider-assigned unique ID for this managed resource.
    servicePlans List<GetServicePlansServicePlan>
    The list of the service plans
    name String
    The name of the service plan to look up
    serviceBrokerName String
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    serviceOfferingName String
    The name of the service offering for whose plans to look up
    id string
    The provider-assigned unique ID for this managed resource.
    servicePlans GetServicePlansServicePlan[]
    The list of the service plans
    name string
    The name of the service plan to look up
    serviceBrokerName string
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    serviceOfferingName string
    The name of the service offering for whose plans to look up
    id str
    The provider-assigned unique ID for this managed resource.
    service_plans Sequence[GetServicePlansServicePlan]
    The list of the service plans
    name str
    The name of the service plan to look up
    service_broker_name str
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    service_offering_name str
    The name of the service offering for whose plans to look up
    id String
    The provider-assigned unique ID for this managed resource.
    servicePlans List<Property Map>
    The list of the service plans
    name String
    The name of the service plan to look up
    serviceBrokerName String
    The name of the service broker which offers the service. Use this to filter two equally named services from different brokers.
    serviceOfferingName String
    The name of the service offering for whose plans to look up

    Supporting Types

    GetServicePlansServicePlan

    Annotations Dictionary<string, string>
    The annotations associated with Cloud Foundry resources.
    Available bool
    Whether or not the service plan is available
    BrokerCatalog GetServicePlansServicePlanBrokerCatalog
    This object contains information obtained from the service broker catalog
    Costs List<GetServicePlansServicePlanCost>
    The cost of the service plan as obtained from the service broker catalog
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Description string
    Description of the service plan
    Free bool
    Whether or not the service plan is free of charge
    Id string
    The GUID of the object.
    Labels Dictionary<string, string>
    The labels associated with Cloud Foundry resources.
    MaintenanceInfo GetServicePlansServicePlanMaintenanceInfo
    Information about the version of this service plan
    Name string
    Name of the service plan
    Schemas GetServicePlansServicePlanSchemas
    Schema definitions for service instances and service bindings for the service plan
    ServiceOffering string
    The service offering that this service plan relates to
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    VisibilityType string
    Denotes the visibility of the plan
    Annotations map[string]string
    The annotations associated with Cloud Foundry resources.
    Available bool
    Whether or not the service plan is available
    BrokerCatalog GetServicePlansServicePlanBrokerCatalog
    This object contains information obtained from the service broker catalog
    Costs []GetServicePlansServicePlanCost
    The cost of the service plan as obtained from the service broker catalog
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Description string
    Description of the service plan
    Free bool
    Whether or not the service plan is free of charge
    Id string
    The GUID of the object.
    Labels map[string]string
    The labels associated with Cloud Foundry resources.
    MaintenanceInfo GetServicePlansServicePlanMaintenanceInfo
    Information about the version of this service plan
    Name string
    Name of the service plan
    Schemas GetServicePlansServicePlanSchemas
    Schema definitions for service instances and service bindings for the service plan
    ServiceOffering string
    The service offering that this service plan relates to
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    VisibilityType string
    Denotes the visibility of the plan
    annotations map(string)
    The annotations associated with Cloud Foundry resources.
    available bool
    Whether or not the service plan is available
    broker_catalog object
    This object contains information obtained from the service broker catalog
    costs list(object)
    The cost of the service plan as obtained from the service broker catalog
    created_at string
    The date and time when the resource was created in RFC3339 format.
    description string
    Description of the service plan
    free bool
    Whether or not the service plan is free of charge
    id string
    The GUID of the object.
    labels map(string)
    The labels associated with Cloud Foundry resources.
    maintenance_info object
    Information about the version of this service plan
    name string
    Name of the service plan
    schemas object
    Schema definitions for service instances and service bindings for the service plan
    service_offering string
    The service offering that this service plan relates to
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    visibility_type string
    Denotes the visibility of the plan
    annotations Map<String,String>
    The annotations associated with Cloud Foundry resources.
    available Boolean
    Whether or not the service plan is available
    brokerCatalog GetServicePlansServicePlanBrokerCatalog
    This object contains information obtained from the service broker catalog
    costs List<GetServicePlansServicePlanCost>
    The cost of the service plan as obtained from the service broker catalog
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    description String
    Description of the service plan
    free Boolean
    Whether or not the service plan is free of charge
    id String
    The GUID of the object.
    labels Map<String,String>
    The labels associated with Cloud Foundry resources.
    maintenanceInfo GetServicePlansServicePlanMaintenanceInfo
    Information about the version of this service plan
    name String
    Name of the service plan
    schemas GetServicePlansServicePlanSchemas
    Schema definitions for service instances and service bindings for the service plan
    serviceOffering String
    The service offering that this service plan relates to
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    visibilityType String
    Denotes the visibility of the plan
    annotations {[key: string]: string}
    The annotations associated with Cloud Foundry resources.
    available boolean
    Whether or not the service plan is available
    brokerCatalog GetServicePlansServicePlanBrokerCatalog
    This object contains information obtained from the service broker catalog
    costs GetServicePlansServicePlanCost[]
    The cost of the service plan as obtained from the service broker catalog
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    description string
    Description of the service plan
    free boolean
    Whether or not the service plan is free of charge
    id string
    The GUID of the object.
    labels {[key: string]: string}
    The labels associated with Cloud Foundry resources.
    maintenanceInfo GetServicePlansServicePlanMaintenanceInfo
    Information about the version of this service plan
    name string
    Name of the service plan
    schemas GetServicePlansServicePlanSchemas
    Schema definitions for service instances and service bindings for the service plan
    serviceOffering string
    The service offering that this service plan relates to
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    visibilityType string
    Denotes the visibility of the plan
    annotations Mapping[str, str]
    The annotations associated with Cloud Foundry resources.
    available bool
    Whether or not the service plan is available
    broker_catalog GetServicePlansServicePlanBrokerCatalog
    This object contains information obtained from the service broker catalog
    costs Sequence[GetServicePlansServicePlanCost]
    The cost of the service plan as obtained from the service broker catalog
    created_at str
    The date and time when the resource was created in RFC3339 format.
    description str
    Description of the service plan
    free bool
    Whether or not the service plan is free of charge
    id str
    The GUID of the object.
    labels Mapping[str, str]
    The labels associated with Cloud Foundry resources.
    maintenance_info GetServicePlansServicePlanMaintenanceInfo
    Information about the version of this service plan
    name str
    Name of the service plan
    schemas GetServicePlansServicePlanSchemas
    Schema definitions for service instances and service bindings for the service plan
    service_offering str
    The service offering that this service plan relates to
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    visibility_type str
    Denotes the visibility of the plan
    annotations Map<String>
    The annotations associated with Cloud Foundry resources.
    available Boolean
    Whether or not the service plan is available
    brokerCatalog Property Map
    This object contains information obtained from the service broker catalog
    costs List<Property Map>
    The cost of the service plan as obtained from the service broker catalog
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    description String
    Description of the service plan
    free Boolean
    Whether or not the service plan is free of charge
    id String
    The GUID of the object.
    labels Map<String>
    The labels associated with Cloud Foundry resources.
    maintenanceInfo Property Map
    Information about the version of this service plan
    name String
    Name of the service plan
    schemas Property Map
    Schema definitions for service instances and service bindings for the service plan
    serviceOffering String
    The service offering that this service plan relates to
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    visibilityType String
    Denotes the visibility of the plan

    GetServicePlansServicePlanBrokerCatalog

    Bindable bool
    Specifies whether service instances of the service can be bound to applications
    Id string
    The identifier that the service broker provided for this service plan
    MaximumPollingDuration double
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    Metadata string
    Additional information provided by the service broker as specified by OSBAPI
    PlanUpdateable bool
    Whether the service plan supports upgrade/downgrade for service plans
    Bindable bool
    Specifies whether service instances of the service can be bound to applications
    Id string
    The identifier that the service broker provided for this service plan
    MaximumPollingDuration float64
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    Metadata string
    Additional information provided by the service broker as specified by OSBAPI
    PlanUpdateable bool
    Whether the service plan supports upgrade/downgrade for service plans
    bindable bool
    Specifies whether service instances of the service can be bound to applications
    id string
    The identifier that the service broker provided for this service plan
    maximum_polling_duration number
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    metadata string
    Additional information provided by the service broker as specified by OSBAPI
    plan_updateable bool
    Whether the service plan supports upgrade/downgrade for service plans
    bindable Boolean
    Specifies whether service instances of the service can be bound to applications
    id String
    The identifier that the service broker provided for this service plan
    maximumPollingDuration Double
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    metadata String
    Additional information provided by the service broker as specified by OSBAPI
    planUpdateable Boolean
    Whether the service plan supports upgrade/downgrade for service plans
    bindable boolean
    Specifies whether service instances of the service can be bound to applications
    id string
    The identifier that the service broker provided for this service plan
    maximumPollingDuration number
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    metadata string
    Additional information provided by the service broker as specified by OSBAPI
    planUpdateable boolean
    Whether the service plan supports upgrade/downgrade for service plans
    bindable bool
    Specifies whether service instances of the service can be bound to applications
    id str
    The identifier that the service broker provided for this service plan
    maximum_polling_duration float
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    metadata str
    Additional information provided by the service broker as specified by OSBAPI
    plan_updateable bool
    Whether the service plan supports upgrade/downgrade for service plans
    bindable Boolean
    Specifies whether service instances of the service can be bound to applications
    id String
    The identifier that the service broker provided for this service plan
    maximumPollingDuration Number
    The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
    metadata String
    Additional information provided by the service broker as specified by OSBAPI
    planUpdateable Boolean
    Whether the service plan supports upgrade/downgrade for service plans

    GetServicePlansServicePlanCost

    Amount double
    Pricing amount
    Currency string
    Currency code for the pricing amount, e.g. USD, GBP
    Unit string
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB
    Amount float64
    Pricing amount
    Currency string
    Currency code for the pricing amount, e.g. USD, GBP
    Unit string
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB
    amount number
    Pricing amount
    currency string
    Currency code for the pricing amount, e.g. USD, GBP
    unit string
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB
    amount Double
    Pricing amount
    currency String
    Currency code for the pricing amount, e.g. USD, GBP
    unit String
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB
    amount number
    Pricing amount
    currency string
    Currency code for the pricing amount, e.g. USD, GBP
    unit string
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB
    amount float
    Pricing amount
    currency str
    Currency code for the pricing amount, e.g. USD, GBP
    unit str
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB
    amount Number
    Pricing amount
    currency String
    Currency code for the pricing amount, e.g. USD, GBP
    unit String
    Display name for type of cost, e.g. Monthly, Hourly, Request, GB

    GetServicePlansServicePlanMaintenanceInfo

    Description string
    A textual explanation associated with this version
    Version string
    The current semantic version of the service plan
    Description string
    A textual explanation associated with this version
    Version string
    The current semantic version of the service plan
    description string
    A textual explanation associated with this version
    version string
    The current semantic version of the service plan
    description String
    A textual explanation associated with this version
    version String
    The current semantic version of the service plan
    description string
    A textual explanation associated with this version
    version string
    The current semantic version of the service plan
    description str
    A textual explanation associated with this version
    version str
    The current semantic version of the service plan
    description String
    A textual explanation associated with this version
    version String
    The current semantic version of the service plan

    GetServicePlansServicePlanSchemas

    GetServicePlansServicePlanSchemasServiceBinding

    CreateParameters string
    Schema definition for the input parameters for service Binding creation
    CreateParameters string
    Schema definition for the input parameters for service Binding creation
    create_parameters string
    Schema definition for the input parameters for service Binding creation
    createParameters String
    Schema definition for the input parameters for service Binding creation
    createParameters string
    Schema definition for the input parameters for service Binding creation
    create_parameters str
    Schema definition for the input parameters for service Binding creation
    createParameters String
    Schema definition for the input parameters for service Binding creation

    GetServicePlansServicePlanSchemasServiceInstance

    CreateParameters string
    Schema definition for the input parameters for service instance creation
    UpdateParameters string
    Schema definition for the input parameters for service instance update
    CreateParameters string
    Schema definition for the input parameters for service instance creation
    UpdateParameters string
    Schema definition for the input parameters for service instance update
    create_parameters string
    Schema definition for the input parameters for service instance creation
    update_parameters string
    Schema definition for the input parameters for service instance update
    createParameters String
    Schema definition for the input parameters for service instance creation
    updateParameters String
    Schema definition for the input parameters for service instance update
    createParameters string
    Schema definition for the input parameters for service instance creation
    updateParameters string
    Schema definition for the input parameters for service instance update
    create_parameters str
    Schema definition for the input parameters for service instance creation
    update_parameters str
    Schema definition for the input parameters for service instance update
    createParameters String
    Schema definition for the input parameters for service instance creation
    updateParameters String
    Schema definition for the input parameters for service instance update

    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