published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const testVisibility = new cloudfoundry.ServicePlanVisibility("test_visibility", {
servicePlan: "f37176d7-39eb-4e80-a3c0-328dfe36902c",
organizations: ["3533be5d-272f-42fe-bf70-fc4b108c2043"],
type: "organization",
});
import pulumi
import pulumi_cloudfoundry as cloudfoundry
test_visibility = cloudfoundry.ServicePlanVisibility("test_visibility",
service_plan="f37176d7-39eb-4e80-a3c0-328dfe36902c",
organizations=["3533be5d-272f-42fe-bf70-fc4b108c2043"],
type="organization")
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.NewServicePlanVisibility(ctx, "test_visibility", &cloudfoundry.ServicePlanVisibilityArgs{
ServicePlan: pulumi.String("f37176d7-39eb-4e80-a3c0-328dfe36902c"),
Organizations: pulumi.StringArray{
pulumi.String("3533be5d-272f-42fe-bf70-fc4b108c2043"),
},
Type: pulumi.String("organization"),
})
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 testVisibility = new Cloudfoundry.ServicePlanVisibility("test_visibility", new()
{
ServicePlan = "f37176d7-39eb-4e80-a3c0-328dfe36902c",
Organizations = new[]
{
"3533be5d-272f-42fe-bf70-fc4b108c2043",
},
Type = "organization",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudfoundry.ServicePlanVisibility;
import com.pulumi.cloudfoundry.ServicePlanVisibilityArgs;
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 testVisibility = new ServicePlanVisibility("testVisibility", ServicePlanVisibilityArgs.builder()
.servicePlan("f37176d7-39eb-4e80-a3c0-328dfe36902c")
.organizations("3533be5d-272f-42fe-bf70-fc4b108c2043")
.type("organization")
.build());
}
}
resources:
testVisibility:
type: cloudfoundry:ServicePlanVisibility
name: test_visibility
properties:
servicePlan: f37176d7-39eb-4e80-a3c0-328dfe36902c
organizations:
- 3533be5d-272f-42fe-bf70-fc4b108c2043
type: organization
Example coming soon!
Create ServicePlanVisibility Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServicePlanVisibility(name: string, args: ServicePlanVisibilityArgs, opts?: CustomResourceOptions);@overload
def ServicePlanVisibility(resource_name: str,
args: ServicePlanVisibilityArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServicePlanVisibility(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_plan: Optional[str] = None,
type: Optional[str] = None,
organizations: Optional[Sequence[str]] = None)func NewServicePlanVisibility(ctx *Context, name string, args ServicePlanVisibilityArgs, opts ...ResourceOption) (*ServicePlanVisibility, error)public ServicePlanVisibility(string name, ServicePlanVisibilityArgs args, CustomResourceOptions? opts = null)
public ServicePlanVisibility(String name, ServicePlanVisibilityArgs args)
public ServicePlanVisibility(String name, ServicePlanVisibilityArgs args, CustomResourceOptions options)
type: cloudfoundry:ServicePlanVisibility
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudfoundry_service_plan_visibility" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ServicePlanVisibilityArgs
- 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 ServicePlanVisibilityArgs
- 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 ServicePlanVisibilityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePlanVisibilityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServicePlanVisibilityArgs
- 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 servicePlanVisibilityResource = new Cloudfoundry.ServicePlanVisibility("servicePlanVisibilityResource", new()
{
ServicePlan = "string",
Type = "string",
Organizations = new[]
{
"string",
},
});
example, err := cloudfoundry.NewServicePlanVisibility(ctx, "servicePlanVisibilityResource", &cloudfoundry.ServicePlanVisibilityArgs{
ServicePlan: pulumi.String("string"),
Type: pulumi.String("string"),
Organizations: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "cloudfoundry_service_plan_visibility" "servicePlanVisibilityResource" {
lifecycle {
create_before_destroy = true
}
service_plan = "string"
type = "string"
organizations = ["string"]
}
var servicePlanVisibilityResource = new ServicePlanVisibility("servicePlanVisibilityResource", ServicePlanVisibilityArgs.builder()
.servicePlan("string")
.type("string")
.organizations("string")
.build());
service_plan_visibility_resource = cloudfoundry.ServicePlanVisibility("servicePlanVisibilityResource",
service_plan="string",
type="string",
organizations=["string"])
const servicePlanVisibilityResource = new cloudfoundry.ServicePlanVisibility("servicePlanVisibilityResource", {
servicePlan: "string",
type: "string",
organizations: ["string"],
});
type: cloudfoundry:ServicePlanVisibility
properties:
organizations:
- string
servicePlan: string
type: string
ServicePlanVisibility 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 ServicePlanVisibility resource accepts the following input properties:
- Service
Plan string - The GUID of the service plan.
- Type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- Organizations List<string>
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- Service
Plan string - The GUID of the service plan.
- Type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- Organizations []string
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service_
plan string - The GUID of the service plan.
- type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations list(string)
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service
Plan String - The GUID of the service plan.
- type String
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations List<String>
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service
Plan string - The GUID of the service plan.
- type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations string[]
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service_
plan str - The GUID of the service plan.
- type str
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations Sequence[str]
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service
Plan String - The GUID of the service plan.
- type String
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations List<String>
- Set of organization GUIDs whose members can access the plan; present if type is organization.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServicePlanVisibility resource produces the following output properties:
Look up Existing ServicePlanVisibility Resource
Get an existing ServicePlanVisibility 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?: ServicePlanVisibilityState, opts?: CustomResourceOptions): ServicePlanVisibility@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
organizations: Optional[Sequence[str]] = None,
service_plan: Optional[str] = None,
space: Optional[str] = None,
type: Optional[str] = None) -> ServicePlanVisibilityfunc GetServicePlanVisibility(ctx *Context, name string, id IDInput, state *ServicePlanVisibilityState, opts ...ResourceOption) (*ServicePlanVisibility, error)public static ServicePlanVisibility Get(string name, Input<string> id, ServicePlanVisibilityState? state, CustomResourceOptions? opts = null)public static ServicePlanVisibility get(String name, Output<String> id, ServicePlanVisibilityState state, CustomResourceOptions options)resources: existingServicePlanVisibility: type: cloudfoundry:ServicePlanVisibility get: id: ${id}import {
to = cloudfoundry_service_plan_visibility.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 ServicePlanVisibilityState
- 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 ServicePlanVisibilityState
- 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 ServicePlanVisibilityState
- 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 ServicePlanVisibilityState
- 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.
- Organizations List<string>
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- Service
Plan string - The GUID of the service plan.
- Space string
- Unique identifier for the space whose members can access the plan; present if type is space.
- Type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- Organizations []string
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- Service
Plan string - The GUID of the service plan.
- Space string
- Unique identifier for the space whose members can access the plan; present if type is space.
- Type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations list(string)
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service_
plan string - The GUID of the service plan.
- space string
- Unique identifier for the space whose members can access the plan; present if type is space.
- type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations List<String>
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service
Plan String - The GUID of the service plan.
- space String
- Unique identifier for the space whose members can access the plan; present if type is space.
- type String
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations string[]
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service
Plan string - The GUID of the service plan.
- space string
- Unique identifier for the space whose members can access the plan; present if type is space.
- type string
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations Sequence[str]
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service_
plan str - The GUID of the service plan.
- space str
- Unique identifier for the space whose members can access the plan; present if type is space.
- type str
- Denotes the visibility of the plan; can be public, admin, organization, space.
- organizations List<String>
- Set of organization GUIDs whose members can access the plan; present if type is organization.
- service
Plan String - The GUID of the service plan.
- space String
- Unique identifier for the space whose members can access the plan; present if type is space.
- type String
- Denotes the visibility of the plan; can be public, admin, organization, space.
Import
terraform
$ pulumi import cloudfoundry:index/servicePlanVisibility:ServicePlanVisibility <resource_name> <service_plan_guid>
$ pulumi import cloudfoundry:index/servicePlanVisibility:ServicePlanVisibility test_visibility f37176d7-39eb-4e80-a3c0-328dfe36902c
$ pulumi import cloudfoundry:index/servicePlanVisibility:ServicePlanVisibility #using id attribute in import block
import {
to = cloudfoundry_service_plan_visibility.<resource_name>
id = “<service_plan_guid>”
}
this resource supports import using identity attribute from Terraform version 1.12 or higher
import {
to =cloudfoundry_service_plan_visibility.<resource_name>
identity = {
service_plan_guid = “<service_plan_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
cloudfoundryTerraform Provider.
published on Friday, Nov 13, 2026 by cloudfoundry